Routing HTTP Error 404.0 0x80070002

后端 未结 6 1077
耶瑟儿~
耶瑟儿~ 2020-12-30 08:32

I have created routing rules in my ASP.NET application and on my Dev machine at IIS7 everything works fine. When I deploy solution to prod server which has also IIS7 I get e

6条回答
  •  無奈伤痛
    2020-12-30 09:24

    Having this in Global.asax.cs solved it for me.

    protected void Application_Start()
    {
        AreaRegistration.RegisterAllAreas();
        RouteConfig.RegisterRoutes(RouteTable.Routes);
    }
    

提交回复
热议问题