询问者
error:未经处理的异常: System.ServiceModel.CommunicationObjectFaultedException: 通信对象 System.ServiceModel.Channels.ServiceChannel 无法用于通信,因为其处于“出错”状态。

问题
-
I recently learn that "Database SyncSQL Server and SQL Express N-Tier with WCF" source ,it worked good in localhost, but when I publish to server's iis and execute Synchronize(), throwed exception is "未经处理的异常: System.ServiceModel.CommunicationObjectFaultedException: 通信对象 System.ServiceModel.Channels.ServiceChannel 无法用于通信,因为其处于“出错”状态。",I wonder this question because of my secury setting.
hope every colleague is generous with your criticism.
exception message detail is as follow:
未经处理的异常: System.ServiceModel.CommunicationObjectFaultedException: 通信对
象 System.ServiceModel.Channels.ServiceChannel 无法用于通信,因为其处于“出错”
状态。
Server stack trace:
在 System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen(
)
在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean on
eway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan tim
eout)
在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCall
Message methodCall, ProxyOperationRuntime operation)
在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req
Msg, IMessage retMsg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa
ta, Int32 type)
在 CYX.SyncToolkit.WebSyncContract.IRelationalSyncContract.EndSession()
在 CYX.SyncToolkit.WebSyncContract.RelationalProviderProxy.EndSession(SyncSes
sionContext syncSessionContext) 位置 d:\Projects\WebSyncContract\WebSyncContract\RelationalProviderProxy.cs:行号 67
在 Microsoft.Synchronization.KnowledgeProviderProxy.EndSession(ISyncSessionSt
ate pSessionState)
在 Microsoft.Synchronization.CoreInterop.ISyncSession.Start(CONFLICT_RESOLUTI
ON_POLICY resolutionPolicy, _SYNC_SESSION_STATISTICS& pSyncSessionStatistics)
在 Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWaySyncHelper(Syn
cIdFormatGroup sourceIdFormats, SyncIdFormatGroup destinationIdFormats, Knowledg
eSyncProviderConfiguration destinationConfiguration, SyncCallbacks DestinationCa
llbacks, ISyncProvider sourceProxy, ISyncProvider destinationProxy, ChangeDataAd
apter callbackChangeDataAdapter, SyncDataConverter conflictDataConverter, Int32&
changesApplied, Int32& changesFailed)
在 Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWayKnowledgeSync(
SyncDataConverter sourceConverter, SyncDataConverter destinationConverter, SyncP
rovider sourceProvider, SyncProvider destinationProvider, Int32& changesApplied,
Int32& changesFailed)
在 Microsoft.Synchronization.KnowledgeSyncOrchestrator.Synchronize()
在 Microsoft.Synchronization.SyncOrchestrator.Synchronize()
全部回复
-
你好,
有可能是认证的问题,请用try/catch块获取异常。参考:
Haixia
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已建议为答案 Haixia_XieModerator 2013年4月19日 10:17
- 已标记为答案 Haixia_XieModerator 2013年5月7日 7:16
- 取消答案标记 Haixia_XieModerator 2013年5月16日 10:45
- 取消建议作为答案 Haixia_XieModerator 2013年5月16日 10:45