This is a migrated thread and some comments may be shown as answers.

[Solved] CheckBoxList and TemplateColumn

3 Answers 174 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kamil
Top achievements
Rank 1
Kamil asked on 13 May 2008, 09:12 AM
Hi!
I have very strange problem. I put to templatecolumn to edittemplate CheckBoxList connected with ObjectDataSource. When i first click "edit" its ok, but when i clicked second time i have exception:
Server Error in '/' Application. 
-------------------------------------------------------------------------------- 
 
The state information is invalid for this page and might be corrupted.  
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.  
 
Exception Details: System.Web.HttpException: The state information is invalid for this page and might be corrupted. 
 
Source Error:  
 
 
[No relevant source lines] 
  
 
Source File: d:\Users\Beny\AppData\Local\Temp\Temporary ASP.NET Files\root\29af3f81\4acffc0f\App_Web_3wl8note.6.cs    Line: 0  
 
Assembly Load Trace: The following information can be helpful to determine why the assembly 'DynamicAssemblyProxyGen, Version=0.0.0.0, Culture=neutralPublicKeyToken=null' could not be loaded. 
 
 
=== Pre-bind state information === 
LOG: User = Stratus\Beny 
LOG: DisplayName = DynamicAssemblyProxyGenVersion=0.0.0.0, Culture=neutralPublicKeyToken=null 
 (Fully-specified) 
LOG: Appbase = file:///D:/Projects/Gossip/ITDT.Gossip.Portal/ 
LOG: Initial PrivatePath = D:\Projects\Gossip\ITDT.Gossip.Portal\bin 
Calling assembly : (Unknown). 
=== 
LOG: This bind starts in default load context. 
LOG: Using application configuration file: D:\Projects\Gossip\ITDT.Gossip.Portal\web.config 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config. 
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). 
LOG: Attempting download of new URL file:///D:/Users/Beny/AppData/Local/Temp/Temporary ASP.NET Files/root/29af3f81/4acffc0f/DynamicAssemblyProxyGen.DLL. 
LOG: Attempting download of new URL file:///D:/Users/Beny/AppData/Local/Temp/Temporary ASP.NET Files/root/29af3f81/4acffc0f/DynamicAssemblyProxyGen/DynamicAssemblyProxyGen.DLL. 
LOG: Attempting download of new URL file:///D:/Projects/Gossip/ITDT.Gossip.Portal/bin/DynamicAssemblyProxyGen.DLL. 
LOG: Attempting download of new URL file:///D:/Projects/Gossip/ITDT.Gossip.Portal/bin/DynamicAssemblyProxyGen/DynamicAssemblyProxyGen.DLL. 
LOG: Attempting download of new URL file:///D:/Users/Beny/AppData/Local/Temp/Temporary ASP.NET Files/root/29af3f81/4acffc0f/DynamicAssemblyProxyGen.EXE. 
LOG: Attempting download of new URL file:///D:/Users/Beny/AppData/Local/Temp/Temporary ASP.NET Files/root/29af3f81/4acffc0f/DynamicAssemblyProxyGen/DynamicAssemblyProxyGen.EXE. 
LOG: Attempting download of new URL file:///D:/Projects/Gossip/ITDT.Gossip.Portal/bin/DynamicAssemblyProxyGen.EXE. 
LOG: Attempting download of new URL file:///D:/Projects/Gossip/ITDT.Gossip.Portal/bin/DynamicAssemblyProxyGen/DynamicAssemblyProxyGen.EXE. 
 
  
 
Stack Trace:  
 
 
[FileNotFoundException: Could not load file or assembly 'DynamicAssemblyProxyGen, Version=0.0.0.0, Culture=neutralPublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.] 
   System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0 
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +78 
   System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58 
   System.Type.GetType(String typeName, Boolean throwOnError) +57 
   System.Web.UI.ObjectStateFormatter.DeserializeType(SerializerBinaryReader reader) +175 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +732 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +363 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +363 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +363 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +1283 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +198 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +363 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +210 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +363 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +210 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +363 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +210 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +363 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +210 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +363 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +210 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +363 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +210 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +363 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +210 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +363 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +210 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +210 
   System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +198 
   System.Web.UI.ObjectStateFormatter.Deserialize(Stream inputStream) +142 
 
[ArgumentException: The serialized data is invalid.] 
   System.Web.UI.ObjectStateFormatter.Deserialize(Stream inputStream) +206 
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +342 
   System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4 
   System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37 
   System.Web.UI.HiddenFieldPageStatePersister.Load() +136 
 
[ViewStateException: Invalid viewstate.  
    Client IP: 127.0.0.1 
    Port:  
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 3.5.21022) 
    ViewState: /wEPDwUKLTc4MDA3ODk0NA9kFgJmD2QWAmYPZBYCZg9kFgICAw9kFgICEQ9kFgQCAQ9kFgICAQ9kFgICBw88KwANAgAUKwACDxYIHgtfIUl0ZW1Db3VudAIBHgtfIURhdGFCb3VuZGceF0VuYWJsZUFqYXhTa2luUmVuZGVyaW5naB4LRWRpdEluZGV4ZXMWAGQXAQUPU2VsZWN0ZWRJbmRleGVzFgABFgIWCg8CBhQrAAYUKwAFFgQeBG9pbmQCAh4IRGF0YVR5cGUZKwFkZGQFAklEFCsABRYEHwQCAx8FGSsCZGRkBQROYW1lFCsABRYEHwQCBB8FGSsCZGRkBQtEZXNjcmlwdGlvbhQrAAUWAh8EAgVkZGQFDlRlbXBsYXRlQ29sdW1uFCsABRYCHwQCBmRkZAURRWRpdENvbW1hbmRDb2x1bW4UKwAFFgIfBAIHZGRkBQxEZWxldGVDb2x1bW5kZRQrAAALKXlUZWxlcmlrLldlYi5VSS5HcmlkQ2hpbGRMb2FkTW9kZSwgVGVsZXJpay5XZWIuVUksIFZlcnNpb249MjAwOC4xLjQxNS4zNSwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0xMjFmYWU3ODE2NWJhM2Q0ATwrAAcACyl0VGVsZXJpay5XZWIuVUkuR3JpZEVkaXRNb2RlLCBUZWxlcmlrLldlYi5VSSwgVmVyc2lvbj0yMDA4LjEuNDE1LjM1LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tle...] 
 
[HttpException (0x80004005): The state information is invalid for this page and might be corrupted.] 
   System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +267 
   System.Web.UI.HiddenFieldPageStatePersister.Load() +218 
   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +83 
   System.Web.UI.Page.LoadAllState() +35 
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350 
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213 
   System.Web.UI.Page.ProcessRequest() +86 
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18 
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49 
   ASP.admin_groups_aspx.ProcessRequest(HttpContext context) in d:\Users\Beny\AppData\Local\Temp\Temporary ASP.NET Files\root\29af3f81\4acffc0f\App_Web_3wl8note.6.cs:0 
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358 
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64 
 
  
 
 
-------------------------------------------------------------------------------- 
Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434  

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 May 2008, 10:17 AM
Hi Kamil,

Go through the following forum links which discusses a similar error.

Does current futures build support LINQ datasources ?
Firefox -> Viewstate corrupted

Shinu.
0
Kamil
Top achievements
Rank 1
answered on 13 May 2008, 07:35 PM
Thank you
I set false to grid's property EnableLinqExpressions . and it works :-)
But why with this property not work?
0
Princy
Top achievements
Rank 2
answered on 14 May 2008, 05:55 AM
Hi Kamil,

Go through the following forum discussion and see the explanation given by the Telerik Team.
http://www.telerik.com/community/forums/thread/b311D-bdttmc.aspx

Princy.
Tags
Grid
Asked by
Kamil
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Kamil
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or