Failed to protect .Net application.

Issues related to VMProtect
Post Reply
dogesharp
Posts: 5
Joined: Thu Oct 20, 2022 3:28 pm

Failed to protect .Net application.

Post by dogesharp »

SDK: .Net Framework 4.7.2
VMP version:1530 (4.7.2)
Error message:Runtime error at CompileToVM: neg
MemProtect,ImportProtect,ResourceProtect,PackOutput were enabled.
Strip debug info was disabled.

Both 4.7.0 and 4.7.1 are worked.
sorry, I cannot provide the source code.
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Failed to protect .Net application.

Post by Admin »

Could you provide us an exanple (original EXE+VMP files) that shows your problem?
dogesharp
Posts: 5
Joined: Thu Oct 20, 2022 3:28 pm

Re: Failed to protect .Net application.

Post by dogesharp »

After many many tests,I finally found what code caused this error.
Here is the simple source code.
Attachments
Form1.rar
(931 Bytes) Downloaded 80 times
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Failed to protect .Net application.

Post by Admin »

Please try the 1537 build.
dogesharp
Posts: 5
Joined: Thu Oct 20, 2022 3:28 pm

Re: Failed to protect .Net application.

Post by dogesharp »

Admin wrote:Please try the 1537 build.
Thanks,fix confirmed!
By the way,it seems that app using FodyWeavers.Costura (a .net assemblies packer plugin) cannot enabled Strip Debug Info function.Any idea on this?
the error is :
[Error] Can't resolve assembly: mscorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Failed to protect .Net application.

Post by Admin »

The problem is here:
mscorlib, Version=0.0.0.0
Post Reply