DynamicData Routes not recognized

Discussion in 'ASP.NET / ASP.NET Core' started by rbrogan, Nov 5, 2010.

  1. I have the code to register routes for the dynamic data capability.
    ...
    protected void Application_Start(object sender, EventArgs e)
    {
    RegisterRoutes(RouteTable.Routes);
    ...

    It works fine on my dev box but when I publish to the host it gives 404 error.
    I seems like my Global.asax file is not getting executed.
    Any ideas?
     
  2. Found it! Global.asax was not being called because the PrecompiledApp.config file was in the root directory of the web site. It was a hold over from when it was a web site before I converted it to a web application.
     
  3. Good job, thanks for the update. ;-)
     

Share This Page