title: Displaying PDF ASP.Net MVC
body: <p>I have a file on my desktop for test. I am trying to display it in a view that looks like this:</p>
  
  <pre><code>@{
      ViewBag.Title = "ShowFile";
  }
  
  &lt;h2&gt;ShowFile&lt;/h2&gt;
  </code></pre>
  
  <p>The code I am using for the controller is:</p>
  
  <pre><code>   [HttpGet]
          public ActionResult ShowFile(string path)
          {
              path = @"C:\Documents and Settings\nickla\Desktop\nlamarca_06_15.pdf";
  
              return File(path, "application/pdf", "nlamarca_06_15.pdf");
          }
  </code></pre>
  
  <p>When I run this code the view displays "undefined" any ideas on what could be wrong here?</p>