0
我刚将项目的框架从2.0更改为4.0,并且在打开URL重写页面时出现错误。我有很多东西,但都没有工作。
请帮我解决这个问题。
错误:IIS 7.5详细错误 - 404.0 - 未找到
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Web.config文件:
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="8.00:00:00" />
</staticContent>
<modules runAllManagedModulesForAllRequests="true">
<remove name="Session" />
<add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition="" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<remove name="UrlRoutingHandler" />
</handlers>
<rewrite>
<rules>
<remove name="Plesk. SEO-safe redirect for http://www.theprojectjugaad.com" />
<rule name="Plesk. SEO-safe redirect for http://www.theprojectjugaad.com" enabled="false" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<conditions>
<add input="{HTTP_HOST}" pattern="www.theprojectjugaad.com" />
<add input="{HTTPS}" pattern="OFF" />
</conditions>
<serverVariables />
<action type="Redirect" url="http://theprojectjugaad.com/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
什么URL(完全一致),你访问解决,什么重写你期待它发生在应用程序的工作? –
我已经使用Global.asax进行URL重写。我试图访问:http://www.theprojectjugaad.com/Login/Login.html,如果我使用.aspx然后它工作正常。 –
我不知道你的文件结构是什么样的,但是你的重写规则有'enabled ='false''设置,所以如果它以前工作,重写可能不是问题。 –