title: Razor MVC Controller Download file
body: <p>I have a controller like the code below and I would like to know how to call this using Razor 
  because <code>@Url.Action("GetFileFromDisk")</code> does not work as expected it just crashes. If it is possible could you point out my mistake here? Or maybe suggest a better way to force on click to download the file</p>
  
  <pre><code>public FilePathResult GetFileFromDisk()
  {
    string path = AppDomain.CurrentDomain.BaseDirectory + "uploads/";
    string fileName = "test.txt";
    return File(path + fileName, "text/plain", "test.txt");
  }
  </code></pre>
  
  <p>Thanks in advance.</p>
  
  <p><strong>Update</strong></p>
  
  <p>the Error message I get is   </p>
  
  <blockquote>
    <p>The webpage at <a href="http://mypage/Support/GetFileFromDisk" rel="nofollow">http://mypage/Support/GetFileFromDisk</a> might be temporarily down or it may have moved permanently to a new web address.
    Error code: ERR_INVALID_RESPONSE`</p>
  </blockquote>