Resx 无效...访问被拒绝;但做什么?

发布于 2024-09-30 14:12:10 字数 758 浏览 0 评论 0原文

我有一个 .NET 项目,根本无法在我的系统上构建,因为每个 .Resx 文件都会因以下错误而失败:

Invalid Resx file. Could not load file or assembly 'Telerik.Reporting, Version=4.1.10.714, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. Access is denied. Line 122, position 5.    C:\...\SomeReport.resx

有问题的行(元素)是:

  <metadata name="$this.SnapGridSize" type="Telerik.Reporting.Drawing.Unit, Telerik.Reporting, Version=3.2.9.1104, Culture=neutral, PublicKeyToken=a9d7983dfcc261be">
    <value>0.1in</value>
  </metadata>

否则该项目依赖于 Telerik Reporting 程序集,如果我删除,一切都会正常工作构建之前所有 Resx 文件中的所有元数据元素。由于各种原因,这些元数据元素不断地回到项目中。

那么我如何知道哪些文件访问被拒绝呢?我似乎无法从 Visual Studio 中得到任何提示,这让我彻底发疯。

I have a .NET project that simply cannot be built on my system, because every .Resx file fails with this error:

Invalid Resx file. Could not load file or assembly 'Telerik.Reporting, Version=4.1.10.714, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. Access is denied. Line 122, position 5.    C:\...\SomeReport.resx

The line (element) in question is:

  <metadata name="$this.SnapGridSize" type="Telerik.Reporting.Drawing.Unit, Telerik.Reporting, Version=3.2.9.1104, Culture=neutral, PublicKeyToken=a9d7983dfcc261be">
    <value>0.1in</value>
  </metadata>

Otherwise the project relies on Telerik Reporting assemblies and everything works fine if I just remove all of the metadata elements from all of the Resx files before building. For various reasons, these metadata elements get back into the project constantly.

So how can I tell WHAT file access is denied to? I can't seem to get any hints from Visual Studio here, and it's driving me absolutely insane.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文