.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Obfuscator and my acad plugin dll app

10 REPLIES 10
Reply
Message 1 of 11
jaboone
2273 Views, 10 Replies

Obfuscator and my acad plugin dll app

Not sure if anyone can help if they don't have this software, but am going to try.  Maybe someone knows.

I use logic NP obfuscator and am trying to compile a dll plugin I am wanting to send on the app portathon, so I need an answer as soon as possible if anyone can share some insight.

 

 

Obviously there is some obfuscating in the acad support files, that I guess mine is bucking with.  This is the error message I am getting.  I tried to ignore the acad stuff.

 

Crypto Obfuscator For .Net v2013 R2 Standard (Licensed To: James Boone,Powersoft Engineering), Build:130904

----------------------------------------------------------------------------------------------

Running from UI - C:\Program Files (x86)\LogicNP Software\Crypto Obfuscator For .Net 2013 R2\CryptoObfuscator.exe

Obfuscator Project File= A:\_EPS folder\PanSchPro acad\bin\EPSElec.obproj

Output Path= A:\_EPS folder\PanSchPro acad\bin\Obfuscator

Loading assembly 'A:\_EPS folder\PanSchPro acad\bin\EPSElec.dll'

Preparing assembly 'EPSElec'

 

Error occurred while obfuscation: System.IO.FileNotFoundException - System.IO.FileNotFoundException: Could not resolve: Acdbmgd, Version=19.1.0.0, Culture=neutral, PublicKeyToken=null. Specify the path where this assembly resides using 'Search Directories' in the Crypto Obfuscator's Project Properties Dialog (Ctrl+P).

   at A.cb24b5c995a4b3c86147a8d69d9719630.c321f3c9128e424f37bb880e068efff85(c321a25747e1f498390774b65fb9f89af ) in File203:line 108

   at A.c2224c862d1a97307eaa6744d9fd44052.c321f3c9128e424f37bb880e068efff85(c321a25747e1f498390774b65fb9f89af ) in File215:line 71

   at A.c535ae534c1db2c6fa21d03d4b8fe97f6.c321f3c9128e424f37bb880e068efff85(c20ba0ba68fd6b425e71a765705a50574 ) in File182:line 79

   at A.c20ba0ba68fd6b425e71a765705a50574.c321f3c9128e424f37bb880e068efff85() in File2:line 201

   at A.c1a5e0c07abbeebee260c9294e9ffb443.cb3258476904695ff17ea41cfa007be2a(c20ba0ba68fd6b425e71a765705a50574 ) in File270:line 1143

   at A.c7ef3407ce7699a98d477921a4f307e97.c0216acd28360b854616e69342e43c906(c1a5e0c07abbeebee260c9294e9ffb443 , List`1 , Hashtable , c345a8b484323503b63d6257e9c79f632 ) in File270:line 1009

   at A.c7ef3407ce7699a98d477921a4f307e97.c7c3e4ecccb6e8d96390def8e3e3f5e5a() in File270:line 866

   at A.cfa31229d37496446ccf88f83596adf9d.c06aad533d46c5d74d67d9ee472ea5b01() in File314:line 1258

   at A.cfa31229d37496446ccf88f83596adf9d.ca4838fb9343869ab96585d35476ae1ae(c4c650b0a5c7749985595b3e1ea6e3255 ) in File314:line 2548

 

Learning as I go
10 REPLIES 10
Message 2 of 11
jaboone
in reply to: jaboone

Resolved, sorry.

Learning as I go
Message 3 of 11
santoshr0114
in reply to: jaboone

Can you tell how?

Regards
Santosh
Message 4 of 11
jaboone
in reply to: santoshr0114

You have to own a Obfuscator, but most arn't cheap, in the $2500 range, but I was able to find one, LogicNP, out of India for less than $300.  Tell them James Boone sent you.

The product is relativly easy to work, once you learn all the neances of obfuscation and the terminology.

Learning as I go
Message 5 of 11
santoshr0114
in reply to: jaboone

Thank You for the information, But how did u solve the error.

Regards
Santosh
Message 6 of 11
tamilanban
in reply to: jaboone

Consider two dependent Projects in your solution .A and B , if A.DLL alone is builded and updated in crypto obfuscator then the the references to B.DLL are not got from the metadata from the obfuscator
..... so consider the whole solution always before obfuscating the solution .

Tags (1)
Message 7 of 11
jaboone
in reply to: jaboone

The obfuscator I have compiles both at the same time.  Actually I have to take special efforts to remove any I don't want compiled.

Learning as I go
Message 8 of 11
jaboone
in reply to: santoshr0114

Remove the acad dll's from the solution. Told it not to compile acad dlls.
Learning as I go
Message 9 of 11
BKSpurgeon
in reply to: jaboone

Hi folks

 

I'm sure someone will be going through the same problems in the futre. So perhaps I will write a blog post about it once I have the solution.

 

Context

I have written a dll. I do not want staff/colleagues running off with it. If they do I don't want to make it easy. I am using CryptoObfuscator to obfuscate the dll.

 

  1. First I clicked on "add Assemblies". I then added the dll which visual studio produced in the bin/release folder.
  2. Then i clicked on some "obfuscation settings"
  3. Then I clicked on "obfuscate"

 

and it throws up the following screen - which looks exactly like the error James Boone had above.

 

Jame's solution:

  • Unlike James Boone, in CryptoObfuscator, I did not reference any Autocad Dlls. But within the DLL which I made, there are references to AcDbMgd etc. 
  • Am I doing this right? Any help would be much appreciated.

 

cryptoObfuscateError.PNG

 

 

 

 

 

 

 

 

Here are my crypto settings:

 

crypto-Settings.PNG

 

 

 

I"m using Autocad 2016. And I have made a .net DLL that degubs perfectly. It just can't seem to obfuscate it. any help would be much appreciated.

 

 

kind regards

 

BK

Message 10 of 11
BKSpurgeon
in reply to: jaboone

Here is the error log that Cypto Obfuscator spits out:

 


Crypto Obfuscator For .Net v2015 Enterprise - EVALUATION VERSION, Build:160118
----------------------------------------------------------------------------------------------
Running from UI - C:\Program Files (x86)\LogicNP Software\Crypto Obfuscator For .Net 2015\CryptoObfuscator.exe
Obfuscator Project File= C:\Users\Koshy\Documents\CryptoObfuscator_projects\test_BubbleDeckObfuscation.obproj
Output Path= C:\Users\Koshy\Documents\CryptoObfuscator_projects\CryptoObfuscator_Output
Loading assembly 'C:\Users\Koshy\Documents\Visual Studio 2013\Projects\Bubble Deck\Bubble Deck\bin\Release\Bubble Deck.dll'
Detected Assembly Target Framework: Normal
Loaded symbols for 'C:\Users\Koshy\Documents\Visual Studio 2013\Projects\Bubble Deck\Bubble Deck\bin\Release\Bubble Deck.dll'
Merging CryptoLicensing assembly in assembly 'Bubble Deck'
Detected Assembly Target Framework: Normal
Preparing assembly 'Bubble Deck'

 

Error occurred while obfuscation: System.IO.FileNotFoundException - System.IO.FileNotFoundException: Could not resolve: Acdbmgd, Version=20.0.0.0, Culture=neutral, PublicKeyToken=null. Specify the path where this assembly resides using 'Search Directories' in the Crypto Obfuscator's Project Properties Dialog (Ctrl+P).


at A.cb24b5c995a4b3c86147a8d69d9719630.c321f3c9128e424f37bb880e068efff85(c321a25747e1f498390774b65fb9f89af ) in File203:line 108
at A.c2224c862d1a97307eaa6744d9fd44052.c321f3c9128e424f37bb880e068efff85(c321a25747e1f498390774b65fb9f89af ) in File215:line 71
at A.c535ae534c1db2c6fa21d03d4b8fe97f6.c321f3c9128e424f37bb880e068efff85(c20ba0ba68fd6b425e71a765705a50574 ) in File182:line 79
at A.c20ba0ba68fd6b425e71a765705a50574.c321f3c9128e424f37bb880e068efff85() in File2:line 225
at A.c1a5e0c07abbeebee260c9294e9ffb443.cb3258476904695ff17ea41cfa007be2a(c20ba0ba68fd6b425e71a765705a50574 ) in File271:line 1171
at A.c7ef3407ce7699a98d477921a4f307e97.c0216acd28360b854616e69342e43c906(c1a5e0c07abbeebee260c9294e9ffb443 , List`1 , Hashtable , c345a8b484323503b63d6257e9c79f632 ) in File271:line 1037
at A.c7ef3407ce7699a98d477921a4f307e97.c7c3e4ecccb6e8d96390def8e3e3f5e5a() in File271:line 894
at A.cfa31229d37496446ccf88f83596adf9d.c06aad533d46c5d74d67d9ee472ea5b01() in File315:line 1397
at A.cfa31229d37496446ccf88f83596adf9d.ca4838fb9343869ab96585d35476ae1ae(c4c650b0a5c7749985595b3e1ea6e3255 ) in File315:line 2713

Message 11 of 11
Jeff_M
in reply to: BKSpurgeon

BK, I don't use CryptoObfuscator so have no idea where you need to add this setting, but, just as the message implies, you need to provide a location for the AcDbmgd.dll (and any other referenced assemblies you use in your builds. In Dotfuscator we have a setting for "User Defined Assembly Load Path" where I specify paths to the Acad, Map, & C3D *mgd.dll's. Without those paths set I get the same error you do.
Jeff_M, also a frequent Swamper
EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost