so I have a sandboxed solution with an event receiver which generates a document number. Part of this document number is using a TaxonomyFieldValueCollection to retrieve the field name for that taxonomy. This is the code here:
TaxonomyFieldValueCollection values = new TaxonomyFieldValueCollection(properties.AfterProperties["Workstream"].ToString());
This is the error I get when I deploy the solution to Office365:
System.Security.SecurityException: That assembly does not allow partially trusted callers ... The action that failed was: LinkDemand The Zone of the assembly that failed was: MyComputer
Is this due to the fact that we can't use taxonomy in sandboxed solutions? If so are there any alternatives?
THANK YOU!