使用 Clear Canvas 库上传 Dicom 文件时出错

发布于 2025-01-02 05:01:35 字数 1385 浏览 1 评论 0原文

我正在尝试使用 ClearCanvas dll 将 Dicom 文件发布到远程 PACS。我可以使用 ClearCanvas 库打开 DICOM 文件、更新文件中的标签并保存文件。当我尝试将文件 (ClearCanvas.ImageViewer.Services.DicomFilePublisher.PublishRemote) 发布到远程 PACS 时,出现以下错误:

我已将 IP 替换为 xx。以及 AE_Name 的 AE 信息

2012-02-02 18:11:38,141 [Send to xx.xx.xx.xxx/AE_NAME:7400] INFO  - Preparing to connect to AE AE_NAME on host xx.xx.xx.xxx on port 7400 and sending 105 images.
2012-02-02 18:11:42,344 [11] INFO  - Large object collection summary: freed 0 MB in 0 seconds and 0 iterations, Total Containers: 0, Total Large Objects: 0
2012-02-02 18:11:48,141 [Send to xx.xx.xx.xxx/AE_NAME:7400] ERROR - Exception thrown

Exception attempting connection to RemoteHost AE_NAME (xx.xx.xx.xxx:7400)
ClearCanvas.Dicom.Network.DicomNetworkException: Timeout while attempting to connect to remote server xx.xx.xx.xxx:7400
at ClearCanvas.Dicom.Network.DicomClient.Connect(IPEndPoint ep)
at ClearCanvas.Dicom.Network.DicomClient.Connect()
at ClearCanvas.Dicom.Network.Scu.ScuBase.Connect()
2012-02-02 18:11:48,141 [Send to xx.xx.xx.x/AE_Name:7400] ERROR - Error encountered while sending file C:\Users\admin\AppData\Local\Temp\2\ClearCanvas\Publishing\AE_Name.longfilename.dcm (AE_Name: The association was aborted.).

我在计算机上安装了 ClearCanvas 工作站,我可以从工作站应用程序内上传和下载文件。是否有办法确定这是超时问题还是其他更具体的连接问题?如果是超时,有没有办法加大超时设置?

感谢您的帮助/建议。如果有任何不清楚的地方请告诉我。

i am attempting to publish Dicom file to a remote PACS using the ClearCanvas dlls. I can use the ClearCanvas libraries to open the DICOM files, update tags in the file and save the file. When I try and publish the files (ClearCanvas.ImageViewer.Services.DicomFilePublisher.PublishRemote) to the remote PACS I get the following error:

I've replaced the IP with xx. and the AE information with AE_Name

2012-02-02 18:11:38,141 [Send to xx.xx.xx.xxx/AE_NAME:7400] INFO  - Preparing to connect to AE AE_NAME on host xx.xx.xx.xxx on port 7400 and sending 105 images.
2012-02-02 18:11:42,344 [11] INFO  - Large object collection summary: freed 0 MB in 0 seconds and 0 iterations, Total Containers: 0, Total Large Objects: 0
2012-02-02 18:11:48,141 [Send to xx.xx.xx.xxx/AE_NAME:7400] ERROR - Exception thrown

Exception attempting connection to RemoteHost AE_NAME (xx.xx.xx.xxx:7400)
ClearCanvas.Dicom.Network.DicomNetworkException: Timeout while attempting to connect to remote server xx.xx.xx.xxx:7400
at ClearCanvas.Dicom.Network.DicomClient.Connect(IPEndPoint ep)
at ClearCanvas.Dicom.Network.DicomClient.Connect()
at ClearCanvas.Dicom.Network.Scu.ScuBase.Connect()
2012-02-02 18:11:48,141 [Send to xx.xx.xx.x/AE_Name:7400] ERROR - Error encountered while sending file C:\Users\admin\AppData\Local\Temp\2\ClearCanvas\Publishing\AE_Name.longfilename.dcm (AE_Name: The association was aborted.).

I have the ClearCanvas workstation installed on the computer and I can upload and download files from within the workstation application. Is there anyway to determine if this a timeout issue, or another more specific connection issue? If it is a timeout, is there a way to increase the timeout setting?

Thanks for help/suggestions. If anything isn't clear please let me know.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

高冷爸爸 2025-01-09 05:01:35

我怀疑这是一个错误错误,失败的原因是运行工作站服务的用户帐户无权访问文件写入的临时文件夹。尝试向“所有人”授予该文件夹的完全访问权限,看看问题是否消失。

另一种独立于您自己的代码进行测试的方法是:

  1. 在工作站中,将服务器定义为“默认”服务器(工具/选项/默认服务器)
  2. 从“我的研究”中打开本地研究
  3. 创建关键图像
  4. 关闭研究

执行您在日志中收到相同的消息吗?当您创建关键图像时,DicomFilePublisher 用于将新创建的关键图像发送到其他服务器。

另外,我怀疑它会提供很多洞察力,但您可以通过将“INFO”更改为“DEBUG”来在logging.config文件中启用调试日志记录。您将在与 DICOM 通信相关的日志中获得更多信息。

I have a suspicion that this is a false error, and the reason it is failing is that the user account under which the Workstation service is running doesn't have access to the temp folder the files are being written to. Try giving full access on that folder to "Everyone" and see if the problem goes away.

Another way to test it independently of your own code is:

  1. In the Workstation, define the server as a "default" server (Tools/Options/Default Servers)
  2. Open a local study from "My Studies"
  3. Create a key image
  4. Close the study

Do you get the same message in the logs? When you create a key image, the DicomFilePublisher is used to send the newly created key images to other servers.

Also, I doubt it will provide much insight, but you can enable debug logging in the logging.config file by changing "INFO" to "DEBUG". You'll get more info in the logs related to the DICOM communication.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文