我要做的是:
在IIS-Manager中如下所示:

我的问题是,对"ProductionService“的请求不是路由到应用程序,而是由MVC应用程序处理。在“默认网站”下运行
我尝试了MVC IngoreRoute方法,但是它并没有改变结果。这是我最后一次尝试和错误的"RegisterRoutes“;)
routes.IgnoreRoute("Staging/{*pathInfo}");
routes.IgnoreRoute("ProductionService/{*pathInfo}");
routes.IgnoreRoute("StagingService/{*pathInfo}");
routes.IgnoreRoute("/Staging/{*pathInfo}");
routes.IgnoreRoute("/ProductionService/{*pathInfo}");
routes.IgnoreRoute("/StagingService/{*pathInfo}");
routes.IgnoreRoute("~/Staging/{*pathInfo}");
routes.IgnoreRoute("~/ProductionService/{*pathInfo}");
routes.IgnoreRoute("~/StagingService/{*pathInfo}");
routes.IgnoreRoute("~/Staging/{*pathInfo}");
routes.IgnoreRoute("~/ProductionService/{*pathInfo}");
routes.IgnoreRoute("{*Staging*}");
routes.IgnoreRoute("{*ProductionService*}");
routes.IgnoreRoute("{*StagingService*}");有什么我能做的吗?也许配置某物。直接在IIS里?
发布于 2010-09-21 08:23:52
我找到了..。web.config是以某种方式继承给sub.applications的,所以如果我在子应用程序中这样做,它就解决了:
<!-- This is required if you want to run with sub-applications in IIS as it inherits the web.config somehow...-->
<membership>
<providers>
<clear/>
</providers>
</membership>
<roleManager enabled="false">
<providers>
<clear/>
</providers>
</roleManager>
<pages>
<namespaces>
<clear/>
</namespaces>
</pages>https://stackoverflow.com/questions/3753206
复制相似问题