| Author |
Message |
icelorrio
Joined: 20 Feb 2012 Posts: 1
|
Posted: Mon Feb 20, 2012 5:53 pm Post subject: SQL CLR Assembly with Strings Encodesd |
|
|
I am trying to store on our SQL Server 2005 an assembly obfuscated with SmartAssembly 6.
When I try to encrypt the strings, it makes an assembly that is not valid for store into SQL Server 2005.
I tried with different configurations, and it also fails the simplest (no obfuscation, string encoding, no string encoding improvement, no string encrypt, no strnig cache)
That is a problem because we want to encrypt all the strings into the assembly.
This is the message:
Msg 6211, Level 16, State 1, Line 3
CREATE ASSEMBLY failed because type 'SmartAssembly.StringsEncoding.Strings' in safe assembly '<OUR_ASSEMBLY_NAME>' has a static field 'MustUseCache'. Attributes of static fields in external_access assemblies must be marked readonly in Visual C#, ReadOnly in Visual Basic, or initonly in Visual C++ and intermediate language.
Thanks |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6369 Location: Red Gate Software
|
Posted: Tue Feb 21, 2012 6:21 pm Post subject: |
|
|
Thanks - I believe you have already opened a support ticket about this with Red Gate and we will be in touch via email.
Preliminarily, it looks to me like the strings encoding feature wasn't compatible with CLR assemblies in v5 of SmartAssembly, was fixed in v6, and apparently broken again in 6.5. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
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