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".
The only way to make it run again is to Rebuild the whole
project.
I thought that the exe file was suppose to contain
everything it needed
to run as a standalone file.
It's odd because it seems that the exe located on the
desktop
corrupts the one in the ProjectsQuizbinDebug folder.
When the
desktop exe fails to execute, the one in the visual studio
folder stops
working also.
Any Ideas anyone ???
I have Win XP Pro with SP2 and of course the .NET framework
2.0
installed.
|