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.

Murugesh P85 reputationPosted Oct 29, 2014, 4:55 AM EDT
Hope this will help you
http://stackoverflow.com/questions/3454788/any-reference-to-profilecommon-causes-error-value-cannot-be-null-parameter-name
Mariee A8 reputationPosted Oct 29, 2014, 8:16 PM EDT
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 :)