Pages

Showing posts with label Web Service. Show all posts
Showing posts with label Web Service. Show all posts

Friday, July 29, 2011

ASP.NET WebService Error

An Error was Found : 
An endpoint configuration section for contract 'TempConvert.TempConvertSoap' could not be loaded because more than one endpoint configuration for that contract was found. Please indicate the preferred endpoint configuration section by name.

You should : 
Open your web.config or app.config
Find Binding ...
Then, on your SoapClient
Replace
TempConvertSoapClient svc = new TempConvertSoapClient();
with
TempConvertSoapClient svc = new TempConvertSoapClient("TempConvertSoap");

ASP.NET web service in web.config

 put inside tag <system.web>
<webservices>
<protocols>
<add name="AnyHttpSoap"/>
<add name="HttpGet"/>
<add name="HttpPost"/>
<add name="HttpPostLocalhost"/>
<add name="HttpSoap"/>
<add name="HttpSoap12"/>
<add name="Documentation"/>
</protocols>
</webservices>

ShareThis