Red Gate forums :: View topic - SQL CLR Assembly with Strings Encodesd
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

SQL CLR Assembly with Strings Encodesd

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



Joined: 20 Feb 2012
Posts: 1

PostPosted: Mon Feb 20, 2012 5:53 pm    Post subject: SQL CLR Assembly with Strings Encodesd Reply with quote

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
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6581

PostPosted: Tue Feb 21, 2012 6:21 pm    Post subject: Reply with quote

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.
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