P
PJ6
I get the below error in my web application when ViewState contains
serialized objects of a dynamic type.
I have a dynamic assembly (not saved to a physical file) named
"ImplementorFactoryAssembly" that serves dynamically-created interface
implementors, simple classes with properties.
What bugs me is that deserialization works just fine; TypeHandle is stable
across postbacks, casting back to objects from ViewState works... this
exception is thrown after Load be before PreRender. It looks like there is
some page-level validation that requires all types in ViewState to be backed
by physical files. Not sure how to fix this.
Paul
Server Error in '/' Application
--------------------------------------------------------------------------------
The state information is invalid for this page and might be corrupted.
=== Pre-bind state information ===
LOG: User = <munged>
LOG: DisplayName = ImplementorFactoryAssembly, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///C:/Resources/DEV/projects/<munged>
LOG: Initial PrivatePath = C:\Resources\DEV\projects\<munged>\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file:
C:\Resources\DEV\projects\<munged>\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:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/root/32f87833/3b482d6c/ImplementorFactoryAssembly.DLL.
LOG: Attempting download of new URL
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/root/32f87833/3b482d6c/ImplementorFactoryAssembly/ImplementorFactoryAssembly.DLL.
LOG: Attempting download of new URL
file:///C:/Resources/DEV/projects/<munged>/bin/ImplementorFactoryAssembly.DLL.
LOG: Attempting download of new URL
file:///C:/Resources/DEV/projects/<munged>/bin/ImplementorFactoryAssembly/ImplementorFactoryAssembly.DLL.
LOG: Attempting download of new URL
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/root/32f87833/3b482d6c/ImplementorFactoryAssembly.EXE.
LOG: Attempting download of new URL
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/root/32f87833/3b482d6c/ImplementorFactoryAssembly/ImplementorFactoryAssembly.EXE.
LOG: Attempting download of new URL
file:///C:/Resources/DEV/projects/<munged>/bin/ImplementorFactoryAssembly.EXE.
....
serialized objects of a dynamic type.
I have a dynamic assembly (not saved to a physical file) named
"ImplementorFactoryAssembly" that serves dynamically-created interface
implementors, simple classes with properties.
What bugs me is that deserialization works just fine; TypeHandle is stable
across postbacks, casting back to objects from ViewState works... this
exception is thrown after Load be before PreRender. It looks like there is
some page-level validation that requires all types in ViewState to be backed
by physical files. Not sure how to fix this.
Paul
Server Error in '/' Application
--------------------------------------------------------------------------------
The state information is invalid for this page and might be corrupted.
=== Pre-bind state information ===
LOG: User = <munged>
LOG: DisplayName = ImplementorFactoryAssembly, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///C:/Resources/DEV/projects/<munged>
LOG: Initial PrivatePath = C:\Resources\DEV\projects\<munged>\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file:
C:\Resources\DEV\projects\<munged>\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:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/root/32f87833/3b482d6c/ImplementorFactoryAssembly.DLL.
LOG: Attempting download of new URL
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/root/32f87833/3b482d6c/ImplementorFactoryAssembly/ImplementorFactoryAssembly.DLL.
LOG: Attempting download of new URL
file:///C:/Resources/DEV/projects/<munged>/bin/ImplementorFactoryAssembly.DLL.
LOG: Attempting download of new URL
file:///C:/Resources/DEV/projects/<munged>/bin/ImplementorFactoryAssembly/ImplementorFactoryAssembly.DLL.
LOG: Attempting download of new URL
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/root/32f87833/3b482d6c/ImplementorFactoryAssembly.EXE.
LOG: Attempting download of new URL
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/root/32f87833/3b482d6c/ImplementorFactoryAssembly/ImplementorFactoryAssembly.EXE.
LOG: Attempting download of new URL
file:///C:/Resources/DEV/projects/<munged>/bin/ImplementorFactoryAssembly.EXE.
....