title: Server.MapPath gives wrong path, exception "The given path's format is not supported" when running on IIS server?
body: <p>Currently, I'm using the codes below to save a file to a directory on my website. </p>
  
  <pre><code>//save the file to the server
  String savePath = Server.MapPath("..\\temp\\") + file;
  FileUpload.PostedFile.SaveAs(savePath);
  </code></pre>
  
  <p>When I'm running the application on my computer, it returns the path:</p>
  
  <p>"E:\dotnet\Project\Implementation\Source Code\Project\Project.UI\temp\Sample.csv"</p>
  
  <p>However, when running on a real server, it throws exception: </p>
  
  <pre><code>System.NotSupportedException: The given path's format is not supported.
  </code></pre>
  
  <p>The expected path that I would like to have is "C:\inetpub\wwwroot\Project\temp".</p>
  
  <p>Am I doing things correctly or not? If not then can someone explain to me the correct way to do this?</p>