I am developing a Silverlight application. It interacts with SharePoint 2010 using SharePoint Silverlight Managed Client Object Model.
One of the application functionalities is to create a SharePoint 2010 site. If the provided URL of the site that is to be created belongs to the same SharePoint web application where the Silverlight application is loaded, the site gets created without any issues. However, if the URL targets a SharePoint web application different than the one where the Silverlight application is loaded, I get the Security exception.
In the site creation method I am creating the new client context that matches the specified URL and then calling Object Model's site creation method:
this.ClientContext = new ClientContext(uriFromApplication); WebCreationInformation wci = new WebCreationInf... this.ClientContext.Web.Webs.Add(wci); this.ClientContext.ExecuteQueryAsync(onSuccess, onFail);
Could anyone explain why am I getting the Security exception? Thanks.
I've asked the same question here at stackoverflow.