Problem in protecting
amirhp
Posts: 2
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
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
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?