Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web Garden Issue

Status
Not open for further replies.

carlgomerski

Programmer
Jan 20, 2001
17
0
0
AU
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top