Is this a continuation from another thread? The subject says: Re: MapPath, but it looks like a new post to me.
Anyway, is your database located in the same folder as the connection string file is? Usually, this isn't the case so you'll need to change the MapPath method:
Server.MapPath("/Database")
will give you the physical location from a Database folder located in the root.
Server.MapPath("../Database")
gives the path to a Database folder one level up from the current folder.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|