tags:

views:

71

answers:

1

I have a .NET 3.5 Winform exe. After applying protection using PC Guard, I got the following message while launching it.

"Unable to generate a temporary class (result=1). error CS0009: Metadata file "t:\xxx\winform.exe" could not be opened -- 'An attempt was made to load a program with an incorrect format.'"

After I click "OK", the program launch successfully.

What could be the problem?

A: 

I have the similar issue. After shell my application, I got this error message,exactly the same as you had. But after I click "Ok", the program didn't launch at all.

At the beginning I thought it is because the Manifest file. But after added manifest file, still have this error.

No clue....

yyy