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

Page with RadGrid crashes after adding new content

3 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Graeme
Top achievements
Rank 1
Graeme asked on 06 Jul 2015, 05:58 PM

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'.

Source Error: 

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

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 09 Jul 2015, 12:29 PM
Hello Graeme,

Based on the presented error it is a bit difficult to directly isolate the root cause of the issue you are facing.
Can I kindly ask you to post the full stack trace of the presented error so that we can revise it locally and advise you further?
It will also be very helpful if you post your full page markup as well as related code behind so that we can revise your code and do our best to isolate the problem.

Regards,
Maria Ilieva
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Sean
Top achievements
Rank 1
answered on 27 Jan 2016, 11:11 PM

I had this issue and it went away after deleting the contents of the .../Temporary ASP.NET Files folder. For you, that would be :\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root.

See these links for additional info: 

http://stackoverflow.com/questions/450831/what-is-the-temporary-asp-net-files-folder-for

https://msdn.microsoft.com/en-us/library/ms366723.aspx

0
Maria Ilieva
Telerik team
answered on 01 Feb 2016, 01:32 PM
Hi Graeme,

Check the appraoch provided in the previous post and see if this helps.

Regards,
Maria Ilieva
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Graeme
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Sean
Top achievements
Rank 1
Share this question
or