Hi Anders,
I'm using Orthanc server (v17.6.1) on Win10 and C# application with fo-docom (v3.0.0).
I figured out how to use C-Find and C-Move (problem was in not working local AET), but now I have a problem with C-GET:
I tried to use C-GET example from fo-dicom-samples repository with my Orthanc server:
var cGetRequest = CreateCGetBySeriesUID(studyUID, serieUids.First());
client.OnCStoreRequest += (DicomCStoreRequest req) =>
{
SaveImage(req.Dataset);
return new DicomCStoreResponse(req, DicomStatus.Success);
};
client.AdditionalPresentationContexts.Add(DicomPresentationContext.GetScpRolePresentationContext(
DicomUID.DigitalXRayImageStorageForPresentation, DicomTransferSyntax.ImplicitVRBigEndian,
DicomTransferSyntax.ExplicitVRBigEndian, DicomTransferSyntax.ExplicitVRLittleEndian));
client.AddRequest(cGetRequest);
client.Send(QRServerHost, QRServerPort, false, AET, QRServerAET);
but "client.OnCStoreRequest" event even not fired. then I added handler for "request.OnResponseReceived" and got an error in the response:
{Failure [0122: Refused: SOP class not supported]}
Code: 290
State: Failure
Log of Orthanc doesn't have any new messages after request.
I checked that added SopClassUID for AdditionalPresentationContext is correct, but strange, that instances in the Orthanc don't have TransferSyntax tag, can it be a reason of the problem?