Answered by:
0xc000007b error

-
I 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?
Thanks
Question
Answers
-
Hi,
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,
Alina
- Marked as answer by liurong luo Wednesday, January 6, 2010 10:45 AM
All replies
-
Hi,
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,
Alina
- Marked as answer by liurong luo Wednesday, January 6, 2010 10:45 AM
-
Hello,
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:
http://support.microsoft.com/default.aspx/kb/241215
How to use windows debugging tools to analyze a crash dump:
http://thebackroomtech.com/2008/01/31/howto-use-the-windows-debugging-tools-to-analyze-a-crash-dump-bsod/
Best regards
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! -
Hi,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