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

[Solved] Multiple Design Time Errors

2 Answers 132 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David Hufford
Top achievements
Rank 1
David Hufford asked on 20 Jul 2009, 12:35 AM
Hi,
I'm trying to get started with the controls but am having some problems.
I installed them on one machine and kept receiving the "Can not cast" errors."  So, I installed SP1.  That did not help
So, just in case my environment was messed up,  i created a completely clean dev environment as follows:
1.  Started with a completely clean VM of XP with SP3
2. Installed VS 2008
3. Installed vs sp1
4. installed RadControls_for_ASP.NET_AJAX_2009_2_701_trial.msi

Then, just to see if I was still having the problem I created a RadCrontrols VB.Net Web Application project.
From there I did the following:
1. Drop a RadTreeView onto Default.aspx
2. Error - Unable To Cast...
3. Close Default.aspx and reopen it - it is fine
4. Use "Build RadTreeView" to add a few nodes.
5. Error - RadTreeView - RadTreeView1There was an error rendering the control.
Unable to cast object of type 'Telerik.Web.UI.RadTreeView' to type 'Telerik.Web.UI.ControlItemContainer'.
6. Close and reopen Default.aspx - it is fine
7. Add a Grid
8. Run it.
9. Delete the grid
10. Close and open default.aspx - Error in both RadTreeView sections - Error Creating Control - RadTreeView2'Nodes' could not be initialized. Details: [A]Telerik.Web.UI.RadTreeView cannot be cast to [B]Telerik.Web.UI.RadTreeView. Type A originates from 'Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Documents and Settings\xpUser1\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\j4t8j5az01\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:\Documents and Settings\xpUser1\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\4xzcagnf01\Telerik.Web.UI.dll'.
11. Close and open again - same errors
12. Close and open VS - everything is fine

Based on the articles I found, this should not be happening with SP1.

Does anyone know how to permanently eliminate (or at least work around in a reasonable fashion) this type of issue? 

Thanks

2 Answers, 1 is accepted

Sort by
0
Kim
Top achievements
Rank 1
answered on 02 Sep 2009, 09:20 PM
I am having the exact same problem. Any solutions on this issue yet?
0
Pavlina
Telerik team
answered on 03 Sep 2009, 07:50 AM
Hi David and Kim,

I suggest you try the solutions discussed in the following blog post and hope they will help you address the design-time issue with our controls you are currently facing:
Visual Studio: “Error Creating Control”

Additionally, you may try also clearing your Temporary ASP.NET Files, usually located at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727. 

Sincerely yours,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
David Hufford
Top achievements
Rank 1
Answers by
Kim
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or