【问题标题】:ClickOnce error message 'Access to the path 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config' is denied'ClickOnce 错误消息“拒绝访问路径 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config'”
【发布时间】:2013-05-22 00:16:23
【问题描述】:

我们的 ClickOnce 应用程序运行良好。但是,我们的一位用户收到以下错误:

+ Configuration system failed to initialize
+ An error occurred loading a configuration file: Access to the path 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config' is denied. (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config)
+ Access to the path 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config' is denied.

根据 Stack Overflow 文章 ClickOnce deployment error - access to the path is denied,我们的 Installation Folder URL 似乎没问题,而讨论 Access denied to machine.config on Win7 x64 并不清楚应该是什么权限检查,例如网络服务?最后this MSDN article 指的是更改密码,这对我来说没有意义。

什么可能导致问题?也许可能需要什么权限?

另一个 Stack Overflow 帖子,ClickOnce and configuration for a C# application,似乎提到了这个问题,但提出了不同的问题(尽量避免使用 Machine.config)。

【问题讨论】:

    标签: winforms clickonce .net-4.5 access-denied machine.config


    【解决方案1】:

    我们在用户的机器上重新安装了 .NET 4.5,它现在可以正常工作了。

    【讨论】:

      猜你喜欢
      • 2012-03-09
      • 2012-08-31
      • 2018-02-01
      • 2019-05-20
      • 1970-01-01
      • 1970-01-01
      • 2017-12-08
      • 1970-01-01
      • 2023-04-01
      相关资源
      最近更新 更多