carlgomerski
Programmer
Hi,
Have encountered an interesting issue. We recently upped our web garden worker process from 1 to 4 in IIS6.0 (on Win Server 2003 SP1). However we started to get an 'Object Reference not set to an instance' error when running the following piece of code:
xmlTransactionElem = xmlDoc.SelectSingleNode("//TRANSACTIONDATA")
xmlElem = xmlTransactionElem.SelectSingleNode("//SUBSELECTVALUE") 'it errors here
against the following xml:
<POSPayments>
<TRANSACTIONDATA>
<PAYMENTTYPE>1951</PAYMENTTYPE>
<PAYMENTTYPEDESCR>Bill Payment</PAYMENTTYPEDESCR>
<SUBSELECT>FINDBUTTON</SUBSELECT>
<DOMAINS>
<DOMAIN DOMAINKEY="CURRENCY">
<LISTITEM CODE="USD">United States Dollar</LISTITEM>
</DOMAIN>
</DOMAINS>
</TRANSACTIONDATA>
<RequestFormParams>
<FormParam key="cboPAYTYPE">1951</FormParam>
<FormParam key="cmdTRANSNEW">Select</FormParam>
</RequestFormParams>
</POSPayments>
As you can see the xml element doesn't exist (though under certain circumstances is does). When the worker process is set back to 1 it works ok? Any thoughts?
Have encountered an interesting issue. We recently upped our web garden worker process from 1 to 4 in IIS6.0 (on Win Server 2003 SP1). However we started to get an 'Object Reference not set to an instance' error when running the following piece of code:
xmlTransactionElem = xmlDoc.SelectSingleNode("//TRANSACTIONDATA")
xmlElem = xmlTransactionElem.SelectSingleNode("//SUBSELECTVALUE") 'it errors here
against the following xml:
<POSPayments>
<TRANSACTIONDATA>
<PAYMENTTYPE>1951</PAYMENTTYPE>
<PAYMENTTYPEDESCR>Bill Payment</PAYMENTTYPEDESCR>
<SUBSELECT>FINDBUTTON</SUBSELECT>
<DOMAINS>
<DOMAIN DOMAINKEY="CURRENCY">
<LISTITEM CODE="USD">United States Dollar</LISTITEM>
</DOMAIN>
</DOMAINS>
</TRANSACTIONDATA>
<RequestFormParams>
<FormParam key="cboPAYTYPE">1951</FormParam>
<FormParam key="cmdTRANSNEW">Select</FormParam>
</RequestFormParams>
</POSPayments>
As you can see the xml element doesn't exist (though under certain circumstances is does). When the worker process is set back to 1 it works ok? Any thoughts?