WCF 服务需要在一段时间后重新启动才能提供正确的响应......
我有一个 WCF 服务部署为 Windows 服务。 我有一个网站尝试连接到此服务并调用其方法之一。 该服务运行良好,并且也做出了正确的回复。 但是,一段时间后(主要是超时后),当我调用服务中的方法之一时,它会返回超时错误。该错误告诉我增加绑定的发送超时。然而,这不起作用。我还尝试增加端点的“DataContractSerializerOperationBehavior”中的“MaxItemsInObjectGraph”。但同样的错误仍然存在。 当我从 Windows 服务重新启动服务时,请求得到正确处理。一段时间后,场景再次重复。期待很快得到答案。提前致谢。
I have a WCF service deployed as a windows service.
I have a website that tries to connect to this service and call one of its methods.
The service works fine and also responds with proper reply.
However, after some time (mostly after timeout) when I call one of the methods in the service, it returns a timeout error. The error tells me to increase send timeout of the binding. However, that doesnt work. I have also tried increasing the 'MaxItemsInObjectGraph' in the 'DataContractSerializerOperationBehavior' for the endpoint. But still the same error persists.
When I restart the service form the windows services, the requests are handled correctly. Again, after some time the scenario repeats. Expecting an answer for this soon. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论