1
votes

I am using ClearCanvas sdk to c-echo verifiy a remote dicom entity but the result I am always getting is 'Failed'. It seems that it is not even associating with the remote entity. below is my code to do this in vb.net. Am I doing it right?

Dim hostname As String = "RemoteHost"       
Dim ae As String = "RemoteAETitle"       
Dim port As Integer = "RemotePort"      
Dim lhost As String = "LocalAETitle" 

Dim checkremote = New VerificationScu()

Dim result As VerificationResult = checkremote.Verify(lhost, ae, hostname, port)

    If result = VerificationResult.Success Then
        MessageBox.Show(result.ToString)
    Else
        MessageBox.Show(result.ToString)

    End If
    checkremote.Join(New TimeSpan(0, 0, 4))
1

1 Answers

0
votes

You are using the API correctly, this should verify the connection. Have you taken a look at any log messages generated? This would help identify the problem.