我正在開發Silverlight應用程序。它使用SharePoint Silverlight託管客戶端對象模型與SharePoint 2010進行交互。無法在其他Web應用程序中創建網站 - Silverlight客戶端對象模型
其中一個應用程序功能是創建SharePoint 2010網站。如果提供的要創建的網站的URL屬於加載Silverlight應用程序的同一SharePoint Web應用程序,則該網站的創建沒有任何問題。但是,如果URL的目標位置與加載Silverlight應用程序的SharePoint Web應用程序不同,則會出現安全性異常。
在網站創建方法,我創建指定的URL匹配的新的客戶端環境,然後調用對象模型的網站創建方法:
this.ClientContext = new ClientContext(uriFromApplication);
WebCreationInformation wci = new WebCreationInf...
this.ClientContext.Web.Webs.Add(wci);
this.ClientContext.ExecuteQueryAsync(onSuccess, onFail);
任何人都可以解釋爲什麼我收到了安全例外?謝謝。
我問了同樣的問題here at SharePoint overflow。