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

Error Creating Control - telerik:radajaxmanager'AjaxSettings' could not be initialized.

5 Answers 546 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yohana
Top achievements
Rank 1
Yohana asked on 08 Jan 2009, 02:29 PM

I have some pages in my Project and then I created a Master page and begin to add my pages to the Master page

When suddenly appear this error message:

 

Error Creating Control - telerik:radajaxmanager'AjaxSettings' could not be initialized. Details: [A]Telerik.Web.UI.RadAjaxManager cannot be cast to [B]Telerik.Web.UI.RadAjaxManager. Type A originates from 'Telerik.Web.UI, Version=2008.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Documents and Settings\y.ramirez\Configuración local\Datos de programa\Microsoft\VisualStudio\9.0\ProjectAssemblies\1o26-o5n01\Telerik.Web.UI.dll'. Type B originates from 'Telerik.Web.UI, Version=2008.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Documents and Settings\y.ramirez\Configuración local\Datos de programa\Microsoft\VisualStudio\9.0\ProjectAssemblies\0kkaeir201\telerik.web.ui.dll'.

 

I solve the problem by doing the following:


1. remove the toolbox tag for Telerik controls in VS.
2. remove the Reference of Telerik from the Project in VS.
3. Exit VS with save changes option.
4. Use  "Register RadControls for ASPNET AJAX Q1 2008 items in the Visual Studio toolbox"

 

But when I close VS and then open it the error appears once again.

What can I do?

 

5 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 08 Jan 2009, 02:40 PM
Hello Yohana,

I think that the solutions discussed in the following blog post of my colleague Kevin will help you address the design-time issue with our controls you are currently facing:

http://blogs.telerik.com/kevinbabcock/posts/08-12-23/Visual_Studio_ldquo_Error_Creating_Control_rdquo.aspx

Kind regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Yohana
Top achievements
Rank 1
answered on 08 Jan 2009, 03:19 PM
thnx for your help Sebastian but that solution doesn't work for me.
If you know another way to solve that problem I'd be thankful.
0
Baatezu
Top achievements
Rank 2
answered on 26 Jan 2009, 08:09 AM
I found a page that said to clear out C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files as well.
I did that, and it fixed the problem for me.
Another post said to change the project to 2.0 instead of 3.5. I was going to try that next, but clearing out the above directory worked for me.
0
topry
Top achievements
Rank 1
answered on 11 Mar 2009, 03:31 PM
I was experiencing the same issue - Telerik controls added to a master page not displaying on webforms that used that master. I installed the KB hotfix, deleted the temp files listed in this (and other postings), closed/reopened VS2008 SP1, moved registration to the Web.config file - but the problem remained.

The 'solution' for me was easier than any of the above.
If I first open the Master page, before opening any of the pages that use that master, the controls are displayed correctly.
0
bernard
Top achievements
Rank 1
answered on 09 Sep 2011, 09:08 PM
@topry
THANK YOU!!
I have been googling the hell out of this issue and here the problem was using Rad form controls on pages where the form resides on the master page. Like you said, the solution is as easy as closing all open .aspx pages, opening the master page, then reopening any of the .aspx pages that use the master page and that contain Rad controls. It worked like a charm. Thanks.

Anyone having this issue with Rad Controls, please check if you have a master page. If you do, this solution will work.
Tags
General Discussions
Asked by
Yohana
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Yohana
Top achievements
Rank 1
Baatezu
Top achievements
Rank 2
topry
Top achievements
Rank 1
bernard
Top achievements
Rank 1
Share this question
or