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 を無効にし (config のモデルとエディター、および ugc の eventsystem.dll をコメントアウト)、サーバーを再起動すると、すべてが機能しました。

Content Manager サーバーの「Tridion」Windows イベント ログを確認します。おそらくUGCに関連するエラーがあります。エラーはUGCのEventsystem dllにあるため、これを修正するにはCSに連絡する必要があると思います

于 2012-09-04T18:19:17.650 に答える