IIS部署遇到的文件目录权限问题
Server Error in '/WebService' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: An error occurred loading a configuration file: Failed to start monitoring changes to 'D:\WebService' because access is denied.
Source Error:
[No relevant source lines]
Source File: D:\WebService\web.config Line: 0
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
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.
出现这种问题一般是有以下几个原因:
1、Users组用户对站点文件没有读写权限
解决办法:给站点目录设置users组读写权限
2、站点Asp.net版本选择不正确
这种问题会出现在多版本FrameWork共存的情况下,如Asp.net1.1和2.0,详细请看http://bbs.51aspx.com/showtopic-750.html
解决办法:站点-》属性-》选择当前的Asp.net版本
3、应用程序池冲突
解决办法:在应用程序池-》新建应用程序池,然后在站点-》属性-》主目录 选择刚才建立的应用程序池
注意:以上三个原因可能会同时出现,逐步解决就可以了
一般都是文件目录权限不足所导致,简单的说我们可以把站点部署在C:\Inetpub\wwwroot下,尽快排除是不是权限问题。