PDA

View Full Version : error '800a0411'


vazzoha
05-16-2009, 01:06 PM
Hi
I am trying to create a website with dreamweaver on my localhost, I use IIS7 and my database is in access2007
now as long as I load any static page its working fine but when I try to load Login page this error will come up :

Microsoft VBScript compilation error '800a0411'
Name redefined
/Login.asp, line 10
Dim MM_NBconnect1_STRING
----^
please help

DWcourse
05-16-2009, 05:53 PM
make sure you've entered you database name, login name, password and database location correctly in Login.asp (or the config file that Login.asp uses)

vazzoha
05-17-2009, 02:04 PM
thanks for your reply
I don't know much about coding
when I test connection in dreamweaver it works
I have deleted the login page and recreate it ,again set up connections but still errors:(

error '80004005' /Login.asp, line 9


this is the code , probebly helps :confused:


<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="Connections/NBconnect.asp" -->
<%
Dim NBrecordset
Dim NBrecordset_cmd
Dim NBrecordset_numRows

Set NBrecordset_cmd = Server.CreateObject ("ADODB.Command")
NBrecordset_cmd.ActiveConnection = MM_NBconnect_STRING
NBrecordset_cmd.CommandText = "SELECT * FROM Table1"
NBrecordset_cmd.Prepared = true

Set NBrecordset = NBrecordset_cmd.Execute
NBrecordset_numRows = 0
%>



oh thank you for your help