我在Server上部署了一个网站,在开发阶段我工作正常,但是当我在服务器上部署它时显示404错误 当我在服务器上写实际的aspx页面名称时它显示页面..但是在虚拟页面名称的情况下它通过错误 www.example.com/welcome.aspx很好 但 www.example.com/Welcome无效。 你可以检查我的配置文件,让我知道我错在哪里。 感谢..
<?xml version="1.0" encoding="UTF-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<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>
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="ConString" connectionString="Server=********;Database=***;uid=***********;pwd=*************" />
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<customErrors mode="On" defaultRedirect="Error" redirectMode="ResponseRedirect"></customErrors>
<httpModules>
<add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader" />
</httpModules>
</system.web>
</configuration>