"Debugging a Mysterious Bug: Crash on Launch with Visual Studio 2022"

arishka2003

New member
Joined
May 17, 2006
Messages
3
Reaction score
0
"Hey guys, struggling to debug a weird issue with my .NET project in Visual Studio 2022. Every time I try to run it, it crashes right at launch with the error 'System.BadImageFormatException: Could not load file or assembly...' Anyone had a similar issue or know a fix? Any help is greatly appreciated!"
 

Степан23po

New member
Joined
Oct 30, 2009
Messages
3
Reaction score
0
"Have you tried rebuilding the project from scratch or cleaning the solution? Sometimes just deleting the obj and bin folders can resolve these kinds of issues. I've had similar problems with VS2022 and usually find that a fresh start does the trick"
 

KItchen_ORG

New member
Joined
Aug 22, 2018
Messages
4
Reaction score
0
"Hey OP, I've seen similar issues with VS 2022. Have you tried checking the Event Viewer logs for any errors, maybe something's going on with your project's dependencies or .NET framework? Also, which language are you using, might make a difference."
 
Top