title: URL Routing with ASP.NET 4 Web Forms
body: <p>I have ASP.NET webFroms application on my local, when i try to use this following rout I get 404 not found error. I am trying to go to mylocalsite.com/home that should resolve to ~/Default.aspx, what can be the issue? I did try many ways and followed on MSDN help on <a href="http://msdn.microsoft.com/en-us/library/cc668202.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/cc668202.aspx</a> but cant make it to work so that I can create the routs that i need. the site is running on IIS7.</p>
  
  <p>this following code is in my Global.asax </p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
          {
  
              routes.MapPageRoute("homepage", "/home", "~/Default.aspx");
  
          }
  
          protected void Application_Start(object sender, EventArgs e)
          {
              RegisterRoutes(RouteTable.Routes);
  
  
          }
  </code></pre>