T
Ted Polak
I am trying to use a relative pathname to connect to a Database in a folder
in my wwwroot directory. However, when I test the connection to the
database, I get this error:
'C:\WINNT\system32\Database\CBSWeb.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.
I checked the location of the executing assembly, and it is indeed in
WINNT\system32. I can use Request.PhysicalApplicationPath to find the
proper wwwroot folder. Is there some way to set the ConnectionString with
the proper relative pathname?
in my wwwroot directory. However, when I test the connection to the
database, I get this error:
'C:\WINNT\system32\Database\CBSWeb.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.
I checked the location of the executing assembly, and it is indeed in
WINNT\system32. I can use Request.PhysicalApplicationPath to find the
proper wwwroot folder. Is there some way to set the ConnectionString with
the proper relative pathname?