【问题标题】:machine.config' is deniedmachine.config' 被拒绝
【发布时间】:2012-03-07 13:42:52
【问题描述】:

我的应用程序在windows server 2000IIS 6 上运行。 直到今天早上,该应用程序运行良好。但现在我收到以下错误:

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:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied.

Source Error: 


[No relevant source lines]


Source File: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\machine.config    Line: 0 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

有人知道怎么回事吗?

【问题讨论】:

  • 服务器是否启用了自动更新?服务器或服务器所在的网络有任何变化吗?联系您的托管公司...
  • Windows 2000 附带 IIS 5,所以我想知道您使用的平台到底是什么。此外,Windows 2000 (IIS 5) 和 Windows Server 2003 (IIS 6) 都将停止使用。您必须立即迁移到更新的 Windows 版本(即使是 2016 年)。

标签: .net iis-6 machine.config


【解决方案1】:

检查运行应用程序池的帐户是否有权访问

'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\machine.config'

如果用户帐户已更新或 .NET 已更新,权限可能已更改

【讨论】:

  • 查看文件和文件夹的有效权限。打开 Windows 资源管理器,然后找到要查看其有效权限的文件或文件夹。右键单击文件或文件夹,单击属性,然后单击安全选项卡。单击高级,单击有效权限选项卡,然后单击选择。 technet.microsoft.com/en-gb/library/cc771586.aspx
猜你喜欢
  • 2017-08-08
  • 2014-08-10
  • 2016-06-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-05-12
  • 1970-01-01
  • 2023-03-21
相关资源
最近更新 更多