MSXML 6 Error - connection terminated abnormally

hawkeyehawkeye Member Posts: 51
Hi All.

I have trouble with a XML call using below code in NAV 2009 R2 (classic)

It worked every day for several years, but suddenly this morning it gives me an error - see below.

I´ve searced the forum and I´m not the first person in the history having this isue, but I did not find anyone posting a soloution.


Code:

IF ISCLEAR(XmlHttp) THEN
CREATE(XmlHttp,TRUE,TRUE);
XmlHttp.open('GET',URL,FALSE);
XmlHttp.send;

(XmlHttp = automation 'Microsoft XML, v6.0'.ServerXMLHTTP60')


"This message is for C/AL programmers:

The call to member send failed. msxml6.dll returned the following message:
The connection with the server was terminated abnormally"


Br

Hawkeye

Answers

  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    Why do you assume that the code stopped working when the error message clearly points to some connectivity problem?
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • hawkeyehawkeye Member Posts: 51
    @ Slawek_Guzek
    Where do I write it´s the code that stopped working?

    My guess is some kind of security thing is wong. Maybe a firwall og something like that blocked something.

    If I take the URL and put it in a broweser, it works, so my guess is that it is not the recieverpart causing the problem.
  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    Fair point, you didn't.

    Does the traffic from your browser goes out directly or through some proxy?
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • hawkeyehawkeye Member Posts: 51
    that´s a good question. hmmm I don´t think it goes through some proxy
  • hawkeyehawkeye Member Posts: 51
    The hosting partner has done something with the firewall, it works now
  • hawkeyehawkeye Member Posts: 51
    Or.... I thought so.

    Still back to the same problem :-(
Sign In or Register to comment.