Pages

Saturday, July 30, 2011

.NET - Convert VB to C# or C# to VB

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

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