0

The below Error was thrown while activating the feature in SharePoint Sandboxed solution in Sharepoint-2013.

unhandled exception was thrown by the sandboxed code wrapper's execute method in the partial trust domain

From ULS log:

Microsoft.SharePoint.UserCode.SPUserCodeSolutionProxiedException: That assembly does not allow partially trusted callers. Server stack trace: at ******.ListDefinition.Features.******.SiteColumn_Feature.******EventReceiver.FeatureActivated(SPFeatureReceiverProperties properties) at Microsoft.SharePoint.UserCode.SPUserCodeFeatureCallOutWrapper.ExecuteInternal(Object userCodeObject, SPUserCodeRemoteExecutionContext context) at Microsoft.SharePoint.UserCode.SPUserCodeRemoteExecutionWrapper.Execute(SPUserCodeExecutionContext executionContext)

Please suggest the steps to fix this issue.

  • This link suggests the issue could be fixed by deploying the solution as a Farm solution. Is that an option in your case? – moe Jan 11 '16 at 8:43
  • @moe Sorry that link was not relevant to my Query,I have Uploaded my Sandboxed WSP in Solution Galleries and on Activating the feature it shows the error – Sivam G Jan 11 '16 at 11:25
0

Please ensure that your assembly has a strong name.

Also, you can try to add [assembly:AllowPartiallyTrustedCallers] attribute to the assembly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.