Endpoint Protection

 View Only
  • 1.  cannot get scan engine C# sample code to work

    Posted Oct 12, 2010 04:58 PM

    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.



  • 2.  RE: cannot get scan engine C# sample code to work

    Posted Jul 04, 2011 08:20 AM

    Hi you can get symnatec scan engine from http://www.symantec.com/business/scan-engine
    But using that i am having a problem, while uploading i m gtting an error as  ERR_INITIALIZING_STREAM_REQUEST
    Inner exception is : Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.
    I think this is the same error you have posted.

    Did you get any solution for this one?