Solved

Dreamweaver cs4 classic asp dsn sql 2008 http 500 error

Posted on 2011-02-13
6
690 Views
Last Modified: 2012-08-13
Just starting out with classic asp (need to support an old website) Getting a HTTP 500 error when I add a recordset to the webpage. Works fine with an equivilent MS Access database.

Sql DSN passes test connection and passes test/shows recordset, but the very fact the recordset is attached to the page throws the error even before trying to place a field. The driver for the sql 2008R2 system dsn is sql client (have tried sql server, same problem)

Can anyone point me in the right direction, may thanks
0
Comment
Question by:downehouse
  • 3
  • 3
6 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 34882584
Start by turning off "Show Friendly Http Errors" in your browser. That way you will be able to see the actual error message rather than the generic 500 message.
0
 

Author Comment

by:downehouse
ID: 34886540
Thanks, good point, but had already done this, what I had not done was to change IIS 7.5 'Send Errosrs to Browser' setting to true.  Having done this the error is with the DSN on line Recordset1_cmd.ActiveConnection. However the DSN checks out OK when tested at the created stage.

I have the following code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="Connections/Merlin.asp" -->
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows

Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_Merlin_STRING (**** error on this line)Recordset1_cmd.CommandText = "SELECT BulletinID, BulletinDate, BulletinBody, PostedBy FROM dbo.BULLETIN"
Recordset1_cmd.Prepared = true

Set Recordset1 = Recordset1_cmd.Execute
Recordset1_numRows = 0
%>

The include file code is as follows..
<%
' FileName="Connection_odbc_conn_dsn.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_Merlin_STRING
MM_Merlin_STRING = "dsn=Merlin;"
%>

Any help appreciated (Runing Dreamwearver CS4 on Win 7, with SQL server 2008 R2)
0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 34886877
What is the error?
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

Author Comment

by:downehouse
ID: 34887058
Sorry..

error '80040e4d'

/avalon/index_tmp.asp, line 9
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 34887080
Have you tried with a DSN-less connection?
0
 

Author Comment

by:downehouse
ID: 34887932
Have now, it works, shame DSN would not play ball.  Thanks for the quick responses.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question