升级到framework 3.5 sp1后,WCF Web服务停止工作

时间:2009-05-13 04:53:41

标签: .net wcf .net-3.5

我的一个测试服务器上有一个wcf webservice。一切正常,直到我将frome框架3.5升级到3.5 sp1。 wcf web服务停止工作并返回错误:

  

“无法调用该服务   服务可能离线或   无法访问。请参阅堆栈跟踪   有关详细信息。“

     

“远程服务器返回了一个   意外响应:(502)代理错误   (指定的网络名称为no   更长的时间。 )。

     

服务器堆栈跟踪:at   System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest的   请求,HttpWebResponse响应,   HttpChannelFactory工厂,   WebException responseException)at   System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(时间跨度   超时)at   System.ServiceModel.Channels.RequestChannel.Request(消息   消息,TimeSpan超时)at   System.ServiceModel.Dispatcher.RequestChannelBinder.Request(消息   消息,TimeSpan超时)at   System.ServiceModel.Channels.ServiceChannel.Call(字符串   动作,布尔单向,   ProxyOperationRuntime操作,   Object [] ins,Object [] outs,TimeSpan   超时)at   System.ServiceModel.Channels.ServiceChannel.Call(字符串   动作,布尔单向,   ProxyOperationRuntime操作,   Object [] ins,Object [] out)at   System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage   methodCall,ProxyOperationRuntime   操作)   System.ServiceModel.Channels.ServiceChannelProxy.Invoke(即时聊天   消息)“

有谁知道这里发生了什么?

2 个答案:

答案 0 :(得分:0)

看来,你的Windows功能被重置了,我曾经遇到过这个问题。只需转到控制面板 - 程序 - 打开Windows功能并检查Microsoft .NET framework 3.0中所需的所有复选框 祝你好运。

答案 1 :(得分:0)

如果diadiora建议,问题是WCF功能被禁用,您可以使用ServiceModelReg.exe启用它。 ServiceModelReg.exe /i应注册WCF并更新IIS中的脚本映射。 (在MSDN page阅读更多内容。)如果失败(安装SP1时可能失败),那么应该更准确地告诉你问题是什么。

您也可以检查IIS,以确保您的服务(如果由IIS托管)仍在运行。