views:

70

answers:

1

When I try opening a file it tries to use "C:\Program Files\Common Files\Microsoft Shared\DevServer\9.0" as the base directory.

How can I get the working directory of the web application?

+2  A: 
string path = Server.MapPath("~");
CMS
Yeah initially, I was trying to do this in the datacontext class and saw that I had no access to it. I moved this logic out of the model and into the controller.
jdelator