Are you a .NET programmer?
Which is your language? C# or VB?
Do you want to convert your language to other?
Try this one : codechanger.com by Telerik
Saturday, July 30, 2011
Friday, July 29, 2011
ASP.NET WebService Error
An Error was Found :
You should :
Open your web.config or app.config
Find Binding ...
Then, on your SoapClient
with
TempConvertSoapClient svc = new TempConvertSoapClient("TempConvertSoap");
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");
Labels :
app.config,
ASP.NET,
C#,
error,
SoapClient,
Web Service,
web.config
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>
<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>
Subscribe to:
Posts (Atom)