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

  • 问题

  • 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()

    2013年4月13日 9:53

全部回复