Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 55 by
kmur...@smasolutions.it: Storing to a static field results
in error
http://code.google.com/p/jayrock/issues/detail?id=55
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.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings