You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to create an assembly in SQL Server CLR, safe mode can not be used
because an error is reported:
Msg 6212, Level 16, State 1, Line 1
CREATE ASSEMBLY failed because method 'get_StockExporters' on type
'Jayrock.Json.Conversion.ExportContext' in safe assembly 'Jayrock.Json' is
storing to a static field. Storing to a static field is not allowed in safe
assemblies.
What steps will reproduce the problem?
1. Try to create an assembly in SQL Server for Jayrock with the above command
2.
3.
What is the expected output? What do you see instead?
The assembly should be able to use safe mode
What version of the product are you using? On what operating system?
runtime version: v2.0.50727 - Windows Pro 7 - 64bit
Please provide any additional information below.
The assembly works if created with an unsafe permission. This will not be
acceptable in production, however.
Original issue reported on code.google.com by [email protected] on 6 Jan 2014 at 5:08
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 6 Jan 2014 at 5:08The text was updated successfully, but these errors were encountered: