While adding a web reference to an externally hosted asmx web service I am getting an error "Value cannot be null.
Parameter name: discoveryError & mexError". And the button "Add reference" appearing disabled. Kindly help me people. Below is the screen shot of problem.
Mariee APosted Oct 30, 2014, 12:16 AM
We have to change the web.config file of the project. Just add these tags in web.config file.
And Then create the object of the service reference like this(in .aspx.cs file).
reference_Name.Service_NameSoapClient object_name =
new reference_Name.Service_NameSoapClient();
And then call the web method like this.
object_name.method_name(parameter1,parameter2);
Here I've made the explanation generic by using reference_Name,Service_Name, object_name
These are not keywords :)
Murugesh PPosted Oct 29, 2014, 8:55 AM
Hope this will help you
http://stackoverflow.com/questions/3454788/any-reference-to-profilecommon-causes-error-value-cannot-be-null-parameter-name