Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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 ?

[code]
............
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]
............
[/code]

Comments

  • Davide VecchiDavide Vecchi Posts: 17Member
    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.