Sharepoint 2013 沙盒代码执行请求被拒绝,因为沙盒代码主机服务太忙,无法处理该请求

Sharepoint 2013 沙盒代码执行请求被拒绝,因为沙盒代码主机服务太忙,无法处理该请求,sharepoint-2013,Sharepoint 2013,我的项目中有一个事件接收器,在事件接收器中有以下代码。它被绑定到自定义列表 公共覆盖无效项AddingSpiteEventProperties属性 { base.ItemAddingproperties //获取引发事件的web SPWeb spCurrentSite = properties.OpenWeb(); //Get the name of the list where the event was raised Strin

我的项目中有一个事件接收器,在事件接收器中有以下代码。它被绑定到自定义列表

公共覆盖无效项AddingSpiteEventProperties属性 { base.ItemAddingproperties

//获取引发事件的web

       SPWeb spCurrentSite = properties.OpenWeb();

       //Get the name of the list where the event was raised         

       String curListName = properties.ListTitle;

       //If the list is our list named SubSites the create a new subsite directly below the current site

       if (curListName == "Customers")
       {

           //Get the SPListItem object that raised the event

           SPListItem curItem = properties.ListItem;

           //Get the Title field from this item. This will be the name of our new subsite
           String curItemSiteName = properties.AfterProperties["Title"].ToString();

           //Get the Description field from this item. This will be the description for our new subsite

           string curItemDescription = properties.AfterProperties["Description"].ToString();

           //Update the SiteUrl field of the item, this is the URL of our new subsite

           properties.AfterProperties["SiteUrl"] = spCurrentSite.Url + "/" + curItemSiteName;

           //Create the subsite based on the template from the Solution Gallery

           SPWeb newSite = spCurrentSite.Webs.Add(curItemSiteName, curItemSiteName, curItemDescription, Convert.ToUInt16(1033), "WIKI#0", false, false);

           //Set the new subsite to inherit it's top navigation from the parent site, Usefalse if you do not want this.
           newSite.Navigation.UseShared = true;
           CreateList(newSite);
           newSite.Close();

       }

   }
此代码适用于场解决方案。对于沙箱解决方案,它在以下位置给出了例外: SPWeb newSite=spCurrentSite.Webs.AddcurItemSiteName、curItemSiteName、curItemDescription、Convert.ToUInt161033、WIKI0、false、false

表示沙盒代码执行请求被拒绝,因为沙盒代码主机服务太忙,无法处理该请求


任何建议???

沙盒解决方案都已被弃用。不要使用它们。在ItemAdding事件处理程序中创建网站这样的繁重工作对我来说似乎有些过分。我需要的是,需要将解决方案部署到Office 365。我希望只有沙盒解决方案支持SharePoint online。使用SharePoint应用程序。沙盒解决方案存在问题。