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

Rad Controls in toolbox, can't add to project

7 Answers 318 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Golem
Top achievements
Rank 1
Golem asked on 03 Sep 2008, 08:20 PM
UPDATE: Fixed!  See my post about 5 message down...

I'm having a unique problem that I can't seem to resolve.  I have a project that contains the Q2 Rad Controls for AJAX, but I cannot add any of them to my web forms.  No one else on the team seems to have this problem.  They can just open a web form, double-click on a RadGrid, RadTextbox, RadTreeView, etc. and the controls appear on the page.  This doesn't work for me.

HOWEVER... and here's the thing that has me scratching my head... if I start any new projects, I can add the Rad Controls to the web forms just fine.  It's only on this one project.

Any ideas?  Thanks in advance.

7 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 04 Sep 2008, 05:49 AM
Hello Golem,

Is that a .Net3.5 project? If so, do you work with the Service Pack 1 of VS 2008?

You can compare the web.config files of the project in question and a new one for example to see what the differences are. You can even copy your custom settings if any and add them to the newly created web.config from Visual Studio to see if that resolves the problem.

Sincerely yours,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Golem
Top achievements
Rank 1
answered on 04 Sep 2008, 12:36 PM
Yes, sorry.  I forgot to mention that.  It is a VS2008 SP1 3.5 web project.  I compared the web.configs of this project compared to a new one, and aside from a few custom settings, they are the same.

The behavior I'm seeing is that if I double-click a Rad tool in the toolbox (or try to drag-and-drop it) onto a web form, there is a slight pause as if it's going to do it, but then it doesn't do it.  Nothing is added to the web form in the designer or in the HTML source.  And no changes are made to the web.config.

But it's only this one project.  Everyone else on the same project can add the Rad tools to the form just fine.

Also, if I open a new project, I can add Rad tools to the web forms as usual, and the appropriate changes are made to the HTML source (including the @Register directive) and the Telerik assembly section is added to the web.config automatically.

Just not on the other project.  What could be causing that behavior?
0
Golem
Top achievements
Rank 1
answered on 04 Sep 2008, 12:40 PM
I should also probably add that it applies to any web projects in this one particular solution... i.e. we have a couple of different web projects under the same solution, and I can't add the rad tools to any of them.

If I create a new web project in a NEW solution, then I don't have the problem.

0
Golem
Top achievements
Rank 1
answered on 04 Sep 2008, 01:25 PM
Interesting... Apparently I fixed it.

On a whim, I did a "Clean Solution" and then a "Build Solution" from the Build menu (I suppose I could have just done a "Rebuild" which is supposed to do both in one step).

That solved my problem.  I can now drag-and-drop controls onto my web forms in this particular project.  Some ancillary file in the project must have become out of sync or corrupt.

So if anyone else was having a similar problem, make sure your references to the Telerik.Web.UI dll are correct and then try cleaning your solution.  It worked for me!
0
Konstantin Petkov
Telerik team
answered on 05 Sep 2008, 05:45 AM
Hello Golem,

Indeed, quite interesting. I'm glad you were able to find the solution and thank you very much for sharing that with the community!

All the best,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
mac
Top achievements
Rank 1
answered on 24 Feb 2011, 07:13 PM
I am experiencing the same issue. VS2010 Pro. 4.0 project using 3.5 controls...(don't ask). dragging and dropping the radcontrols was working just fine until a couple days ago. steps taken
Rebuild (no affect)
Delete temp asp.net files from 4.0 dir (no effect)

even copying in the
register assembly to the page and trying drag/drop does not fix the issue.

any idea on possible problem?

Never mind... as a last ditch I went to re-add the items and notice that the library reference was to a folder that no longer existed.. so try that if it happens to you.
Right click toolbox > Add items > check where the radcontrols dll is being referenced. (odds are it is a location that no longer exists.)

0
Erjan Gavalji
Telerik team
answered on 28 Feb 2011, 12:16 PM
Hi Mac,

The library points to a folder, specified in the registry. Can you check the subkeys under the following keys for Telerik entries:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx


(Note: the keys get based with HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ on a 64-bit machine)

Kind regards,
Erjan Gavalji
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
Golem
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Golem
Top achievements
Rank 1
mac
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Share this question
or