Unable to generate a temporary class (result=1)

Issues related to Enigma Virtual Box
ericwu
Posts: 6
Joined: Wed Nov 21, 2012 1:55 pm

Unable to generate a temporary class (result=1)

Post 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?
Last edited by ericwu on Sun Nov 25, 2012 10:49 am, edited 1 time in total.
Enigma
Site Admin
Posts: 3085
Joined: Wed Aug 20, 2008 2:24 pm

Re: Unable to generate a temporary class (result=1)

Post 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?
ericwu
Posts: 6
Joined: Wed Nov 21, 2012 1:55 pm

Re: Unable to generate a temporary class (result=1)

Post by ericwu »

hi

Here is the client side program and server side web service code that can represent such condition

Thanks
Last edited by ericwu on Sun Nov 25, 2012 10:50 am, edited 1 time in total.
Enigma
Site Admin
Posts: 3085
Joined: Wed Aug 20, 2008 2:24 pm

Re: Unable to generate a temporary class (result=1)

Post by Enigma »

In your case, you should enable the option Share Virtual System To Child Processes. This will help you.
ericwu
Posts: 6
Joined: Wed Nov 21, 2012 1:55 pm

Re: Unable to generate a temporary class (result=1)

Post by ericwu »

It don't work
Last edited by ericwu on Sun Nov 25, 2012 10:51 am, edited 2 times in total.
Enigma
Site Admin
Posts: 3085
Joined: Wed Aug 20, 2008 2:24 pm

Re: Unable to generate a temporary class (result=1)

Post 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.
ericwu
Posts: 6
Joined: Wed Nov 21, 2012 1:55 pm

Re: Unable to generate a temporary class (result=1)

Post by ericwu »

Windows OS: Windows 7 Home Edition
EVB : 5.70 Build 20121113
Last edited by ericwu on Sun Nov 25, 2012 10:52 am, edited 2 times in total.
Enigma
Site Admin
Posts: 3085
Joined: Wed Aug 20, 2008 2:24 pm

Re: Unable to generate a temporary class (result=1)

Post by Enigma »

Can you please also try attached version?
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.
You do not have the required permissions to view the files attached to this post.
ericwu
Posts: 6
Joined: Wed Nov 21, 2012 1:55 pm

Re: Unable to generate a temporary class (result=1)

Post 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.
Enigma
Site Admin
Posts: 3085
Joined: Wed Aug 20, 2008 2:24 pm

Re: Unable to generate a temporary class (result=1)

Post 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
Post Reply