Sunday, January 03, 2010 8:44 AMI don't know what has happened but I've suddenly started to get this error when I debug in Visual Studio.
When I use "Start debugging" I get this error:
"Error while trying to run project: Could not load file or assembly 'WinFormApp1' or one of its dependencies. The module expected to contain an assembly manifest."
And when I use "Start without debugging" I get this error:
"the application failed to initialize properly (0xc000007b)."
I really don't know what has happened. The error "0xc000007b" is shown when I use "Start without debugging" and also for application that were debugged before this error.
I get this error for all projects. Even if I start a new project without making a single change to the code or the designer.
Anyone knows how to fix this?
Tuesday, January 05, 2010 11:41 PMModerator
If you get this error for any new project, the it means something in the settings or setup got messed up.
I would suggest 2 things: first, try to reset your settings from Tools->import and export settings -> Reset all settings-> reset all settings, overwriting current settings.
If after that it still does not work, I would repair/re-install VS.
Hope that this helps,
- Marked As Answer by Roahn LuoModerator Wednesday, January 06, 2010 10:45 AM
Wednesday, January 06, 2010 2:33 AMModeratorHello,
Error code 0xc000007b means INVALID_IMAGE_FORMAT (ntstatus.h) which indicates that the the application or some dlls are not valid Windows images.
Alina has provided good suggestion to diagnose the issue. To trouble shoot the issue, I also suggest you get a version of Debugging Tools For Windows or a Userdump.exe, because we could use them to generate a dump file and then analyze it.
Other references for:
How to use the userdump.exe to create a dump file:
How to use windows debugging tools to analyze a crash dump:
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
Welcome to the All-In-One Code Framework!
Wednesday, January 06, 2010 3:43 AMHi，farooqaaa
Go to http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/479b2826-9354-4287-8147-c1139570c2ee/ hope that can help you.
Microsoft experience http://www.microsoftkit.com
Trainig training http://www.getinmore.com