cannot get scan engine C# sample code to work
I am using the c# sample code from the scan engine 5.2 trial sdk. When I try to run it I get one of two errors.
Error 1: An exception occurred while scanning the file - Inner Exception - Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.
This error happens most of the time and occurs on the line that says ScanResult scanResult = testObj.Scan(fileForScan); I have completely uninstalled all antivirus software on my machine and disabled windows firewall so there's nothing that should be shutting this connection down that I can think of.
Error 2: An exception occurred while scanning the file - Inner Exception - Object not set to an instance of an object.
This error is occurring on the same line but is happening somewhere in the Scan call. The fileForScan variable being sent in is not null.
We have the trial of 5.2 running on one server which is the one I'm testing against. We also have the paid version of 5.1 on another server. When I plug in that ip address I only get Error 2. Is the code for 5.2 backwards compatible with 5.1? If so, how do I get it to work? It looks like there's some exception being thrown in the symcsmsnetapi.dll Thanks.