Hi,
I implemented the StorageScu enhancements for catching exception when file not found or corrupted. It is described in this post:
http://clearcanvas.easycgi.com/dnn/Community/Forums/tabid/69/forumid/10/postid/764/view/topic/Default.aspx
- Added an ExtendedFailureDescription to the storageinstance class.
- However, I noticed another problem - when all image files do not exist. Then no presentation context is set and that has causes other errors when trying to connect. So, in the StorageScu.Send() method, after calling StorageScu.LoadStorageInstanceInfo() (which would set the ProcessFailure status if it can't load the file because corrupted or not existing). When this happens (all files do not exist or corrupted), I set the _failureSubOperations to the # of (invalid) images, and the remaining subops to 0.
- I also made a small change to ScuBase - the exception message was incorrect (should be RemotePort instead of RemoteHost)
- Also, under Dicom/DicomUid.cs , I changed the DicomUids from internal to public, as I needed this public to get the Uids from my assembly.
Thanks, Dan
|