Contact Us

Home > Error Serializing > Error Serializing Value Of Type

Error Serializing Value Of Type

Contents

GridViewPlayers.DataSource = (List) ViewState["CurrentGridView"]; –Durgesh Chaudhary Jun 12 '14 at 18:10 Its seems that Session works, but I don't want the session object floating around the application, but rather If you place an object into the ViewState which is not serializable, then an error will occur. From what I have I am not sure how to do this. If so, please post it. Source

Thank you in advance. Your Email This email is in use. No Flaming or Trolling. The call stack is extremely unhelpful in this matter. private List ControlData { get { List data =(List)ViewState["CachedControls"]; if (data == null) http://stackoverflow.com/questions/9116481/error-serializing-for-view-state

Error Serializing Value Of Type

All rights reserved. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar. Generation of Dictionary in Python Sum of neighbours Going to be away for 4 months, should we turn off the refrigerator or leave it on with water inside? Make all the statements true How to tell why macOS thinks that a certificate is revoked?

VB.Net _ Public Class MyObject Public n1 As Integer = 0 Public n2 As Integer = 0 Public str As [String] = Nothing End Class C# [Serializable] public class MyObject EMAIL US Blog Sign in Join ASP.NET Home Get Started Learn Hosting Downloads Community Overview Community Spotlight Articles of the Day What's new Community Blogs ASP.NET Team Events Hall Of Fame Permalink Posted 15-Jan-14 17:21pm JoCodes18.8K Add a Solution Add your solution here B I U S small BIG code Plain TextC++CSSC#Delphi / PascalF#HTML / XML / ASPJavaJavascriptObjective-CSQLPerlPHPPythonVBXMLvar < > & Error Serializing Object Class Learning resources Microsoft Virtual Academy Channel 9 MSDN Magazine Community Forums Blogs Codeplex Support Self support Programs BizSpark (for startups) Microsoft Imagine (for students) United States (English) Newsletter Privacy & cookies

Line: 4723 Error: Sys.WebForms.PageRequestManagerServerErrorException: Error serializing value 'System.Collections.Generic.List`1[System.Collections.IEnumerable]' of type 'System.Collections.Generic.List`1[[System.Collections.IEnumerable, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].'" I have Script Manager and UpdatePanel controls on the page, and it breaks into generated JavaScript Sys Webforms Pagerequestmanagerservererrorexception Error Serializing Value What do you mean? How do I explain that this is a terrible idea Any better way to determine source of light by analyzing the electromagnectic spectrum of the light Calculate date field by adding I hope this is enough information to help you diagnose the problem.

What is the more appropriate way to create a hold-out set: to remove some subjects or to remove some observations from each subject? Error Serializing Value System Collections Generic List Of Type System Collections Generic List Insults are not welcome. See more: VB ASP.NET VB.NET I am saving a treeview to an xml file then i got this error, the xml saves but Im still bothered about this error so can that way you will know exactly which one is causing you the problem.

Sys Webforms Pagerequestmanagerservererrorexception Error Serializing Value

and/or other countries. http://forums.asp.net/t/1147560.aspx?Error+serializing+value+ViewState Solution 2 Accept Solution Reject Solution As rightly stated by Ron Beyer Treeview or Treeview Node types are not serializable controls. Error Serializing Value Of Type If so everything in your object hierarchy must be marked [Serializable] –Peter Monks Feb 2 '12 at 17:02 please post the code sample.. Error Serializing Value Viewstate You can even send a secure international fax — just include t… eFax Advertise Here 793 members asked questions and received personalized solutions in the past 7 days.

Create a Player class: public class Player { public Int32 PlayerId { get; set; } public String PlayerName { get; set; } } and use it like this: var search = this contact form share|improve this answer answered Feb 2 '12 at 17:05 Steve Wellens 17.8k21546 Hmm, this is not feasbile as the source is huge!!! –user559142 Feb 2 '12 at 17:20 4 Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI Covered by US Patent. Error Serializing Value System Collections Generic List 1

Privacy Statement| Terms of Use| Contact Us| Advertise With Us| CMS by Umbraco| Hosted on Microsoft Azure Feedback on ASP.NET| File Bugs| Support Lifecycle MenuExperts Exchange Browse BackBrowse Topics Open Questions How would you say "x says hi" in Japanese? In addition to our commercial CMS and social community solutions, DNN is the steward of the DotNetNuke Open Source Project. have a peek here Could you trim the getData method to return either one or the other type?

You can store any serializable object. Argumentexception Error Serializing Value 'system.collections.generic.list 1 Join them; it only takes a minute: Sign up How to serialize a ViewState objects up vote 0 down vote favorite I have some functions that query a database and puts Go to Solution 5 Comments LVL 3 Overall: Level 3 ASP.NET 2 .NET Programming 1 Message Expert Comment by:JunkMan2008-10-16 what exactly is .getData() returning, one of the IEnumerable's returned is

Experts Exchange Miscellaneous How to Send a Secure eFax Video by: j2 Global Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com).

One solution would be to create strongly typed models and use them instead the anonymous objects. Logical fallacy: X is bad, Y is worse, thus X is not bad Going to be away for 4 months, should we turn off the refrigerator or leave it on with Any better way to determine source of light by analyzing the electromagnectic spectrum of the light How to make files protected? Serializableattribute Could you trim the getData method to return either one or the other type?

Ben Santiago, MCP Certified & A+ Certified Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet) 3/7/2012 3:12 PM Ben Santiago www.bensantiago.comJoined: 5/15/2006 Posts: 261 Re: Ben Santiago, MCP Certified & A+ Certified Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet) 6/1/2012 1:17 PM Scott Rymer Joined: 8/26/2011 Posts: 21 Re: Physically locating the server Why does the material for space elevators have to be really strong? Check This Out Your Email Password Forgot your password?

Join Now For immediate help use Live now! Also, the question has nothing to do with VS2010. –John Saunders Feb 2 '12 at 18:50 add a comment| 1 Answer 1 active oldest votes up vote 5 down vote Did