title: In asp.net-mvc, would a querystring too long result in 404 File not found error?
body: <p>I have an asp.net-mvc site and I have a case where I have a very long querystring in a URL. This was previously not an issue but I am suddenly getting this error in a few cases:</p>
  
  <p><img src="https://i.stack.imgur.com/Q5pm7.png" alt="enter image description here">
  <strong>404-File or director not found - the resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</strong></p>
  
  <p>I haven't proven that its due to url length but the reason I am assuming that this is related to length of querystring is that if I selected remove certain parts of the query string it works fine and I have gone through each section (to identify of part of the query string is "corrupt"</p>
  
  <p>I am able to reproduce this error in my example that has a total url length of 2805 characters.  Is this expected?  I see the issue in both Firefox and Internet Explorer.</p>
  
  <p>The reason I ask is that from my googling, it seems like IIS throws a different error when querystring is too long (415 or 414 error <a href="http://www.mytecbits.com/microsoft/iis/iis-changing-maxquerystring-and-maxurl" rel="noreferrer">as described here</a>)</p>
  
  <p>Is this something that is set on the server side? in the web.config?</p>