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

RadGrid Sort Error InvalidCastException

1 Answer 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
bhenke
Top achievements
Rank 1
bhenke asked on 02 Dec 2014, 07:47 PM
Hello,

Yesterday I upgraded from RadControls for .NET Q1 2010 to the UI for ASP.NET AJAX Q3 2014.  I have three solutions which utilize the RadGrid extensively.  In my development environment (VS 2010) all of my projects work great.  However, when they are deployed to a Windows 2003 IIS 6 server, I am receiving the following errors when I try to sort any RadGrid in my project:

System.InvalidCastException: Unable to cast object of type 'Telerik.Web.UI.RadGrid' to type 'Telerik.Web.UI.GridTableView'. at Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Other basic functions appear to be working properly including rendering of the grid as well as pagination.

Two of the solutions share an application pool on my web server so I though perhaps that might be an issue (even though I know they have their own memory spaces) so I set up a brand new Windows Server 2003 machine patched fully as of this morning.  I am still having the error there.

I have verified that I am sending out the correct version of the DLL and verified that my web.config file has the correct entries per the online demos folder installed on my development machine.

Can you please suggest a solution?

Thank you!

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 05 Dec 2014, 03:27 PM
Hi,

Based on the provided information it would be hard to pinpoint what is causing the errors. However, there were reports for similar errors. Check out the following thread that suggests a possible solution:

http://www.telerik.com/forums/255649-unable-to-cast-object-of-type-telerik-web-ui-radgrid-to-type-telerik-web-ui-gridtableview#eXEQUb8QREyWzWhqjni2ZA

Regards,
Viktor Tachev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
bhenke
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or