如何解决IIS 6.0中的此错误 [英] How to resolve this Error in IIS 6.0

查看:94
本文介绍了如何解决IIS 6.0中的此错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

配置错误
说明:在处理服务于此请求所需的配置文件期间发生错误.请查看下面的特定错误详细信息,并适当地修改您的配置文件.

解析器错误消息:加载配置文件时发生错误:拒绝访问路径"c:\ inetpub \ wwwroot \ web.config".

源错误:

[没有相关的源代码行]


源文件:c:\ inetpub \ wwwroot \ web.config行:0

版本信息:Microsoft .NET Framework版本:2.0.50727.3053; ASP.NET版本:2.0.50727.3053

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: Access to the path ''c:\inetpub\wwwroot\web.config'' is denied.

Source Error:

[No relevant source lines]


Source File: c:\inetpub\wwwroot\web.config Line: 0

Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

推荐答案

hi,
请检查web.config文件中的版本信息

编译debug ="true" targetframework ="4.0"

在您的web.config中找到上述标记,然后更改为目标框架.

谢谢,

please check the version information in web.config file

compilation debug="true" targetframework="4.0"

find above tag in u r web.config and change into your targetframework.

thanks ,


您需要设置构建项目的框架.不要盲目地将其更改为4.0左右.如果您是在2.0上制作项目的,那么没关系,请不要更改-请勿更改.

基于该错误,它看起来像是一些安全权限问题.尝试提供Network service& ASPNET帐户对文件的读取权限(如果缺少).

步骤示例:
转到您的应用程序文件夹->属性->标签安全性->添加...->在位置-本地计算机名称中,写入/查找网络服务"->向帐户授予完全/(或至少读取)控制访问权限-> OK


请参阅本文,以获取需要访问权限的正确帐户:
我的IIS应用程序进程的身份是谁? [
You need to set the framework you built your project on. Not blindly change it to 4.0 or so. If you made your project on 2.0, it''s ok, leave it as is - do not change.

Based on the error, it looks like some security permission issue. Try giving Network service & ASPNET accounts read permission on the file (if missing).

Steps example:
Go to your application folder -> Properties -> Tab Security -> Add... -> In locations - local machine name, write/find "NETWORK SERVICE" -> give the account a full/(or read atleast) control access -> OK


Have a look at this article to get the correct account that would need access permission:
Who is my IIS application process identity? [^]


这篇关于如何解决IIS 6.0中的此错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆