title: C# MVC url parameter not being read
body: <p>Very new to ASP.net MVC and C# in general. Experience with PHP/NodeJS mostly, a little Java.</p>
  
  <p>I have a method in a controller like so:</p>
  
  <pre><code>public ActionResult ImageProcess(string fileName){
    string url = "http://myurl.com/images/" + fileName + ".jpg";
    //Code to stream the file
  }
  </code></pre>
  
  <p>And when I navigate to it as "<a href="http://myurl.com/Home/ImageProcess/12345" rel="nofollow">http://myurl.com/Home/ImageProcess/12345</a>" I get thrown a 404 error by the process as it's trying to fetch the file.  </p>
  
  <p>If I hard-code it like so...</p>
  
  <pre><code>public ActionResult ImageProcess(string fileName){
    string url = "http://myurl.com/images/12345.jpg";
    //Code to stream the file
  }
  </code></pre>
  
  <p>...It works just fine, returns my processed image as expected.</p>
  
  <p>Why is this happening?</p>