Issue 55 in jayrock: Storing to a static field results in error

2 views
Skip to first unread message

jay...@googlecode.com

unread,
Jan 6, 2014, 12:08:34 PM1/6/14
to jayrock...@googlegroups.com
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

jay...@googlecode.com

unread,
Aug 25, 2015, 5:30:45 AM8/25/15
to jayrock...@googlegroups.com

Comment #1 on issue 55 by azizatif: Storing to a static field results in
error
https://code.google.com/p/jayrock/issues/detail?id=55

This issue has been migrated to:
https://github.com/atifaziz/Jayrock/issues/55
The conversation continues there.
DO NOT post any further comments to the issue tracker on Google Code as it
is shutting down.
You can also just subscribe to the issue on GitHub to receive notifications
of any further development.
Reply all
Reply to author
Forward
0 new messages