If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

' Close and clean up the StreamReader
sr.Close()
Return result
End Function 'readHtmlPage
</script>
<html>
<body>
<b>The content on this web page is the result of an HTTP POST operation to Authorize.Net, using the Advanced Implementation method (AIM).<br>
<br/>
</b><hr/>
<asp:literal id="myPage" runat="server"/>
</body>
</html>

how?

How do I view the value of e? I only get this error when the page is on my ISP, so I don't get the error when I'm developing on my laptop. I tried adding the line:

response.write(e)

after Return e.Message, but the browser just returns the message:

Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 181: response.Write(e)
Line 182: Finally
Line 183: myWriter.Close()
Line 184: End Try
Line 185:

I switched the return and the response.write statements so that the response.write comes first, but the application still does the same thing, returns "object reference not set to instance of an object" and points to the line where I close the streamreader.

Now I've commented a bunch of code out to pinpoint where the app is dying, and it chokes on this line:

myWriter = New StreamWriter(objRequest.GetRequestStream())

What does this error mean:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
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.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Source Error:

Line 180: 'Try
Line 181: 'myWriter = New StreamWriter(objRequest.GetRequestStream())
Line 182: myWriter = New StreamWriter(objRequest.GetRequestStream())
Line 183: myWriter.Write(strPost)
Line 184: Response.Write(strPost)