[英]how to solve Could not load file or assembly 'Glimpse.Core' or one of its dependencies. Access is denied
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. 因为我不再使用它,我删除了所有glimpse文件的引用,并将它们从nuget pacakges中删除。
I have remove all configure Glimpse have set but I still got the problem. 我删除了所有配置Glimpse已设置但我仍然遇到了问题。 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.
I just had the same issue after removing Glimpse from a web project. 从Web项目中删除Glimpse后,我遇到了同样的问题。 The problem was that 2 Glimpse dlls (Glimpse.Ado and Glimpse.EF6) were still in the BIN folder of the website.
问题是2 Glimpse dlls(Glimpse.Ado和Glimpse.EF6)仍然在网站的BIN文件夹中。 If you remove them, your website will run again.
如果您删除它们,您的网站将再次运行。
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. 您可以尝试通过打开texteditor中的.csproj文件并删除Include一目了然的Reference标记来手动删除所有引用。 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?
您确定删除了所有引用并重建了所有依赖项吗?
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). 当有一个公共项目引用两个Web项目使用的Glimpse.Ado.dll时,我遇到了这个问题,并且这些Web项目中只有一个被配置为glimpse(用于UI的Web)。 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.
另一个Web项目(Web服务项目)不需要一瞥,但由于它引用了解决方案中的相同常见项目,因此它也参与了一瞥。 What helps is just add the reference to Glimpse.Core.dll also to the second web project that does not need it.
有帮助的是将Glimpse.Core.dll的引用也添加到不需要它的第二个Web项目中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.