title: How to save file based on relative or virtual path when using plesk?
body: <p>I have a program in asp.Net MVC. My server is plesk. </p>
  
  <p>I save my files using this method:</p>
  
  <pre><code>public string SaveFile(HttpPostedFileBase file, string path)
  {
      string fileName = Guid.NewGuid() + file.FileName;
      var filePath = Path.Combine(Server.MapPath("~/Images/"), fileName);
      file.SaveAs(filePath);
      return fileName;
  }
  </code></pre>
  
  <p>and file saving is OK in test computer. But after uploading on server I get this error:</p>
  
  <blockquote>
    <p>Could not find a part of the path 'C:\Inetpub\vhosts\hostname.com\mysitename.com\Images\myFile.jpg'</p>
  </blockquote>
  
  <p>What is wrong with my code? Should I use something different when using plesk?</p>