Not a valid Win32 application

Mar 17 2007 4:56 AM
Hi everyone,

I just made a small C# program (just a simple form) for someone using Visual C# express 2005. When I compile the program and run it through Visual C# .NET (debug or release), it works just fine. Now when I copy the exe file on the desktop and close Visual Studio, the exe located on the desktop works for about half an hour (or if I reboot) and then gives me the error : "C:Documents and Settings [...]DesktopQuiz.exe is not a valid Win32 application". After I get this message, when I restart Visual Studio and try to run the same program in debug mode, I get the message : "Error while trying to run project : Could not load file or assembly 'Quiz' or one of it's dependencies. The module was expected to contain an assembly manifest".

Answers (2)