Login  
Search All Forums
Dart Home | PowerTCP Web Enterprise for ActiveX | Custom Development Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web Enterprise for ActiveX
Topic: Response codes
kman

From: San Antonio, TX USA
Posts: 9
Member Since: 12/29/05
posted December 29, 2005 10:55 AM

In my ASP app, I use the following response test:

ResultsCode = WebAsp1.Response.Status
If ResultsCode <> 200 Then
Err.Raise 1, "WebASP", "Invalid HTTP Response Code " & ResultsCode
End If


I frequently get response codes of 0 and 500, and wonder how I should be handling them.

Thanks!
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 29, 2005 11:08 AM

What is in WebAsp1.Response.StatusText when you get the error?
kman

From: San Antonio, TX USA
Posts: 9
Member Since: 12/29/05
posted December 29, 2005 12:06 PM

It's empty when the response code is 0. I'll have to wait for a 500 to come trhough before I will know what that text is since I just added it to my code.
kman

From: San Antonio, TX USA
Posts: 9
Member Since: 12/29/05
posted December 29, 2005 12:29 PM

With the 500 responses, the text is "Internal Server Error".
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 29, 2005 12:36 PM

Your server is failing and is probably just closing the connection without sending that. That is the 0 response. The 500 Internal Server error means something in ASP crashed and iis needs to be reset.

I would handle the 0 the same as the 500
kman

From: San Antonio, TX USA
Posts: 9
Member Since: 12/29/05
posted December 29, 2005 12:48 PM

The server is running just fine, ASP did not crash, and IIS does not need resetting. There are no messages in the logs indicating anything other than normal operation, and all sites are fully operational.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 29, 2005 1:29 PM

Can you give me the exact steps to duplicate this problem?
kman

From: San Antonio, TX USA
Posts: 9
Member Since: 12/29/05
posted December 29, 2005 1:42 PM

I'm not sure that I can. I have an ASP script that does some synchronization processing between two sites. I use a VBS to call the script using WET, and I have that schedule to run every 20 minutes. Most of the time it runs just fine, but periodically it returns these 0 and 500 codes. There is nothing specific that I can point to that triggers it, but it happened since day one -- I just never had time to look into it in more detail. I actually think the ASP process runs ok even when I get these responses, but there's no real way for me to determine this at this point.

Could it be related to timeout? In the ASP script I use:

Server.ScriptTimeout = 1800

and with WET I use:

WebAsp1.Timeout = 60000

Thanks!
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 30, 2005 10:06 AM

If it were timeout, you would get a 10060 "Connection Timed Out" error.

Please keep watching this. If you figure out a way to isolate the problem let us know ASAP.
kman

From: San Antonio, TX USA
Posts: 9
Member Since: 12/29/05
posted December 30, 2005 10:10 AM

Thanks. What might get returned if an ADO connection or command timed out in my ASP script?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 30, 2005 10:52 AM

I'm not sure. I would expect the server to replay with the 500 Internal server error.
kman

From: San Antonio, TX USA
Posts: 9
Member Since: 12/29/05
posted December 30, 2005 10:55 AM

That's what I suspect must be happening to cause the 500 error. I have run the ASP script repeatedly from the browser and never get an error -- the 0 and 500 response codes only show up when I run the script with WET.
Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX