DOTNET-Components on AZURE

JanDeBeusscher
Member Posts: 3
Hello,
In the same session I'am declaring to times the same DOTNET-component, as a local variable.
But it seems that on Azure the second time, it is referring to the same object in memory.
If I run first #1 and then #2, I get this message
Een aanroep voor System.Xml.XmlElement.get_Count is mislukt met dit bericht:
Het type van een of meer argumenten komt niet overeen met het parametertype van de methode.
A call for System.Xml.XmlElement.get_Count failed with this message:
The type of one or more arguments does not match the parameter type of the method.
#1
#ReqXml := ReqXml.XmlDocument; System.Xml.XmlNodeList.'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
ReqXml.LoadXml(pxmlRequest);
TopNode := ReqXml.SelectSingleNode(RequestNodeList[1]);
Attribute := TopNode.OwnerDocument.CreateAttribute('Access');
#2
lXmlDoc := lXmlDoc.XmlDocument(); System.Xml.XmlNodeList.'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
lXmlHttp := lXmlHttpReqClass.XMLHTTPRequestClass();
lXmlHttp.open('POST', URL, FALSE, '','');
lXmlHttp.setRequestHeader('Content-type', 'text/xml; charset=utf-8');
lXmlHttp.setRequestHeader('SOAPAction','urn:ec.europa.eu:taxud:vies:services:checkVat:types');
lXmlHttp.send(RequestXML(pCountryCode,CleanVATNo("pVAT No.", pCountryCode)));
IF NOT (lXmlHttp.status = 200) THEN
MESSAGE(FORMAT(COPYSTR(lXmlHttp.statusText,1,250)));
ResponseString := lXmlHttp.responseText();
lXmlDoc.LoadXml(ResponseString);
lXmlNodeList := lXmlDoc.SelectNodes('//*');
lXMLNodeListCount := lXmlNodeList.Count;
Een aanroep voor System.Xml.XmlElement.get_Count is mislukt met dit bericht:
Het type van een of meer argumenten komt niet overeen met het parametertype van de methode.
Kind regards,
Jan
In the same session I'am declaring to times the same DOTNET-component, as a local variable.
But it seems that on Azure the second time, it is referring to the same object in memory.
If I run first #1 and then #2, I get this message
Een aanroep voor System.Xml.XmlElement.get_Count is mislukt met dit bericht:
Het type van een of meer argumenten komt niet overeen met het parametertype van de methode.
A call for System.Xml.XmlElement.get_Count failed with this message:
The type of one or more arguments does not match the parameter type of the method.
#1
#ReqXml := ReqXml.XmlDocument; System.Xml.XmlNodeList.'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
ReqXml.LoadXml(pxmlRequest);
TopNode := ReqXml.SelectSingleNode(RequestNodeList[1]);
Attribute := TopNode.OwnerDocument.CreateAttribute('Access');
#2
lXmlDoc := lXmlDoc.XmlDocument(); System.Xml.XmlNodeList.'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
lXmlHttp := lXmlHttpReqClass.XMLHTTPRequestClass();
lXmlHttp.open('POST', URL, FALSE, '','');
lXmlHttp.setRequestHeader('Content-type', 'text/xml; charset=utf-8');
lXmlHttp.setRequestHeader('SOAPAction','urn:ec.europa.eu:taxud:vies:services:checkVat:types');
lXmlHttp.send(RequestXML(pCountryCode,CleanVATNo("pVAT No.", pCountryCode)));
IF NOT (lXmlHttp.status = 200) THEN
MESSAGE(FORMAT(COPYSTR(lXmlHttp.statusText,1,250)));
ResponseString := lXmlHttp.responseText();
lXmlDoc.LoadXml(ResponseString);
lXmlNodeList := lXmlDoc.SelectNodes('//*');
lXMLNodeListCount := lXmlNodeList.Count;
Een aanroep voor System.Xml.XmlElement.get_Count is mislukt met dit bericht:
Het type van een of meer argumenten komt niet overeen met het parametertype van de methode.
Kind regards,
Jan
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions