2011-03-18 117 views
1

我在IIS 6中设置了虚拟目录。我的应用程序池的asp.net设置为4.0。ASP.NET虚拟目录错误

当我尝试访问我的网站时,出现以下错误。

Server Application Unavailable

The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.

当我检查事件应用程序日志时,我得到下面的错误。

Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied.

它看起来像某种权限错误,但我无法弄清楚什么。有人有主意吗? 有关更多信息,请参阅http://go.microsoft.com/fwlink/events.asp上的帮助和支持中心。

回答

1

使用Microsoft的ProcMon来跟踪您的Web服务器工作进程(XP上的aspnet_wp.exe,Win7,2003,2008上的w3wp.exe)的文件访问权限。如果您过滤的地方进程名称包含这两个EXE名称之一,您最终将在状态列中看到访问被拒绝条目。这将告诉你你的Web服务器应用程序无法访问或打开的文件夹/文件。

提示:更容易阅读结果,在做测试之前关闭ProcMon的注册表和网络跟踪。

0

您可以尝试给IIS_WPG组(或运行该应用程序的任何组)读取/写入您的应用程序目录并查看是否有帮助。

0

您的池设置为.NET 4框架,但您的应用程序是否设置为使用.NET 4?

验证ASP.NET选项卡设置为修正版本在虚拟目录属性:

Application Properties ASP.NET Tab

还要检查,看看你的ASP.NET用户必须通过正确的访问:

  1. 右键单击IIS中的网站文件夹
  2. 选择权限
  3. 选择网络服务
  4. 允许将ASP.NET进程运行的用户读取权限。

您可能正在使用自定义用户,否则这些保留很可能是开箱即用的。