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

Could not load the assembly file

8 Answers 175 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 23 Jul 2007, 06:52 AM
Hi,

I installed the customer build of SP2 to fix the RadLabel problem after uninstalled the old telerik componenets.

But to my surprise it's give me this error:
could not load file or assembly 'Telerik. WinControls.UI version=3.5.0.0, culture=neutral, PublicKeyToken=5bb2a467cbec794e' or one its dependencies.

I think it;s to do with the reference. I deleted the old reference and point to new reference. 

Please help. 

8 Answers, 1 is accepted

Sort by
0
Dimitar Kapitanov
Telerik team
answered on 23 Jul 2007, 07:35 AM
Hi eriksurya,
The version of the assemblies in the custom build is 3.5.1.0 not 3.5.0.0  (this is the build version of the original SP2 release). Probably you have a reference inside your application that you need to remove and add a reference to the latest (3.5.1.0) release.

Best wishes,
Dimitar Kapitanov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Erik
Top achievements
Rank 1
answered on 23 Jul 2007, 11:12 AM
Hi,

I understand that. Do you mean i have to take out all the textboxes, labels, grids in my application and use this new version? Is anyway tryt to avoid redesign the applications?

I have remove all the references and change to new version 3.5.1.0.
0
Erik
Top achievements
Rank 1
answered on 23 Jul 2007, 11:12 AM
Hi,

I understand that. Do you mean i have to take out all the textboxes, labels, grids in my application and use this new version? Is anyway tryt to avoid redesign the applications?

I have remove all the references and change to new version 3.5.1.0.
0
Dimitar Kapitanov
Telerik team
answered on 23 Jul 2007, 11:47 AM
Hi eriksurya,
Actually you should open the References section in your project (inside the project explorer), remove the reference to the 3.5.0.0 assembly and add a reference to the v3.5.1.0 assembly.

Regards,
Dimitar Kapitanov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Erik
Top achievements
Rank 1
answered on 24 Jul 2007, 02:14 AM
I did that. I can run the project but in design time, it cannot show the interface, just give me error:

could not load file or assembly 'Telerik. WinControls.UI version=3.5.0.0, culture=neutral, PublicKeyToken=5bb2a467cbec794e' or one its dependencies.

I used the version 3.5.0.0 of all the components(textbox, label, grid). And suddenly use 3.5.1.0, i think the VS.Net is confused.

Please help.
0
Dimitar Kapitanov
Telerik team
answered on 24 Jul 2007, 06:45 AM
Hello eriksurya,
Please verify that the bin directory is cleaned-up from assemblies, check all references that are correct inside the solution explorer, rebuild and if the problem remains open a support ticket and send us the project that causes problems. That way we will be able to analyze it locally at telerik and see what is causing the problem.

Sincerely yours,
Dimitar Kapitanov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Erik
Top achievements
Rank 1
answered on 24 Jul 2007, 08:29 AM
Hi,
Thanks for your help. I solved the problem. Before I have cleaned all the bin and reference from version 3.5.0.0 and changed to 3.5.1.0. I gave me error not in running time but in design time. I cant see the design of my application.

I solved it by putting the old version first and let the program generate public key token and then I just changed it to new one.

This error happen because I was using the version 3.5.0.0 and then somebody installed the version 3.5.1.0. When i save and reload the VS.Net cannot differenciate the public key and the version.

Do you think TELERIK should check whether the components are being used before install the new version?

thanks
0
Vassil Petev
Telerik team
answered on 24 Jul 2007, 09:00 AM
Hi Frederik,

Our installers do check whether a previous version is installed on this machine, and do not proceed with installing the controls if another version is present. This is standard practice.

The installers, however, do not check whether you are using older assembly versions in your applications. This is would be very hard to do, because the installer will need to scan your machine(s), which is a tedious job. If you have many applications you are working on, the installer may take a lot of time to install the product. This is the only reason why we do not supply this feature, but we will consider it. 



Regards,
Rob
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Erik
Top achievements
Rank 1
Answers by
Dimitar Kapitanov
Telerik team
Erik
Top achievements
Rank 1
Vassil Petev
Telerik team
Share this question
or