Page 1 of 2
Unable to generate a temporary class (result=1)
Posted: Wed Nov 21, 2012 2:06 pm
by ericwu
After using EVB to wrap my program
it show such message
"Unable to generate a temporary class (result=1). error CS0009..."
any idea?
Re: Unable to generate a temporary class (result=1)
Posted: Wed Nov 21, 2012 3:05 pm
by Enigma
Hi ericwu,
The most common reason of such error could be a name of the packed file, that is often happen for .net applications. For example, if your file is named as product.exe, it may have a configuration file product.exe.config. After you pack the file, it is being automatically named as product_packed.exe, and it is unable to find own config file and error appears.
Try to rename your packed file to original.
Probably, your problem may appear due to same problem of Enigma Protector that can be solved using this way:
http://forum.enigmaprotector.com/viewto ... f=6&t=1789
Otherwise, if this won't fix the problem, can you please send us non packed sample of your exe (and all related files that are needed to run it) so we check it out and will try to fix the problem at
support@enigmaprotector.com?
Re: Unable to generate a temporary class (result=1)
Posted: Thu Nov 22, 2012 5:15 am
by ericwu
hi
Here is the client side program and server side web service code that can represent such condition
Thanks
Re: Unable to generate a temporary class (result=1)
Posted: Thu Nov 22, 2012 8:56 am
by Enigma
In your case, you should enable the option Share Virtual System To Child Processes. This will help you.
Re: Unable to generate a temporary class (result=1)
Posted: Thu Nov 22, 2012 10:14 am
by ericwu
It don't work
Re: Unable to generate a temporary class (result=1)
Posted: Thu Nov 22, 2012 10:34 am
by Enigma
Can you please let me know the version of Windows you are using?
And also make sure you are using latest version of EVB.
Re: Unable to generate a temporary class (result=1)
Posted: Thu Nov 22, 2012 10:44 am
by ericwu
Windows OS: Windows 7 Home Edition
EVB : 5.70 Build 20121113
Re: Unable to generate a temporary class (result=1)
Posted: Fri Nov 23, 2012 2:50 pm
by Enigma
Can you please also try attached ve
rsion?
This one had been successfully tested on Windows 7 x86 and x64, and there had not been found any error.
Except these errors, but I think they do not relate to files virtualization:
1.png
2.png
3.png
4.png
Also, please try thw following:
- copy packed file to a simpler folder, like "C:\Test" and check if it will be working
- try to disable your antivirus, to check if it may cause problems.
If nothing of this helps, I could send you a debug version of EVB that may tell us more about problem or incompatibility.
Re: Unable to generate a temporary class (result=1)
Posted: Fri Nov 23, 2012 3:41 pm
by ericwu
this attached version work fine.
and run test at other folder also work fine.
I turn on the test server now.
you can try again.
I am glad to be the beta EVB tester.
Re: Unable to generate a temporary class (result=1)
Posted: Mon Nov 26, 2012 10:25 am
by Enigma
Really, I have packed it with usual version of EVB, there were nothing special.
Probably, some intermediate problems had been recently fixed...
Please try this version, packed file with this version also works fine for me:
http://enigmaprotector.com/assets/files ... 121126.exe