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

AJAX 2009 Q2 Release giving me gray hair!

5 Answers 480 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 08 Jul 2009, 09:28 PM

Developing along fine... played with Silverlight for a while... went back to AJAX for now...
Nice stuff going on... good widgets...

I downloaded and installed the 2009 Q2 release and I am having all kinds of problems.
I removed the reference to the old dll and added reference to the new dll - still get riddled with problems...

e.g.,
Error creating template groups. Reason: System.InvalidCastException: Unable to
cast object of type 'Telerik.Web.UI.RadGrid' to type 'Telerik.Web.UI.RadGrid'.
  at Telerik.Web.Design.RadGridDesigner.get_GridComponent()
  at Telerik.Web.Design.RadGridDesigner.get_TemplateGroups()

this comes out of nowhere... on three grids on the page...

e.g., just adding a simple Combobox I get the message in the DEVELOPMENT environment
Error Creating Control - RadComboBox1
Unable to cast object of type 'Telerik.Web.UI.RadComboBox' to type 'Telerik.Web.UI.ControlItemContainer

My guess is that I have a reference somewhere that still needs cleaning up... any ideas?

Chris

PS NEVER MIND!
Though I did change the reference to the new binary... for some reason the system did not update the bin directory with the new dll...
Sorry I didn't see it quicker!

C

5 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 09 Jul 2009, 09:49 AM
Hello Chris,

Can you please check whether clearing your VS cache and restarting your development environment addresses the issue you encountered?

You may also check whether you have a valid reference to the Telerik.Web.Design.dll either in the /bin folder of your project or in the GAC on your machine. See this blog post for more details.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Chris
Top achievements
Rank 1
answered on 10 Jul 2009, 12:07 AM
Ok... the problems get even worse...
After I did as suggested in your last post, after deleting all cookies,
I now am getting the message:


Error creating template groups. Reason: System.InvalidCastException:
[A]Telerik.Web.UI.RadGrid cannot be case to [B]Telerik.Web.UI.RadGrid. Type A
originates from 'Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral,
PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location
'C:\....\ProjectAssemblies\mfsbifj301\telerik.web.ui.dll'. Type B
originates from 'Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral,
PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location
'C:\....\ProjectAssemblies\8psgb5pf01\Telerik.Web.UI.dll'.
      at Telerik.Web.Design.RadGridDesigner.get_GridComponent()
      at Telerik.Web.Design.RadGridDesigner.get_TemplateGroups()

(left out a bit of the file URL - don't think you need it...)

Any ideas??

It has already re-formatted most of the HTML / ASP,Net in the aspx file (annoying!)

HELP!

Chris
0
Sebastian
Telerik team
answered on 10 Jul 2009, 08:29 AM
Hello Chris,

You need to delete the files from the locations specified in the blog post (depending on whether you develop under .NET 2.x or .NET 3.x framework) rather than deleting cookies or browser cache.

Furthermore, verify that you have a valid reference to the proper version of the Telerik.Web.UI.dll/Telerik.Web.Design.dll based on the framework version you have (those from the /bin folder of the installation are for .NET 2.x and those from the /bin35 folder are for .NET 3.5).

Finally, restart your Visual Studio to ensure that the latest updates for design-time references will be applied.

Regards.
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
areen
Top achievements
Rank 1
answered on 28 Jan 2011, 12:58 AM
I'm using the q3 2010 version of the control and getting the same error. i've deleted the subdirectories in the project assemblies folder and added the 2 telerik dlls from the bin35 folder to my project's bin folder and added project references to the the dlls.

when i reopen the project, the radgrid control is find, but as soon as i click on the control the error appears.

what to do?

thanks,
areen
0
Sebastian
Telerik team
answered on 01 Feb 2011, 01:00 PM
Hi areen,

This is a known intermittent issue in previous versions of our AJAX controls - we apologize for the caused inconvenience. To address it, either upgrade to more recent version of the suite or use the reg files from this forum post.

I hope these directions are helpful.

Kind regards,
Sebastian
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Chris
Top achievements
Rank 1
areen
Top achievements
Rank 1
Share this question
or