Server internal error 500 opening ADODB.Recordset

We are moving a website from a Win NT server to a Win 2000 server, both with IIS. While on the old server this problem wasn' t occurring, on the new server the very same ASP page causes the error HTTP 500 - Internal server error.

The error is on the Open of the recordset.

Any ideas ?

SET Conn = CreateObject("ADODB.Connection")

Conn.Open Application("ConnectionString") [italic]'This string is ok[/italic]

SET rsAnom = Server.CreateObject("ADODB.Recordset")
NumRighePag = 50
rsAnom.PageSize = NumRighePag
rsAnom.CacheSize = NumRighePag
rsAnom.CursorLocation = adUseClientBatch
[b]rsAnom.Open SQLcmd, Conn, adOpenStatic, adLockReadOnly, adCmdText[b]


  • Found. It was a missing table in the db. The browser (IE 5.5) showed misleading "error 500" message because its option "Show Friendly HTTP Error Messages" was enabled (i think by default). Not that "friendly" IMO. Disabling that option (highly reccomended!!) let the real error message to be showed in the browser.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion