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 / New Users / February 2007

Tip: Looking for answers? Try searching our database.

Serialization Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mianiro - 12 Feb 2007 15:40 GMT
Has anyone had a serialization error occur when adding a variable to a
viewstate?  The error states 'Error serializing value
'System.Data.SqlClient.SqlDataReader' .  It does not mention
explicitly that it is from the viewstate, however, when I remove the
code for adding the data reader to the viewstate, I don't get the
error. I'm not having any luck trying to troubleshoot this online.
Kevin Spencer - 12 Feb 2007 20:31 GMT
A DataReader is not serializable as XML. If you want to store a result set
in ViewState, use a DataTable or DataSet.

Signature

HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

The shortest distance between 2 points is a curve.

> Has anyone had a serialization error occur when adding a variable to a
> viewstate?  The error states 'Error serializing value
> 'System.Data.SqlClient.SqlDataReader' .  It does not mention
> explicitly that it is from the viewstate, however, when I remove the
> code for adding the data reader to the viewstate, I don't get the
> error. I'm not having any luck trying to troubleshoot this online.
mianiro - 27 Feb 2007 18:27 GMT
> A DataReader is not serializable as XML. If you want to store a result set
> in ViewState, use a DataTable or DataSet.
[quoted text clipped - 16 lines]
>
> - Show quoted text -

Thank you! That worked

Rate this thread:







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.