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

Dependencies not downloaded

3 Answers 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jaco De Villiers
Top achievements
Rank 2
Jaco De Villiers asked on 24 Feb 2011, 06:26 PM
Hi, I am deploying my first Silverlight application and get the following exception on the client. (StackStrace excluded).  I have selected to minimize the size by not including dependencies.  It seems that the download location of the dependencies are incorrect.  I have traversed all configuration files, but could not see a place where i can specify the deployed location for the dependencies.

Please help...

Regards
Jaco

System.IO.FileLoadException: Could not load file or assembly 'Telerik.Windows.Controls, Version=2010.3.1314.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

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 01 Mar 2011, 04:27 PM
Hello Jaco De Villiers,

Can you please elaborate on your issue? You said that you have selected to minimize the size by not including dependencies? Can you please elaborate on that? Are you using the Application Library Caching option? Or are you using different methods to minimize the size of your XAP?

Also, you can have a look at this blog post that examines different way to reduce your XAP.

All the best,
Tina Stancheva
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!
0
Jaco De Villiers
Top achievements
Rank 2
answered on 02 Mar 2011, 10:30 AM
Hi Tina,

I used the "Reduce XAP size by using applicatoin library caching" option in VS2010.  When the application is deployed then all the Silverlight assemblies (some others too) are copied to the client bin as zip files.

When I run the application then the error "System.IO.FileLoadException: Could not load file or assembly 'Telerik.Windows.Controls, ...." message appears.  

If I remove the check from the option mentioned above, then the XAP file size (clientbin) increases to 3MB (All references embedded). Then the application run as expected

Regards
Jaco 
0
Tina Stancheva
Telerik team
answered on 07 Mar 2011, 01:21 PM
Hello Jaco De Villiers,

Can you check the AppManifest.xaml - the file that identifies the packaged assemblies and the application entry point. Under the :
<Deployment.ExternalParts>
  ....
</Deployment.ExternalParts>
you can find the reference paths of the ExtensionParts created by the Application Library Caching. This will allow you to check whether the application can access these paths and whether the zipped assemblies are actually placed in those folders.

Also, does the exception occur only when you deploy the application or can it be reproduced locally as well, while running the project by hitting F5?

You can have a look at this article describing how to work with Application Library Caching and at this blog post. That might also hep you narrow down the reason for this issue.

Regards,
Tina Stancheva
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
Jaco De Villiers
Top achievements
Rank 2
Answers by
Tina Stancheva
Telerik team
Jaco De Villiers
Top achievements
Rank 2
Share this question
or