iSCSI Connection Error

Jul 1, 2013 at 6:57 PM
I'm trying to use DiscUtils to connect to an iSCSI target. I can successfully connect to the target with the Win7 built-in client and the WinXP Microsoft iSCSI Software Initiator v2.08. I am using the latest version downloaded and compiled from source (commit e2d546a4de37).

The code I am using is:

Initiator i = new Initiator();
i.SetCredentials(username, pass);
TargetInfo[] t = i.GetTargets(ipaddress);

The error is:
From SeenStatusSequenceNumber in Connection.cs
throw new InvalidProtocolException("Unexpected status sequence number " + number + ", expected " + _expectedStatusSequenceNumber);

InvalidProtocolException : Unexpected status sequence number 1, expected 4

Any ideas on how to further troubleshoot?

Thanks in advance.