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

Silverlight update from 1116 to 1220 Error- 'Cannot load file or assembly'

7 Answers 129 Views
Installer and Visual Studio Extensions
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 18 Jan 2012, 04:10 PM
Hi Telerik Team,

We have started using the Silverlight Telerik controls and started with version 2011.1.1116, we updated to 2011.3.1220.1040 and now our controls do not show up? Only this message -

"Could not load file or assembly 'Telerik.Windows.Controls, Version=2011.3.1220.1040, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. 
The requested assembly version conflicts with what is already bound in the app domain or specified in the manifest. (Exception from HRESULT: 0x80131053)"

We are using the Silverlight controls in Lightswitch and so far have had no issues, until the update? I have searched the Forums and see references to remove the existing version from the GAC (there was none). I have made sure that the references in the Custom Control and LS project are the exact same? Any ideas what would cause a conflict?

Thanks,
SD.

7 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 18 Jan 2012, 04:16 PM
Hi SD,

Did you rebuild the LightSwitch application? Could it be that the application was alive while you deployed it to the web server? Or, could it be that for some reason the update to the web server did not happen properly, e.g. the XAP file did not contain the newly setup assemblies?

Kind regards,
Erjan Gavalji
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Steve
Top achievements
Rank 1
answered on 18 Jan 2012, 04:45 PM
I have done a complete Rebuild and also a Clean then Build and watched the files in the bin disappear and regenerate, so I know the files are being updated. Also, I am actually running in Debug on my machine (not deployed yet) and everything runs fine except when navigating to the screen that has the control? 

The control has been removed and re-added to no avail...
0
Steve
Top achievements
Rank 1
answered on 18 Jan 2012, 07:21 PM
Found the Fix...

In the LightSwitch project, after showing and un-hiding all the folders we found that even though the references in the Client project were correct. The references in the 'ClientGenerated' needed to be updated. 

Looks like it was more of a LightSwitch problem than Telerik, however, this is one of those things to beware of when updating....

thanks for the quick response :)
0
Sponge
Top achievements
Rank 1
answered on 01 Aug 2012, 02:26 PM
I had the exact same problem but I was upgrading from Q3 2011 version to Q2 2012.

I'll try steve's solution.. I really hope it'll work.
0
Aylin
Telerik team
answered on 03 Aug 2012, 12:45 PM
Hi Sponge,

I hope the solution provided by Steve will help you resolve the issue at your side.

Regards,
VSXTeam Aylin
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Ser
Top achievements
Rank 1
answered on 03 Aug 2012, 01:10 PM
hi

Im trying to make a calendar with Lightswitch. I get no error when in debug mode but when i change project to release it gives alot of errors.

i got this a lot of warnings like this:
Warning 1 The primary reference "Telerik.Windows.Controls" could not be resolved because it has an indirect dependency on the .NET Framework assembly "mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" which has a higher version "5.0.5.0" than the version "2.0.5.0" in the current target framework. ClientGenerated

and errors like this:
Error 106 The type or namespace name 'Appointment' could not be found (are you missing a using directive or an assembly reference?) C:\Users\....\Client\RadScheduleViewControl.xaml.cs 21 21 Client

i deleted
Telerik.Windows.Controls;
Telerik.Windows.Input;
Telerik.Windows.Controls.Navigation;
Telerik.Windows.Controls.ScheduleView; and readded ro client and clientgenarated (Tried 2012 Q1 and also 2012 Q2 ref.)

when i hit f5 it removes suddenly (RadScheduleViewControl.xaml.cs)

using Telerik.Windows.Controls;
using Telerik.Windows.Input;
using Telerik.Windows.Controls.Navigation;
using Telerik.Windows.Controls.ScheduleView;

and i got alot of errors like below

i downloaded a few RadScheduleViewControl examples for lightswitch from telerik, i didnt make any change and it doesnt work like my project i got alot of errors related to refs.

I tried to correct this problem and read all of telerik.com but no solution for me...


0
Ser
Top achievements
Rank 1
answered on 04 Aug 2012, 09:14 AM
Tags
Installer and Visual Studio Extensions
Asked by
Steve
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Steve
Top achievements
Rank 1
Sponge
Top achievements
Rank 1
Aylin
Telerik team
Ser
Top achievements
Rank 1
Share this question
or