Server.MapPath

  • Thread starter Thread starter William Gower
  • Start date Start date
W

William Gower

I am trying to run the following in my connection string

"Data Source = Server.MapPath('private\Union.mdb')"

The asp application is in c:\inetpub\wwwroot\Unit12 and the database is one
directory lower in private.

It keeps trying to map it to

'C:\WINDOWS\system32\private\Union.mdb'

How do I get rid of the c:\windows\system32

Incidently this is being run in my Application_Start
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top