В то время как service project выдает ошибку {"инициализатор типа для 'system.servicemodel.diagnostics.traceutility' выдал исключение."}
I am getting this error "The type initializer for 'System.ServiceModel.Diagnostics.TraceUtility' threw an exception." While calling soap client web service " . Code gets above error when it reached to code ServiceReference1.WebservicesSoapClient srv =new ServiceReference1.WebservicesSoapClient(); -----------------------------------------------This is my app.config-------------- <?xml version="1.0" encoding="utf-8" ?> <configuration> <appsettings> </appsettings> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> </startup> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="WebservicesSoap"> <security mode="Transport" /> </binding> <binding name="WebservicesSoap1" /> </basicHttpBinding> </bindings> <client> <endpoint address="https://abc/v2/webservices.asmx" binding="basicHttpBinding" bindingConfiguration="WebservicesSoap" contract="ServiceReference1.WebservicesSoap" name="WebservicesSoap" /> </client> </system.serviceModel> </configuration> Would some body guid on this ?
Что я уже пробовал:
I tired editing app.config . there is no much result found on intenrnet