title: host MVC app inside a website
body: <p>I have a website (not a web application- in visual studio you get two options-create a website/project) running on IIS 6.0. Now I want to develop few features in MVC architecture.
  So I created one MVC application in visual studio and everything is working fine on localhost as a separate application. Now I want to host this MVC app also inside the website I have already deployed.</p>
  
  <p>I created a virtual directory(MVCDir) inside the default website in IIS 6.0. The global.asax file which was in root folder I added the routing function- </p>
  
  <pre><code>Shared Sub RegisterRoutes(ByVal routes As RouteCollection)
      routes.Ignore("{resource}.axd/{*pathInfo}")
      routes.Ignore("{resource}.aspx/{*pathInfo}")
  
  
  
      routes.MapPageRoute("Default4", "{controller}/{action}/{id}", "~/MVCDir", False, New RouteValueDictionary(New With {.controller = "Home", .action = "Index", .id = Mvc.UrlParameter.Optional}))
  
  End Sub
  </code></pre>
  
  <p>*** NOTE- If I write routes.ignoreRoute instead of routes,ignore it says- IgnoreRoute is not a member of System.Web.RoutingCollection*</p>
  
  <p>I called this routing function inside application_start function
  now when I run domain.com/home/index</p>
  
  <p>How to solve this problem?
   it says resource not found</p>