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

Struggling to get radControls in my toolbox

8 Answers 178 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark Davies
Top achievements
Rank 1
Mark Davies asked on 28 Feb 2010, 02:49 PM
Hi,

I'm a developer in VS (ASP.Net) and was tasked to find better controls for our new silverlight POC project.

I have spent hours on trying to get this to work in ASP.Net and I am just about to give up on this when I thought that I'll try the forums as a last resort.

I downloaded and installed the trial version for silverlight and since I am using Silverlight 4 with VS 2010 Express Beta 2 (might just as well keep up with the latest version when doing a new project) I also downloaded RadControls for Silverlight4 2009 3 1314 TRIAL.

In the documentation it indicates that the .dll's and associated files needs to be copied to C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies, which I have done, but when I attempt to add the controls to my toolbox I keep on getting the error:
---------------------------
Microsoft Visual Web Developer 2010 Express
---------------------------
Could not load file or assembly 'file:///C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\Telerik.Windows.Controls.Navigation.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
---------------------------
OK   
---------------------------

I even tried to copy the files to C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies and that still resulted in the same error.

The funny thing, however, is that I also have Expressing Blend for .Net 4 and if I load the .dll here, they load fine and I can create an object here. When I save the project in EB and then attempt to open it in VS WD 2010 I get an error and the preview page doesn't open, the error shown is:

Error    24    Unable to load the metadata for assembly 'Telerik.Windows.Controls.Navigation'. The following error was encountered during load: Could not load file or assembly 'Telerik.Windows.Controls.Navigation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)    C:\Users\Mark Davies\Documents\Visual Studio 2010\Projects\BusApp1\BusApp1\Views\Data.xaml    1    1    BusApp1

Any help would be greatly appreciated in resolving this issue.

8 Answers, 1 is accepted

Sort by
0
Mark Davies
Top achievements
Rank 1
answered on 28 Feb 2010, 03:03 PM
Hi,

Sorry guys - I figured out why it was giving me the error - sometimes one wishes for more direct error reporting in VS.

Anyway, I needed to UNBLOCK the .dll files that I extracted from the .zip file for the silverlight 4 support.

0
Will Ferguson
Top achievements
Rank 1
answered on 21 Jun 2010, 04:23 AM
HI. I am having the same problem. What did you mean by UNBLOCK the files??
0
Mark Davies
Top achievements
Rank 1
answered on 21 Jun 2010, 04:57 AM
Hi,

To UNBLOCK the .dll files, you need to go to the location of the .dll files, select the file, go to its properties and then choose Advanced - there should be an Unblock button that you can selected. Do this for all .dll files you wish to use.

Hope this helps.
0
Will Ferguson
Top achievements
Rank 1
answered on 21 Jun 2010, 05:21 AM
Sorry I don't see any Unblocking option. (I'm using Win 7)
The dll's are here .

C:\Program Files\Telerik\RadControls for WPF Q1 2010 SP2\Binaries\WPF

the one I'm particularly after is the radgridview.dll

When I try to add this dll I get the error. Weird because I can get the RADGridview inn Expression Blend 3 just fine.
 
I have uninstalled/reinstalled VS2010 twice this week. Uninstalled/reinstalled all Telerik Suite trying to get this to work.

I'm thinking I Imay have to reformat now. It's driving me nuts
 
0
Mark Davies
Top achievements
Rank 1
answered on 21 Jun 2010, 05:38 AM
I had the same problem with other controls. The release I got was still in beta and so was VS2010, so, I just eventually gave up on it after a while.

I later had the same error with something completely different and found that I had to refresh the .dll in the GAC and that cleared up my issues. You might want to check that first.

I am not an expert in VS, so, please don't take my work for this, I just googled my issue until I found something that worked - I was frustrated and was ready to re-install my OS when I tried that one last option and thankfully that sorted my issue out.
0
Will Ferguson
Top achievements
Rank 1
answered on 21 Jun 2010, 05:50 AM
Yeah I was thinking I would try the GAC util first and check those pulic key tokens.

Good pointer.
0
Will Ferguson
Top achievements
Rank 1
answered on 27 Jul 2010, 01:52 AM
Possible Solution:
Delete the hidden files: toolbox.tbd, toolbox_reset.tbd, toolboxIndex.tbd, toolboxIndex_reset.tbd from the folder "%USERPROFILE%\AppData\Microsoft\VisualStudio\10.0" while visual studio is closed.

0
Jonx
Top achievements
Rank 2
answered on 01 Dec 2010, 10:34 PM
I deleted *.tbd in the following dir on Windows 7x64
C:\Users\[Current user]\AppData\Local\Microsoft\VisualStudio\10.0
The rest didn't work for me but that did...
Thanks Will...
Tags
General Discussions
Asked by
Mark Davies
Top achievements
Rank 1
Answers by
Mark Davies
Top achievements
Rank 1
Will Ferguson
Top achievements
Rank 1
Jonx
Top achievements
Rank 2
Share this question
or