title: ASP.NET Routing in Global.asax
body: <p>I'm trying to add a route in my web forms application by following this:</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/cc668201.aspx#adding_routes_to_a_web_forms_application">http://msdn.microsoft.com/en-us/library/cc668201.aspx#adding_routes_to_a_web_forms_application</a></p>
  
  <p>I've added the route in my Global.asax file like so:</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
  {
      routes.MapPageRoute("", "/WebsiteName/{combinedPin}", "~/Default.aspx");
  }
  </code></pre>
  
  <p>I then try to visit my website locally like this:</p>
  
  <p>http:// localhost:12345/WebsiteName/test36u</p>
  
  <p>But I get a resource cannot be found message so I don't think my route is correct. Can anybody see a problem with my code?</p>
  
  <p>Any pointers would be much appreciated.</p>
  
  <p>Thanks</p>