Error when obfuscating a Windows Service

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Error when obfuscating a Windows Service

Postby ppatel2 » Mon Aug 12, 2013 11:08 pm

Hey, so I have got the trial version of Smart Assembly and have 14 days to see if I can manage to make this work with our software before we do a purchase, and have ran into an issue which is seriously holding me back at the moment.

Basically what is happening is a "System.TypeLoadException: Could not load type 'This.Service.API.UserNamePassValidator' from assembly 'This.Service'."

I am not sure as to why that would cause an error as the file itself does not call System.Reflection (I read that there are known issues between it and smart assembly).

I would appreciate any and all help. Thank you in advance
ppatel2
 
Posts: 4
Joined: Mon Aug 12, 2013 11:03 pm

Postby Chris.Allen » Wed Aug 14, 2013 1:41 pm

What .Net framework has your code been targetted for? Are you able to test by switching to a higher version?
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby ppatel2 » Wed Aug 14, 2013 3:24 pm

It was built to target .Net 4.0 Client Profile, I have switched up to 4.5 and have the same issue.

I have also tried going the full profile, to no avail.
ppatel2
 
Posts: 4
Joined: Mon Aug 12, 2013 11:03 pm

Postby Chris.Allen » Wed Aug 14, 2013 4:29 pm

Can you confirm this is perfectly standard Microsoft Framework- and not, for example mono please?
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby Chris.Allen » Wed Aug 14, 2013 4:32 pm

Also, please confirm if this is a run-time error or a (smartassembly) build time error
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby ppatel2 » Wed Aug 14, 2013 4:34 pm

Runtime error when running the assembly built
ppatel2
 
Posts: 4
Joined: Mon Aug 12, 2013 11:03 pm

Postby Chris.Allen » Wed Aug 14, 2013 5:06 pm

OK- thanks. If you are using the merging or embedding features, please try without- this will probably work and then we can find out why its failing.
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby ppatel2 » Wed Aug 14, 2013 5:38 pm

This is the perfectly standard .NET framework, and I have disabled the embedding/merging features, and it works! I just need to test it against every system we have in place then reconfirm.

Is it possible to obfuscate the other .dll's required by the program into a format that the core program will still be able to use?
ppatel2
 
Posts: 4
Joined: Mon Aug 12, 2013 11:03 pm


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 1 guest