Can't load file or assembly 'C1.Silverlight.5, Version 5.0.20142.419...'

  • CarlosStizza 2 years, 8 months ago

    I have a problem with Flexgrid for Lightswitch in Visual Studio 2013 Update 3.
    I downloaded trial and I created a new project with template LightSwith Desktop App for VB.
    In the project’ properties, set language to Español, and in Extensions tab I check ComponentOne FlexGrid for LightSwitch.
    In the client’ properties I set then Client Type to Web.
    I run in Debug mode and the app work fine. But when I run in release mode the following error occurs:

    "No se puede cargar el archivo o ensamblado 'C1.Silverlight.5, Versión 5.0.20142.419, Culture=neutral, PublicToken=2aa4ec5576d6c3ce' ni una de sus dependencias, El sistema no puede encontrar el archivo especificado"

    This is the content of …DesktopClient\My Project\Config.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <Configuration>
    <Manifests>
    <Manifest>Microsoft.LightSwitch.Base.Client.Manifest.xml</Manifest>
    <Manifest>Microsoft.LightSwitch.Client.Internal.Manifest.xml</Manifest>
    <Manifest>Microsoft.LightSwitch.Model.Xaml.Client.Manifest.xml</Manifest>
    </Manifests>
    <SubsystemPackages>
    <SubsystemPackage>ModelLoader</SubsystemPackage>
    <SubsystemPackage>RuntimeExtensionLoader</SubsystemPackage>
    <SubsystemPackage>PresentationRuntimeLoader</SubsystemPackage>
    <SubsystemPackage>ReportingLoader</SubsystemPackage>
    <SubsystemPackage>RulesLoader</SubsystemPackage>
    <SubsystemPackage>RuntimeServicesLoader</SubsystemPackage>
    <SubsystemPackage>RuntimeShellLoader</SubsystemPackage>
    <SubsystemPackage>ThemingRuntimeLoader</SubsystemPackage>
    <SubsystemPackage>UtilitiesLoader</SubsystemPackage>
    <SubsystemPackage>BaseServicesLoader</SubsystemPackage>
    <SubsystemPackage>DiagnosticsLoader</SubsystemPackage>
    <SubsystemPackage>RuntimeUserCodeLoader</SubsystemPackage>
    </SubsystemPackages>
    <UserCodeAssemblies></UserCodeAssemblies>
    <ExtensionAssemblies>
    <ExtensionAssembly>Microsoft.LightSwitch.SdkProxy, Version=10.0.12.1, Culture=neutral, PublicKeyToken=31BF3856AD364E35</ExtensionAssembly>
    <ExtensionAssembly>Microsoft.LightSwitch.Cosmopolitan.Client, Version=12.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35</ExtensionAssembly>
    <ExtensionAssembly>C1.LightSwitch.FlexGrid.Client, Version=4.0.20142.62, Culture=neutral, PublicKeyToken=null</ExtensionAssembly>
    <ExtensionAssembly>C1.LightSwitch.FlexGrid.Common, Version=4.0.20142.62, Culture=neutral, PublicKeyToken=null</ExtensionAssembly>
    <ExtensionAssembly>C1.Silverlight.5, Version=5.0.20142.419, Culture=neutral, PublicKeyToken=2AA4EC5576D6C3CE</ExtensionAssembly>
    <ExtensionAssembly>C1.Silverlight.FlexGrid.5, Version=5.0.20142.419, Culture=neutral, PublicKeyToken=2AA4EC5576D6C3CE</ExtensionAssembly>
    <ExtensionAssembly>C1.Silverlight.FlexGridFilter.5, Version=5.0.20142.419, Culture=neutral, PublicKeyToken=2AA4EC5576D6C3CE</ExtensionAssembly>
    <ExtensionAssembly>C1.Silverlight.Extended.5, Version=5.0.20142.419, Culture=neutral, PublicKeyToken=2AA4EC5576D6C3CE</ExtensionAssembly>
    <ExtensionAssembly>C1.Silverlight.Zip.5, Version=5.0.20142.419, Culture=neutral, PublicKeyToken=2AA4EC5576D6C3CE</ExtensionAssembly>
    <ExtensionAssembly>C1.Silverlight.Excel.5, Version=5.0.20142.419, Culture=neutral, PublicKeyToken=2AA4EC5576D6C3CE</ExtensionAssembly>
    <ExtensionAssembly>C1.Silverlight.DateTimeEditors.5, Version=5.0.20142.419, Culture=neutral, PublicKeyToken=2AA4EC5576D6C3CE</ExtensionAssembly>
    </ExtensionAssemblies>
    </Configuration>

    Attachments:
    1. Error-Flexgrid

      Error-Flexgrid.png

  • 198p
    richas198p 2 years, 8 months ago

    Hello,

    Please refer to the following blog where troubleshooting a similar problem is discussed :

    http://our.componentone.com/2013/10/21/troubleshooting-could-not-load-file-or-assembly-error-on-upgrading-lightswitch-projects/

    In case the above blog does not help, try the following steps :
    1. Open your LS project in VS
    2. Open the Tools menu and click on C1BulbChanger.
    This will update the references in your project.
    3. Rebuild and run your project

    If this does not work, then open the .csproj file for the desktop client project, in notepad and remove the occurrences of the following line from it :

    <ExtensionReferenceType>DebugOnly</ExtensionReferenceType>
    

    Let me know if this helps.

    Thanks,
    Richa

  • CarlosStizza 2 years, 8 months ago

    Hello Richas, thank you very much for the speed in the answers.
    It worked correctly in Release mode when I removed <ExtensionReferenceType> DebugOnly </ ExtensionReferenceType> each reference in .vbproj file for then desktop client Project.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Questions?

Have questions? Use our Customer Portal at

supportone.componentone.com