System.Net.WebException: The remote server returned an error: (500) Internal Server Error.

K

kuladeep.mohan

Hi
I am trying to consume a web service from asp.net web page through
HTTP POST method and I am getting the following error message

"System.Net.WebException: The remote server returned an error: (500)
Internal Server Error."


I have been searchign the web and followed all the options which worked

for others


1. Changed the web.config of the web service to accomodate HttpPost
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>


2. Used the HttpRequest.Credentials =
CredentialCache.DefaultCredentials;


I am not sure what is wrong there it fails while the request is sent to

the web service. The web service works fine with other web clients


Let me know your ideas


thanks
Mohan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top