I have a .Net 3.5 application compiled in VS2008 that when run after a Debug compile gives me the following error:
Could not load file or assembly 'MyProgram, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418)
The same program when compiled in Release mode runs successfully. My svn logs indicate the solution or project files have not been modified. Any ideas how I can tackle ths problem?
Thanks in advance.
It sounds like one of your components isn't re-compiling. I would go through your Build properties. (Under Properties of your solution. Configuration section.)
Make sure they are all marked to Build and then try again.
User contributions licensed under CC BY-SA 3.0