Click here to Skip to main content
15,917,709 members
Home / Discussions / C#
   

C#

 
AnswerRe: Failed to compare Time portion of DateTime when read ACCESS database Pin
Rob Philpott29-Nov-05 8:41
Rob Philpott29-Nov-05 8:41 
GeneralRe: Failed to compare Time portion of DateTime when read ACCESS database Pin
Roman Muntyanu29-Nov-05 9:19
Roman Muntyanu29-Nov-05 9:19 
GeneralRe: Failed to compare Time portion of DateTime when read ACCESS database Pin
Rob Philpott29-Nov-05 11:27
Rob Philpott29-Nov-05 11:27 
GeneralRe: Failed to compare Time portion of DateTime when read ACCESS database Pin
Roman Muntyanu30-Nov-05 5:48
Roman Muntyanu30-Nov-05 5:48 
Questioneasy textbox question? Pin
melanieab29-Nov-05 7:36
melanieab29-Nov-05 7:36 
AnswerRe: easy textbox question? Pin
Rob Philpott29-Nov-05 8:02
Rob Philpott29-Nov-05 8:02 
GeneralRe: easy textbox question? Pin
melanieab29-Nov-05 8:15
melanieab29-Nov-05 8:15 
QuestionWeb Service XML to DataGrid - 'System.NullReferenceException' error Pin
tabulation29-Nov-05 7:16
tabulation29-Nov-05 7:16 
When i call the AsinSearch Amazon web service, i get the following error

"An unhandled exception of type 'System.NullReferenceException' occurred in SellerSearch.exe
Additional information: Object reference not set to an instance of an object."

I've narrowed it down to the following piece of code:

ProdInfo = Doc.ChildNodes[1]
["ProductInfo"]
["ThirdPartyProductInfo"];


dsInventory.Tables["tblSellerData"].Rows.Clear();
for (Counter = 0; Counter < ProdInfo.ChildNodes.Count; Counter ++)
{
Details = ProdInfo.ChildNodes[Counter];

DR = dsInventory.Tables["tblSellerData"].NewRow();

DR["Asin"] = Details["BrowseName"].InnerText;
//DR["Asin"] = Details["Asin"].InnerText;
//DR["Price"] = Details["ExchangePrice"].InnerText;
//DR["ListingID"] = Details["ExchangeId"];

//DR["ProductName"] = Details["
dsInventory.Tables["tblSellerData"].Rows.Add(DR);
}
}

ProdInfo is an xmlNode.

The XML is coming through just fine. You can see it by putting the following uri in a browser:

http://xml.amazon.com/onca/xml2?t=webservices-20&dev-t=099CQN95JW6909V9T8R2&AsinSearch=B00005JKDR&type=heavy&offer=Used&offerpage=1&f=xml

I'm stuck and can't figure out what the problem is.

any ideas?



Thomas Barker
AnswerRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
Rob Philpott29-Nov-05 8:51
Rob Philpott29-Nov-05 8:51 
GeneralRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
tabulation29-Nov-05 10:15
tabulation29-Nov-05 10:15 
GeneralRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
Rob Philpott29-Nov-05 11:32
Rob Philpott29-Nov-05 11:32 
GeneralRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
tabulation29-Nov-05 11:46
tabulation29-Nov-05 11:46 
GeneralRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
Rob Philpott29-Nov-05 22:56
Rob Philpott29-Nov-05 22:56 
QuestionDatabase Directory Error Pin
TheMajorRager29-Nov-05 7:00
TheMajorRager29-Nov-05 7:00 
AnswerRe: Database Directory Error Pin
KaptinKrunch29-Nov-05 7:25
KaptinKrunch29-Nov-05 7:25 
GeneralRe: Database Directory Error Pin
TheMajorRager29-Nov-05 10:01
TheMajorRager29-Nov-05 10:01 
QuestionSockets - Intensive I/O Issues Pin
mcljava29-Nov-05 5:09
mcljava29-Nov-05 5:09 
AnswerRe: Sockets - Intensive I/O Issues Pin
leppie29-Nov-05 7:25
leppie29-Nov-05 7:25 
GeneralRe: Sockets - Intensive I/O Issues Pin
mcljava29-Nov-05 8:04
mcljava29-Nov-05 8:04 
QuestionThread Management Pin
thepolishguy29-Nov-05 5:07
thepolishguy29-Nov-05 5:07 
AnswerRe: Thread Management Pin
mcljava29-Nov-05 7:02
mcljava29-Nov-05 7:02 
QuestionServer - Multi Client Chat Problem Pin
DarkAngel78629-Nov-05 4:47
DarkAngel78629-Nov-05 4:47 
AnswerRe: Server - Multi Client Chat Problem Pin
mcljava29-Nov-05 10:15
mcljava29-Nov-05 10:15 
GeneralRe: Server - Multi Client Chat Problem Pin
DarkAngel78629-Nov-05 22:41
DarkAngel78629-Nov-05 22:41 
QuestionHow to achieve automatic sorting in a TreeView? Pin
Morrgan29-Nov-05 4:45
Morrgan29-Nov-05 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.