Red Gate forums :: View topic - Error when obfuscating a Windows Service
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Error when obfuscating a Windows Service

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
ppatel2



Joined: 12 Aug 2013
Posts: 4

PostPosted: Mon Aug 12, 2013 11:08 pm    Post subject: Error when obfuscating a Windows Service Reply with quote

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
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 585

PostPosted: Wed Aug 14, 2013 1:41 pm    Post subject: Reply with quote

What .Net framework has your code been targetted for? Are you able to test by switching to a higher version?
Back to top
View user's profile Send private message
ppatel2



Joined: 12 Aug 2013
Posts: 4

PostPosted: Wed Aug 14, 2013 3:24 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 585

PostPosted: Wed Aug 14, 2013 4:29 pm    Post subject: Reply with quote

Can you confirm this is perfectly standard Microsoft Framework- and not, for example mono please?
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 585

PostPosted: Wed Aug 14, 2013 4:32 pm    Post subject: Reply with quote

Also, please confirm if this is a run-time error or a (smartassembly) build time error
Back to top
View user's profile Send private message
ppatel2



Joined: 12 Aug 2013
Posts: 4

PostPosted: Wed Aug 14, 2013 4:34 pm    Post subject: Reply with quote

Runtime error when running the assembly built
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 585

PostPosted: Wed Aug 14, 2013 5:06 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
ppatel2



Joined: 12 Aug 2013
Posts: 4

PostPosted: Wed Aug 14, 2013 5:38 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group