This is a migrated thread and some comments may be shown as answers.

exception for sharepoint sandbox

1 Answer 97 Views
Input
This is a migrated thread and some comments may be shown as answers.
william
Top achievements
Rank 1
william asked on 25 Apr 2011, 08:27 AM
Hi all,

I use telerik ASP.NET AJAX control to develop sharepoint webpart, but in sharepoint sandbox model, it throw this exception below:

I add RadTextBox of telerik ASP.NET AJAX to the page. but it throw the Exception: "Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred". I debug my code, but I catch nothing about this exception. 

In my code, i just use Page.Controls.Add(...) to add terelik control into page, but throw this exception. then I try to use Page.Controls.Add(..) method to add a ASP.NET control into page, it is OK.

I know many restrictions in sharepoint sandbox model, one of these is "can’t access code that is not marked to allow partially trusted callers". I wonder this exception is relationship with it. any configuration i should set into web.config file?

anyone can give me some suggestions?

thanks.

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 28 Apr 2011, 09:02 AM
Hello william,

The current version of Telerik Sharepoint Acceleration Kit does not support Sharepoint solutions in Sandbox environment because of problem with the integration of controls implementing IScriptControl interface in sandbox model. We have contacted Microsoft several times without much luck so far.

Regards,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Input
Asked by
william
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or