如何解决无法加载文件或程序集“Glimpse.Core”或其依赖项之一。访问被拒绝

发布于 2024-11-16 08:39:15 字数 532 浏览 4 评论 0原文

当我运行我的项目时,一切都很好,后来当我运行时突然出现此错误。

因为我不再使用它,所以我删除了所有闪烁文件的引用,并将它们从 nuget 包中删除。

我已经删除了所有配置 Glimpse 设置,但仍然遇到问题。我该如何抵制这个问题。

    Could not load file or assembly 'Glimpse.Core' or one of its dependencies. Access is denied.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Glimpse.Core' or one of its dependencies. Access is denied.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Glimpse.Core' could not be loaded.

When I run my project it's just fine and later suddenly when I run I got this error.

Because I no longer use it I remove the reference of all glimpse file and remove them from nuget pacakges too.

I have remove all configure Glimpse have set but I still got the problem. How I can resist this issue.

    Could not load file or assembly 'Glimpse.Core' or one of its dependencies. Access is denied.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Glimpse.Core' or one of its dependencies. Access is denied.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Glimpse.Core' could not be loaded.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

新雨望断虹 2024-11-23 08:39:15

从网络项目中删除 Glimpse 后,我遇到了同样的问题。问题是网站的 BIN 文件夹中仍然存在 2 个 Glimpse dll(Glimpse.Ado 和 Glimpse.EF6)。如果删除它们,您的网站将再次运行。

I just had the same issue after removing Glimpse from a web project. The problem was that 2 Glimpse dlls (Glimpse.Ado and Glimpse.EF6) were still in the BIN folder of the website. If you remove them, your website will run again.

巴黎夜雨 2024-11-23 08:39:15

您可能正在运行另一个使用相同程序集的程序。

编辑:
您可以尝试通过在文本编辑器中打开 .csproj 文件并删除“包含”一瞥的“引用”标记来手动删除所有引用。看起来仍然有一个集会参考了这一瞥。您确定删除了所有引用并重建了所有依赖项吗?

You have probably another program running that is using the same assembly.

Edit:
You could try to remove all references manually by opening the .csproj files in a texteditor and removing the Reference tag where the Include is glimpse. It looks like it though that there is still an assembly with a reference to this glimpse. Are you sure you removed all references and rebuild all dependencies?

琉璃繁缕 2024-11-23 08:39:15

当有一个公共项目引用 Glimpse.Ado.dll 并被两个 Web 项目使用时,我遇到了这个问题,并且这些 Web 项目中只有一个配置为预览(用于 UI 的 Web)。另一个Web项目(Web服务项目)不需要glimpse,但由于它引用解决方案中的相同公共项目,因此它也参与了glimpse。有用的是将 Glimpse.Core.dll 的引用也添加到不需要它的第二个 Web 项目中。

I run into this problem when there was a common project referencing Glimpse.Ado.dll used by two web projects, and only one of these web projects was configured for glimpse (the web for UI). The other web project (web service project) did not need glimpse, but since it was referencing the same common projects from the solution, it got involved into glimpse as well. What helps is just add the reference to Glimpse.Core.dll also to the second web project that does not need it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文