Reputation: 4251
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?
Upvotes: 0
Views: 167
Reputation: 827942
string path = Server.MapPath("~");
Upvotes: 2