超时异常(WCF)在运行Python脚本时
我正在运行一个Python脚本,该脚本控制着一个名为ACE的ADI软件,该软件通过端口8080远程捕获数据。ACE将尝试在端口号上创建IPC服务器。捕获1个数据集大约需要12分钟。该脚本正常运行,以捕获10分钟以下的捕获。我怀疑发生例外是因为默认接收到10分钟。
我在smsvchost.exe.config文件中调整了ackivetimeout,但仍无法解决问题。其他线程建议我需要在app.config/ web.config中调整ackivetimeout。我不确定如何找到这些文件。我担心我可能会更改错误的配置文件。请指教!
跟踪信息: [1]: https://i.sstatic.net/akeha.png
错误信息
此请求操作发送到Net.tcp:// localhost:8080/未在配置的超时(00:10:00)中收到答复。分配给此操作的时间可能是较长超时的一部分。这可能是因为服务仍在处理操作,或者服务无法发送答复消息。请考虑增加操作超时(通过将频道/代理投放到ICOntextChannel并设置OperationTimeOut属性)并确保服务能够连接到客户端。
I am running a python script that controls an ADI software named ACE capturing data remotely through port 8080. The ACE will attempt to create an IPC server on the port number. It takes around 12 minutes to capture 1 data set. The script runs normally for capture under 10 minutes. I suspects that the exception occurs because the default ReceiveTimeout is 10 minutes.
I adjusts the ReceiveTimeout in the SMSvcHost.exe.config file but it still not fix the issue. Other threads suggest that I need to adjust the ReceiveTimeout in app.config/ web.config. I am not sure how to locate these file. I am worried I might make changes to the wrong config file. Please advise!
Tracing Information:
[1]: https://i.sstatic.net/AKeHA.png
Here is the error message
This request operation sent to net.tcp://localhost:8080/ did not receive a reply within the configured timeout (00:10:00). The time allotted to this operation may have been a portion of a longer timeout. This may be because the service is still processing the operation or because the service was unable to send a reply message. Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论