none
That assembly does not allow partially trusted callers in Dashboard viewer WebForm application RRS feed

  • Question

  • Hi All,

    I have created one visual web part [For Sharepoint Server 2010] project with .net framework 3.5 and DevExpress v12.2.17, then adding Dashboard viewer WebForm control in visual web part, finally i deploy solution successfully, when i try to add web part in Sharepoint server 2010 web part zone i am getting following error 
    "07/11/2014 13:10:24.06 SPUCWorkerProcess.exe (0x2360)           0x1088 SharePoint Foundation         Sandboxed Code Service         fe8s Medium   -  - Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred. - userCodeWrapperType = "Microsoft.SharePoint.UserCode.SPUserCodeWebPartWrapper", userAssemblyGroupId = "10E2BD35E0E443FD9ABFE181FB3BB33C-k8EZ7RwkXIgDRsNy02gBToNe3+kbHlvnVm/OIWStpEA=", siteCollectionId = "7946bcb8-6473-4db1-8e9e-af3b55bda85d" - Inner Exception: Microsoft.SharePoint.UserCode.SPUserCodeSolutionProxiedException: That assembly does not allow partially trusted callers.    Server stack trace:      at Dashboard.VisualWebPart1.VisualWebPart1.__BuildControlASPxDashboardViewer1()     at Dashboard.VisualWebPart1.VisualWebPart1.__BuildControlTree(VisualWebPart1 __ctrl)     at Dashboard.VisualWebPart1.VisualWebPart1.InitializeControl()  ..."

    When i start debugging also getting issue as "@__ctrl1 = this.@__BuildControlASPxDashboardViewer1(); --> That assembly does not allow partially trusted callers" in visualWebPart1.ascx.g.cs 

    How to solve this security issue, i searched over internet did not address this.

    Thanks,

    Selvakumar.S


    Monday, July 14, 2014 12:36 PM

Answers

  • HI All,

    Problem gets resolved after deploying project as 'Farm Solution' in earlier it is in 'SandBoxed Solution'

    Thanks,

    Selvakumar.S

    • Marked as answer by JasonGuo Sunday, July 27, 2014 12:59 PM
    Wednesday, July 16, 2014 11:07 AM