We have an ASP.NET forms app which makes use of the Telerik RadGrid. One particular page has some code that allows the user's search criteria to be remembered (not sure if this relevant).
Quite often when adding updated or new pages to the same folder the page with the RadGrid starts crashing even though this page hasn't been updated itself. It seems more likely to crash for people who were using the page when the other content changed as it doesn't normally affect everybody. The problem can normally be cleared up by recycling the application pool or resetting IIS (Which isn't always possible to do quickly)
We have recently moved to a new web server (Windows 2012 / IIS8). We had the problem on the old server too - I was hoping the server move would help but it hasnt. Can anyone offer any advice?
Part of the error is pasted below
A]GridSettingsCollection cannot be cast to [B]GridSettingsCollection. Type A originates from 'App_Code.tjhpcefj,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Windows\Microsoft.NET
\Framework64\v4.0.30319\Temporary ASP.NET Files\root\4d0bd47d\b6b2e877\App_Code.tjhpcefj.dll'. Type B originates from
'App_Code.oxtbck2r, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:
\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\4d0bd47d\b6b2e877\App_Code.oxtbck2r.dll'.
Line 370: Public Shared Function LoadFromSerializedData(ByVal data As String) As GridSettingsCollection
Line 371: Dim formatter As New LosFormatter()
Line 372: Return DirectCast(formatter.Deserialize(data), GridSettingsCollection)
Line 373: End Function