IIS部署遇到的文件目录权限问题

本文分析了ASP.NET应用中常见的ServerError及ConfigurationError问题,并提供了具体的解决步骤,包括设置正确的文件权限、选择合适的ASP.NET版本及避免应用程序池冲突等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.

 

出现这种问题一般是有以下几个原因: <Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
<Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
1、Users组用户对站点文件没有读写权限 <Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
<Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
解决办法:给站点目录设置users组读写权限 <Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
<Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
2、站点Asp.net版本选择不正确 <Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
<Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
这种问题会出现在多版本FrameWork共存的情况下,如Asp.net1.1和2.0,详细请看http://bbs.51aspx.com/showtopic-750.html <Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
<Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
解决办法:站点-》属性-》选择当前的Asp.net版本 <Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
<Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
3、应用程序池冲突 <Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
<Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
解决办法:在应用程序池-》新建应用程序池,然后在站点-》属性-》主目录 选择刚才建立的应用程序池 <Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
<Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà
注意:以上三个原因可能会同时出现,逐步解决就可以了 <Kq¨XÙbbs.51aspx.comÁ?Äâmì:Ðà

 

 

一般都是文件目录权限不足所导致,简单的说我们可以把站点部署在C:\Inetpub\wwwroot下,尽快排除是不是权限问题。


 

转载于:https://www.cnblogs.com/jdmei520/archive/2009/06/17/1505049.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值