我的应用程序有有线问题。当我使用 Visual Studio 运行我的应用程序时,没有问题,但是当我尝试使用 IIS 发布和运行它时,出现以下错误
[NullReferenceException: Object reference not set to an instance of an object.]
Achasoft.AchaCms.Web.RouteConfig.RegisterRoutes(RouteCollection routes) +813
Achasoft.AchaCms.Web.MvcApplication.Application_Start() +182
[HttpException (0x80004005): Object reference not set to an instance of an object.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9859725
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296
[HttpException (0x80004005): Object reference not set to an instance of an object.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9873912
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
我在 IIS 7 中阅读了一些关于 Application_Start 的文章,但不应该默认(asp.net mvc 应用程序模板)路由工作......