Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / October 2003

Tip: Looking for answers? Try searching our database.

XMLDocument from empty DataSet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TomislaW - 28 Oct 2003 09:11 GMT
I have WebService that returns
XmlDocument. I made that XmlDocument from DataSet, but when DataSet is empty
I get error:

System.InvalidOperationException: There was an error generating the XML
document. ---> System.NullReferenceException: Object reference not set to an
instance of an object...so how I can avoid this error?
Sergey Dubinets - 31 Oct 2003 20:21 GMT
Thanks for reporting the problem.
It'll be nice if you provide a small repro for this bug.
DataSet class doesn't have direct method that creates XmlDocument from it
and error can depend on how you doing this.
Signature

Sergey
-------
This posting is provided "AS IS" with no warranties, and confers no rights.

> I have WebService that returns
> XmlDocument. I made that XmlDocument from DataSet, but when DataSet is empty
[quoted text clipped - 3 lines]
> document. ---> System.NullReferenceException: Object reference not set to an
> instance of an object...so how I can avoid this error?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.