I'm facing an issue that drive me crazy, I hope I can find the answer among all you experts.
We are running NAV2009R2 with a Navision Application server that run as a windows service.
When we do import documents via NAS, sometimes, the import just freeze in the job queue with status "In progress", to solve that, we do restart the NAS windows service and then the import continues. When I restart the service, I get "Error 109, The Pipe has been ended".
Added some log lines in the code to see where it stopps. I can see it always stopps at "rRequest.Data.CREATEOUTSTREAM(RequestOutStream)"
Along with the import, we do a SOAP request in a separate codeunit where the code execution freezes.
Dlg.Update(4, 'Create SOAP request...');
btSoapEnvelope.ADDTEXT('<?xml version="1.0" encoding="utf-8"?>');
xmlhttp.setRequestHeader('Content-Type', 'text/xml; charset=utf-8');
xmlhttp.setRequestHeader('SoapAction', rType."Soap Action");
Dlg.Update(4, 'Wait for an answer...');
xmldomResponse4 := xmlhttp.responseXML;
The strange thing is there are two companies in the same database. And the problem occurs only in one of them.
The problem occurs usually along with heavy import. There is no problem with few documents but when NAS import too many documents, the probability is much higher that the problem will occur.
What I tried:
* Uninstall NAS service and reinsall it.
* Create a new service user and changed the user running the NAS service.
* Checked any deadlocks in the database. Using extended events and SQL profiler.
* Followed the SOAP request using Wireshark and Fiddler.
* Used Process monitor to see if there are any thread block.
* Checked Event Viewer.
None of the above showed any hint where is the problem.
Googled a lot and the most similar case is here: https://forum.mibuso.com/discussion/49235/nas-getting-stuck-when-ran-as-service
The common thing is that the user has proxy settings in internet options.
Any idea, hint?