Dependencies not downloaded

4 posts, 0 answers
  1. Jaco De Villiers
    Jaco De Villiers avatar
    15 posts
    Member since:
    Nov 2009

    Posted 24 Feb 2011 Link to this post

    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
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 01 Mar 2011 Link to this post

    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!
  3. Jaco De Villiers
    Jaco De Villiers avatar
    15 posts
    Member since:
    Nov 2009

    Posted 02 Mar 2011 Link to this post

    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 
  4. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 07 Mar 2011 Link to this post

    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!
Back to Top