Dreamweaver CS3 ASP vbscript returns 500 error on IIS 2k3 box

I have a site on Win2k3 with IIS and am using DW CS3 as my authoring tool. Got a SQL 2k5 DB. Built a client login page using DW. Always worked fine with SQL2k but now I get this error. When I build the page and do not connect the recordset or binding, it appears and performs the basic functions. when I define the recordset and the binding and test within DW i can return the rows of data I want. Then I save the file to the IIS Box and boom, Error 500. WTF!
Does CS4 fix this? Do I have to go learn Visual Studio now?
Thoughts are welcomed.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Wayne BarronAuthor, Web DeveloperCommented:
Need some code example to better assist.
Also. Is this DW Generated ASP/SQL Code?

Make sure that you can view the error's on the page.
In IE go to: Tools | Internet Options | Advanced |
[uncheck] Show Friendly HTTP Error Messages.

This way we can better determin the error.

garyohAuthor Commented:
Yes, this is DW induced code.

Resulting error when attempting to load page is:
Active Server Pages error 'ASP 0141'

Page Command Repeated
/ClientLogin/ClientsLogin1.asp, line 95
The @ command can only be used once within the Active Server Page.

So in looking at that, I see the code below attached.
' The top of the page shows:
' Then on line 95 it shows:
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="utf-8" %>

Open in new window

Wayne BarronAuthor, Web DeveloperCommented:
You can only have 1
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="utf-8" %>

And Delete it from line 95
Run the page, it should load without issue, if not post error here again.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

garyohAuthor Commented:
Nope, I put your copy in that spot and got another error saying the server didn't understand "VB" and so I put it back as is and then pulled out line 95 to a notepad for safe keeping.
Now my page loads but at the top all the following code loads before the graphics: (See below)

This is, of course, all the code on the page which is now showing. Yikes!
" MM_redirectLoginFailed = "../LoginFail.asp" MM_loginSQL = "SELECT login_nm, login_passwd" If MM_fldUserAuthorization <> "" Then MM_loginSQL = MM_loginSQL & "," & MM_fldUserAuthorization MM_loginSQL = MM_loginSQL & " FROM 

Open in new window

garyohAuthor Commented:
I figured out that i would just delete it and start over. But thanks for pointing the way to the error codes.
Wayne BarronAuthor, Web DeveloperCommented:
I am so, so, so sorry.
Put this at the top of the page.

Do not blow your page out right now.
It was my mistake at not properly re-writen your code.
I am sorry once again.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.