title: System.IO.FileLoadException: 'Could not load file or assembly 'EntityFramework or one of its dependencies. Access is denied.'
body: <blockquote>
    <p>System.IO.FileLoadException   HResult=0x80070005   Message=Could not
    load file or assembly 'EntityFramework, Version=6.0.0.0,
    Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its
    dependencies. Access is denied.</p>
  </blockquote>
  
  <p>I understand that this is a common issue however my situation is different. I downgraded the .net version that my program was using and cleaned and rebuilt the solution. I now get that error message as soon as I try to start the program.</p>
  
  <p>I have tried the following:</p>
  
  <ul>
  <li>rebuilt and cleaned solution</li>
  <li>Deleted bin folder and rebuilt</li>
  <li>Deleted entity framework reference and added it again</li>
  <li>Set permissions for all users to full control for all folders and subfolders</li>
  <li>Ran SysInternals Process Monitor and didn't see an Access Denied status anywhere</li>
  <li>Tried to downgrade entity framework version</li>
  <li>Created a brand new project and copied the files over and still getting the same error message</li>
  <li>Restarted visual studio</li>
  <li>Ran visual studio as administrator</li>
  <li>Went back to the original .net version that my program was using</li>
  <li>Deleted and reinstalled the nuget package</li>
  </ul>
  
  <p>Where do I go from here? Nothing from any posts I see on this website is fixing this issue. </p>
  
  <p>UPDATE: This is a screenshot from a program that uses the same version of entity framework and it is currently working and below is a screenshot of the program where I can't get it to work. You can see the different icons in the working version so my only guess is that it is related but I don't know what the blue symbols mean. Any guesses?</p>
  
  <p><a href="https://i.stack.imgur.com/4JrYH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4JrYH.png" alt="working program"></a></p>
  
  <p><a href="https://i.stack.imgur.com/3gbwO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3gbwO.png" alt="program that isn&#39;t working"></a></p>