2012-07-17 55 views
0

我正在使用WCF服務,並且正在使用卡西尼進行測試。我也有一個控制檯應用程序,並有一個網絡參考。到卡西尼託管的svc。這工作正常,我可以調用服務方法。但是當我將svc部署到IIS並嘗試運行到控制檯應用程序時,出現此錯誤。將WCF服務部署到IIS 7 64位

System.ServiceModel.FaultException`1了未處理
消息=有在反序列化在消息NotifRQRequest頭之一的錯誤。有關更多詳細信息,請參閱InnerException。
源= mscorlib程序

服務器堆棧跟蹤:
在System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(消息 回覆,MessageFault故障,字符串動作,MessageVersion版本, FaultConverter faultConverter)
在System.ServiceModel。 Channels.ServiceChannel.HandleReply(ProxyOperationRuntime 操作,ProxyRpc & RPC)
在System.ServiceModel.Channels.ServiceChannel.Call(字符串動作,布爾單向,ProxyOperationRuntime操作,對象[]插件, 對象[]奏,時間跨度TI meout)
在System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage 包括MethodCall,ProxyOperationRuntime操作)
在System.ServiceModel.Channels.ServiceChannelProxy.Invoke(即時聊天 消息)[0]時
異常重新拋出:
在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(即時聊天 reqMsg,即時聊天retMsg)
在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData & MSGDATA,的Int32類型)
在TestConsole.ServiceReference1。 IPush.RQ (NotifRQRequest要求)
在TestConsole.ServiceReference1.PushClient.TestConsole.ServiceReference1.IPush.NotifRQ(NotifRQRequest 要求)在ServiceReference1 \ Reference.cs:行37165
在TestConsole.ServiceReference1.Client.RQ(安全保障,行動行動,郵件ID的MessageID,的ReplyTo的ReplyTo,爲了要, NotifRQ notifRQ1)ServiceReference1 \ Reference.cs:線37176
在TestConsole.Program.Main(字串[] args)
在System.AppDomain._nExecuteAssembly(RuntimeAssembly組件,字符串[ ] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile,Evidence assemblySecurity,String [] args)
在Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在System.Threading.ThreadHelper.ThreadStart_Context(對象狀態)
在System.Threading.ExecutionContext.Run(的ExecutionContext的ExecutionContext,ContextCallback回調,對象的狀態,布爾 ignoreSyncCtx )
在System.Threading.ExecutionContext.Run(ExecutionContext中的ExecutionContext,ContextCallback回調,對象狀態)
在System.Threading.ThreadHelper.ThreadStart()
的InnerException:

我跑一個x64 envt。甚至嘗試更改爲不同的應用程序池。

任何建議或後,將不勝感激。

感謝,

編輯1: 只注意到一兩件事。 svc使用wsdl中列出的大約5個xml命名空間。在卡西尼,我可以瀏覽,即我可以打localhost/Notification/NotificationService.svc?xsd = xsd0,但我不能在IIS上做同樣的事情!

<xsd:schema targetNamespace="http://www.opentravel.org/OTA/2003/05/Imports"> 
    <xsd:import schemaLocation="http://localhost/Notification/NotificationService.svc?xsd=xsd0" namespace="http://www.opentravel.org/OTA/2003/05"/> 
    <xsd:import schemaLocation="http://localhost/Notification/NotificationService.svc?xsd=xsd1" namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/> 
    <xsd:import schemaLocation="http://localhost/Notification/NotificationService.svc?xsd=xsd3" namespace="http://schemas.xmlsoap.org/ws/2004/03/addressing"/> 
    <xsd:import schemaLocation="http://localhost/Notification/NotificationService.svc?xsd=xsd2" namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"/> 
    <xsd:import schemaLocation="http://p/Notification/NotificationService.svc?xsd=xsd4" namespace="http://htng.org/2011A"/> 
</xsd:schema> 

編輯2: 看來,這似乎是一個64位計算機上只發生,在32位工作正常。

+0

指定的重定向模塊配置的問題,真的需要看到的InnerException得到一個什麼樣的問題,實際上是一個想法。你可以編輯添加它嗎? – 2012-07-17 13:51:36

+0

您是否可以使用Internet Explorer直接瀏覽到端點?這樣做時你有任何錯誤嗎? – dreamerkumar 2012-07-17 13:53:30

+0

是的,我可以瀏覽和查看wsdl – webber 2012-07-17 13:54:37

回答

0

原來是在web.config中