2

我做了一个网站bulkpedia.com 在这个我有使用ASP.NET Routing机制的方式

{type}/{query}

每当有包含句点的查询时,它都会向我显示 404 错误

例如http://bulkpedia.com/web/fb.com

请帮我解决它。

提前致谢

4

2 回答 2

0

试试这个。

<system.webServer>     
  <modules >     
    <remove name="UrlRoutingModule-4.0" />     
    <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />     
    <remove name="Session"/>     
    <add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition=""/>     
  </modules>     
</system.webServer>     

参考:http ://www.heartysoft.com/aspnet-routing-iis7-remember-modules

如果这也不起作用,我相信它可能是您的 IIS 或其他机器设置。

于 2011-08-13T23:16:30.670 回答
0

尝试将其粘贴在您的 web.config 中

<system.webServer>
  <modules runAllManagedModulesForAllRequests="True" >

  </modules>
<system.webServer>
于 2011-08-13T12:30:55.870 回答