2014-03-04 34 views
0

我做一個EventReciever:System.Runtime.Remoting.RemotingException:無法解析 '通道' 模板引用: 'HTTP客戶端'

using System; 
using System.Security.Permissions; 
using Microsoft.SharePoint; 
using Microsoft.SharePoint.Utilities; 
using Microsoft.SharePoint.Workflow; 

namespace AlertLists.Alerts{ 

    public class Alerts : SPItemEventReceiver{ 

    public override void ItemAdding(SPItemEventProperties properties){ 

     base.ItemAdding(properties); 
     properties.ListItem["title"] = "OK"; 
     properties.ListItem.Update(); 

    } 

    } 

} 

其他信息:這是不是在農場解決方案

applicate該ListTemplateId是

我的服務器Windows Server 2012

當個性化的列表中添加項目,顯示上部署在Visual Studio 2012的解決方案我錯誤:

System.Runtime.Remoting.RemotingException: An attempt to connect to 
the remote activator failed with exception 
'System.Runtime.Remoting.RemotingException: Cannot resolve 'channel' 
template reference: 'http client'. 

爲什麼?請幫幫我!

感謝

回答

0

奇怪的是,這能解決問題,我在SharePoint 2013實例安裝在Windows域控制器:

設置-SPLogLevel -Identity 「SharePoint基礎:沙盒代碼服務」 -TraceSeverity「詳細「

重啓服務-Name‘SharePoint用戶代碼主機’

當然,我只在非生產環境中使用它。