5

I am not able to delete the object through core service.

I am getting object reference not found error. I am able to create and get the object but delete functionality fails.

I am using this code:

var client = new CoreService2010Client();
client.ClientCredentials.Windows.ClientCredential.UserName = Settings.UserID;
client.ClientCredentials.Windows.ClientCredential.Password = Settings.Password;
client.Open();
client.Delete(TCMURI);

here's the error:

Server stack trace: 
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Tridion.ContentManager.CoreService.Client.ICoreService.Delete(String id)
   at Tridion.ContentManager.CoreService.Client.CoreServiceClient.Delete(String id)
   at TridionCoreService.Program.testing() in C:\WORK\My Work\TridionCoreService\TridionCoreService\Program.cs:line 125
   at TridionCoreService.Program.Main(String[] args) in C:\WORK\My Work\TridionCoreService\TridionCoreService\Program.cs:line 25

I am using above code only and pass the tcm URI

Error Code : {System.ServiceModel.FaultCode}

4

1 回答 1

3

我有同样的错误,它与 UGC 有关。我禁用了 UGC(注释掉了配置中的模型和编辑器以及 ugc 中的 eventsystem.dll),重新启动了服务器,一切正常。

检查 Content Manager 服务器上的“Tridion”Windows 事件日志。可能存在与 UGC 相关的错误。我认为你需要联系 CS 来解决这个问题,因为错误在来自 UGC 的 Eventsystem dll 中

于 2012-09-04T18:19:17.650 回答