title: When Deploying MVC 3 Application to IIS 7 The index pages load fine but when I select Menu item 404 Error Pops
body: <p>I have BIN deployed my MVC 3 application to my local IIS7 server. It runs fine in Visual Basic. But in IIS 7 only the index pages for my views are accessible. If I select any menu item it throws this error:</p>
  
  <p>Server Error in '/' Application</p>
  
  <p>The Resource cannot be found</p>
  
  <p>Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavalible. Please review the following URL and make sure that it is spelled correctly.</p>
  
  <p>Requested URL: /Admin/import_excel.vbhtml</p>
  
  <p>Version Information: Microsoft.NET Framework Version 4.0.30319; ASP.NET Version 4.0.30319.237</p>
  
  <p>Below is a copy of the routing table that is being used as well....</p>
  
  <pre><code>            Public Class MvcApplication
                     Inherits System.Web.HttpApplication
  
              Shared Sub RegisterGlobalFilters(ByVal filters As GlobalFilterCollection)
                  filters.Add(New HandleErrorAttribute())
              End Sub
  
              Shared Sub RegisterRoutes(ByVal routes As RouteCollection)
                 routes.IgnoreRoute("{resource}.axd/{*pathInfo}")
  
              ' MapRoute takes the following parameters, in order:
              ' (1) Route name
              ' (2) URL with parameters
              ' (3) Parameter defaults
                routes.MapRoute( _
                "Default", _
                 "{controller}/{action}/{id}", _
              New With {.controller = "Home", .action = "Index", .id = UrlParameter.Optional} _
      )
  
               End Sub
  
               Sub Application_Start()
               AreaRegistration.RegisterAllAreas()
  
               RegisterGlobalFilters(GlobalFilters.Filters)
               RegisterRoutes(RouteTable.Routes)
               End Sub
               End Class
  </code></pre>
  
  <p>Anyone know where I might be going wrong at?????</p>