Search code examples
c#glimpse

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.

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.

Solution

  • 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?