title: How to ignore route in asp.net forms url routing
body: <p>I am using the .NET 3.5 SP1 framework and I've implemented URL routing in my application.  I was getting javascript errors: </p>
  
  <p><code>
  Error: ASP.NET Ajax client-side framework failed to load.<br>
  Resource interpreted as script but transferred with MIME type text/html.<br>
  ReferenceError: Can't find variable: Sys
  </code></p>
  
  <p>Which I believe is because my routing is picking up the microsoft axd files and not properly sending down the javascript.  I did some research and found that I could use <code>Routes.IgnoreRoute</code>, which should allow me to ignore the axd like below:</p>
  
  <pre><code>Routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  </code></pre>
  
  <p>But, when I add that line to my Global.asax I get this error:</p>
  
  <p><code>
  CS1061: 'System.Web.Routing.RouteCollection' does not contain a definition for 'IgnoreRoute' and no extension method 'IgnoreRoute' accepting a first argument of type 'System.Web.Routing.RouteCollection' could be found (are you missing a using directive or an assembly reference?)
  </code></p>
  
  <p>I've got the <code>System.Web.Routing</code> namespace imported, any ideas?</p>