Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Routing IIS 6.0 windows server 2003上的ASP.NET 4.0 web表单路由_Routing_Webforms_Iis 6 - Fatal编程技术网

Routing IIS 6.0 windows server 2003上的ASP.NET 4.0 web表单路由

Routing IIS 6.0 windows server 2003上的ASP.NET 4.0 web表单路由,routing,webforms,iis-6,Routing,Webforms,Iis 6,我试图在IIS 6.0上运行asp.net 4.0中的web表单路由,但我一直得到404页面 protected void Application_Start(object sender, EventArgs e) { System.Web.Routing.RouteTable.Routes.MapPageRoute ("testRoute", "test/{param}", "~/testing.aspx"); } 在my web.config中 <system.

我试图在IIS 6.0上运行asp.net 4.0中的web表单路由,但我一直得到404页面

protected void Application_Start(object sender, EventArgs e)
{
    System.Web.Routing.RouteTable.Routes.MapPageRoute
       ("testRoute", "test/{param}", "~/testing.aspx");
}
在my web.config中

<system.webServer>
  <modules runAllManagedModulesForAllRequests="true">
   <remove name="UrlRoutingModule"/>
   <add name="UrlRoutingModule" 
        type="System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, 
              Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </modules>
  <handlers>
   <add 
     name="UrlRoutingHandler" 
     preCondition="integratedMode" 
     verb="*" path="UrlRouting.axd" 
     type="System.Web.HttpForbiddenHandler, System.Web,  
          Version=2.0.0.0, Culture=neutral,  
          PublicKeyToken=b03f5f7f11d50a3a"/>
  </handlers>
 </system.webServer>

我还尝试为站点设置通配符映射。 Path=C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet\u isapi.dll 取消选中“验证文件是否存在”

有关于我可能做错什么的线索吗


谢谢

我在XP(IIS6)上做同样的事情,但是没有那些web.config模块和处理程序设置。我相信这些是用于AppFabric设置或其他

在“创建路线”的底部,我还有:

routes.MapPageRoute("Default", "", "~/Default.aspx", false);
用于默认页面。这可能也是你需要的


另外,请在IIS中签入“添加/删除windows组件”以查看是否已选中路由。

IIS 6忽略了
Hi-您是否成功修复了此问题?