How can we help you today? How can we help you today?

Error when obfuscating a Windows Service

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
0

Comments

7 comments

  • Chris.Allen
    What .Net framework has your code been targetted for? Are you able to test by switching to a higher version?
    Chris.Allen
    0
  • ppatel2
    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
    0
  • Chris.Allen
    Can you confirm this is perfectly standard Microsoft Framework- and not, for example mono please?
    Chris.Allen
    0
  • Chris.Allen
    Also, please confirm if this is a run-time error or a (smartassembly) build time error
    Chris.Allen
    0
  • ppatel2
    Runtime error when running the assembly built
    ppatel2
    0
  • Chris.Allen
    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
    0
  • ppatel2
    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
    0

Add comment

Please sign in to leave a comment.