I was working on my site transition and developing the download code when I ran into a very interesting issue while using the Development Web Server that is built into Visual Studio 2005.
Consider the following code:
string rootDir = Server.MapPath(@"~\downloads");
string rootDir2 = Server.MapPath(@"..\downloads");
If you are running on the development web server, the second command will fail with […]