Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICAPTester exception #13

Closed
DarioLondon opened this issue Aug 3, 2018 · 4 comments
Closed

ICAPTester exception #13

DarioLondon opened this issue Aug 3, 2018 · 4 comments

Comments

@DarioLondon
Copy link

I run the ICAPTester on my server but it thrrows an exception
Unhandled Exception: ICAPNameSpace.ICAP+ICAPException: Error in getHeader() method
at ICAPNameSpace.ICAP.getHeader(String terminator) in C:\Users\Dario\Desktop\ICAP-avscan-master\C-Sharp\ICAP\ICAP.cs:line 271
at ICAPNameSpace.ICAP.getOptions() in C:\Users\Dario\Desktop\ICAP-avscan-master\C-Sharp\ICAP\ICAP.cs:line 234
at ICAPNameSpace.ICAP..ctor(String serverIP, Int32 port, String icapService, Int32 previewSize) in C:\Users\Dario\Desktop\ICAP-avscan-master\C-Sharp\ICAP\ICAP.cs:line 68
at ConsoleApplication1.Program.Main(String[] args) in C:\Users\Dario\Desktop\ICAP-avscan-master\C-Sharp\ICAPTester\Program.cs:line 17

@Baekalfen
Copy link
Owner

Did you run from a fresh copy of the code? To me, line 271 (where the exception occurred) is a comment.

@DarioLondon
Copy link
Author

@Baekalfen yes fresh copy of the code. On the server I have installed and configured Sophos Sav Dynamic Interface .

@DarioLondon
Copy link
Author

@Baekalfen close this one , Configuration errors . Do you think will be possible using memorystream instead of filestream ? I dont want to save a file on the disk i just want to scan it from memory .

@Baekalfen
Copy link
Owner

Good you solved the issue! It is definitely possible to keep the file in memory instead of on the disc. You could change the first line of scanFile to use any other stream if you would like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants