Problem in protecting

amirhpamirhp Posts: 2
edited March 31, 2014 1:24PM in SmartAssembly
I want to protect my datalayer dll which use entity framework as ORM.
in unprotected dll every thing work fine.
but when I protect file with smart assembly and sign the assembly with same key.
I got following error:
Got unexpected type of System.Data.SqlClient.SqlConnection instead of a ProfiledConnection

Comments

  • Jessica RJessica R Posts: 1,222 Rose Gold 4
    Hi Amir,

    Thanks for your post!

    Can I first check--what protection options do you have enabled on the assembly?

    You'll likely need to exclude some code from obfuscation, pruning, and/or control flow obfuscation to avoid the error.

    For any of these protection options that you have enabled, could you please try disabling them one at a time to determine the one causing this?

    Please let me know how you get on!

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


Sign In or Register to comment.