System.TypeLoadException:无法解析令牌为010000a4的类型

时间:2020-01-15 10:03:36

标签: c# xamarin.forms visual-studio-2019

我正在Visual Studio 2019(Windows 10)中开发Xamarin移动应用程序。 调用WCF Web服务时出现以下错误,如果有解决方法,请指导我。

 void SubmitEvent(object sender, EventArgs e)
        {
            // DisplayAlert("Status","Record Found","OK"); 
            CallWCF();
        }
        private void CallWCF()
        {
           var address = new EndpointAddress("http://url.in/service.svc");
            WSHttpBinding bind = new WSHttpBinding();

           var wcf = new ServiceReference1.serviceQueryClient(bind, address);

            var _rVE = new ServiceReference1.ReceiptVaahanQueryEntity();                

            wcf.SBSReceiptVaahanQueryAsync(_rVE);

        }

错误:

System.TypeLoadException Message =无法使用令牌解析类型 来自typeref的010000a4(预期类 组装中的'System.ServiceModel.WSHttpBinding' 'System.ServiceModel.Http,版本= 4.7.0.0,区域性=中性, PublicKeyToken = b03f5f7f11d50a3a')

0 个答案:

没有答案