I have written a web service and tested it and it works fine from the .asmx test page.
However, when I attempt to call it with a post I get this error:
The remote server returned an error: (500) Internal Server Error.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
Line 164: myStream.Close()
Line 166: Dim SomeResponse As WebResponse = XmlHttp.GetResponse()
Line 167: Dim strm As Stream = SomeResponse.GetResponseStream()
Line 168: Dim sr As StreamReader = New StreamReader(strm)
Source File: c:\inetpub\wwwroot\SCNet\App_Code\SCClientSvc.vb Line: 166
Why does the test work fine but give a 500 error when I just try and get the response?
View Complete Post