【发布时间】:2011-08-06 09:29:33
【问题描述】:
我最近使用 VS2010 升级选项将 ASP.Net 2.0 网站升级到 ASP.Net 4.0。
网站在 cassini 中运行良好,甚至在带有 IIS 6.0 的 Windows 2003 服务器上也能正常运行
但它不会出现在客户端的环境中。
客户端也安装了 IIS 6.0 和 .NET Framework 4.0 的 Windows Server 2003。
我已经使用 IIS 6.0 注册了 ASP.NEt 4.0
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis –ir
还使用 .NEt 框架 4.0 配置网站,如下所示
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>ASPNET_REGIIS -norestart -s "W3SVC
/1/ROOT/Website"
我已为该网站分配了一个专用的单独应用程序池。
我尝试过重启 IIS 和机器,但无济于事。
我已验证在“网站扩展”下允许使用 ASP.NEt 4.0,并且还检查了站点的配置以确认 .aspx 等已映射到 .NEt 4.0
我已授予互联网用户对网站目录的读取权限。
我得到了
"Server Application not available"
我还在事件日志中得到以下信息
Failed to initialize the AppDomain:/LM/W3SVC/1/Root/Website
Exception: System.IO.FileLoadException
Message: Could not load file or assembly 'System.Web, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
Access is denied.
这个事件之后的另一个是
Failed to execute request because the App-Domain could not be created.
Error: 0x80070005 Access is denied.
网站使用 Active Reports 6.0 和 elmah。就是这样。
如果有任何提示/指针来解决这个问题,我将不胜感激。
谢谢
【问题讨论】:
标签: deployment iis-6 asp.net-4.0