日期:2014-05-20  浏览次数:20837 次

2008R2+ASP.NET 4.0部署问题,在线等。。。
WIN2008R2+ASP.NET 4.0网站部署出现以下错误

Server Error in '/' Application.
--------------------------------------------

The resource cannot be found. 
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /login.aspx


--------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 


WEB.CONFIG
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="cmdTimeOut" value="500"/>
</appSettings>
<!-- database connectionString -->
<connectionStrings>

  </connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
<!-- forms valid -->
<authentication mode="Forms">
<forms name=".CZZ" loginUrl="login.aspx" timeout="30" protection="All"></forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<!-- error page -->
<customErrors mode="Off" defaultRedirect="ErrorPage.htm"></customErrors>
<pages enableEventValidation="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<controls>
<add tagPrefix="Page" assembly="AspNetPager" namespace="Wuqi.Webdiyer"/>
</controls>
</pages>
</system.web>
<!-- valid code -->
<location path="ValidateCode.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>

请各位帮忙看看,谢谢了!
asp.net

------解决方案--------------------
找不到/login.aspx页面,是否设置了重定向
------解决方案--------------------
404,找不到资源
------解决方案--------------------
路径设置错了
------解决方案--------------------
是否已经设置
点击 web服务扩展-> 在右边选中 asp.net v4.0.30319 (安装后默认为禁止的)->点击左边的允许按钮
------解决方案--------------------
好好看看http://ASP.NET Forms 身份验证
http://sunxitao88.blog.163.com/blog/static/68314439200872283523906/
------解决方案--------------------
1. 打开iis管理,在站点右侧面板点击“ISAPI和CGI限制”里,允许.net 4.0
2. .Net4.0要安装Extended 
3. Windows firewall 要开放80口(IIS中设置的) 
4. Cystal Report客户端要重新安装 
5. 目录要被IIS_User/NetWork Service共享(Full Control)