Problem med Server.MapPath - error '80004005'
På siden http://www.thomasvilhelm.dk/home/index.asp får jeg flg. fejl:Microsoft JET Database Engine error '80004005'
'd:\www\thomasvilhelm.dk_biw7xo8mk6\public_html\db\db.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
D:\WWW\THOMASVILHELM.DK_BIW7XO8MK6\PUBLIC_HTML\HOME\../includes/connect.asp, line 6
Min connect.asp ser sådan ud:
<%
' Database Connection - ændret 24.08.2005 til server.mappath
Dim ConnectString, conn
ConnectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("../db/db.mdb")
Set conn = Server.CreateObject("ADODB.Connection")
conn.open ConnectString
%>
Og linje 6 - conn.open ConnectString - er åbenbart forkert. Men hvad skal der så stå?
Fejlen er opstået efter webhotellets skift fra absolut sti til Server.MapPath - se evt. http://www.clichehosting.com/dk/?wid=140&mid=4&id=5
Jeg har brug for HURTIG hjælp, da siden skal opdateres!
