我在服務器上部署了一個wcf web服務。如果發生異常,則錯誤消息的行爲類似於從本地計算機執行的代碼。例如,下面的錯誤消息指示存儲實際代碼的本地計算機文件夾。例如「C:\ initpub ...」。爲什麼我在服務器上得到這個錯誤。任何建議?來自WCF服務的意外錯誤消息
消息:未將對象引用設置爲對象的實例。
跟蹤:
服務器堆棧跟蹤:
在
System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime 操作,ProxyRpc & RPC)在異常重新拋出[0]:
在System.Runtime .Remoting.Proxies.RealProxy.HandleReturnMessage(即時聊天 reqMsg,即時聊天retMsg)
在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData & MSGDATA,的Int32類型)
在Domain.ExternalAccount.ExternalAccount.InsertExternalAccountWithPositions(ExternalAccountWithPositionsInParam 請求)
在Domain.ExternalAccount.ExternalAccountClient.InsertExternalAccountWithPositions(ExternalAccountWithPositionsInParam 請求)在
C:\的Inetpub \ wwwroot的\網站\安全\ finplanextsvc \ NaviplanExternalServices \域\ ExternalAccount.cs:線 在NaviplanExternalServices.NaviplanExternalAccount.InsertExternalAccount(ACCOUNTTYPE acctType,ExternalPosition []位置)
C:\的Inetpub \ wwwroot的\網站\安全\ finplanextsvc \ NaviplanExternalServices \ NaviplanExternalServices \ SERVICES \ NaviplanExternalAccount.svc.cs:當您生成項目管線178
請按照以下說明啓用WCF服務日誌記錄:http://msdn.microsoft.com/en-us/library/ms733025.aspx – kroonwijk