I am using a linq to entities data source where the columns are determined run time, and uses a library called DynamicQuery. This library creates a dynamic assembly.
Even with EnableViewState="false" the datasource definition seems to be stored in viewstate, and is attempting to be deserialized. When it tries to deserialize an error is thrown that the assembly that was previously used is no longer available.
Is there any way to prevent the datasource object from being saved into viewstate?
Note: When I completely turn ViewState off at the control level, the page works, but the Paging and event processing is broken with the grid when this is done.
Even with EnableViewState="false" the datasource definition seems to be stored in viewstate, and is attempting to be deserialized. When it tries to deserialize an error is thrown that the assembly that was previously used is no longer available.
Is there any way to prevent the datasource object from being saved into viewstate?
Note: When I completely turn ViewState off at the control level, the page works, but the Paging and event processing is broken with the grid when this is done.