.Net app when started gives error 0x80131418 - Failed to grant permission to execute

0

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.

.net
visual-studio-2008
asked on Stack Overflow Jan 12, 2012 by user481779

1 Answer

1

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.

answered on Stack Overflow Jan 12, 2012 by Anderson

User contributions licensed under CC BY-SA 3.0