How To Upgrade To Version 1.5


Upgrading to Document Toolkit for LightSwitch 1.5 requires manual editing of your LightSwitch application config. When you upgrade to v1.5 and try to run your LightSwitch application you will see the following error: "Could not load file or assembly 'FirstFloor.Documents, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5aa7ab6a0e3ec07b".

The core Document Toolkit assemblies have been strong signed with a new key. LightSwitch tooling is unable to automatically adjust these dependencies, so you'll need to edit them manually. This is an operation that only needs to be performed once. The following tutorial provides the required steps.

1) Open your LightSwitch project in Visual Studio.

2) Switch the Solution Explorer to 'File View'

ToFileView.png

3) Select the LightSwitch project and click the 'Show All Files' button in the toolbar. This will display the ClientGenerated project in the Solution Explorer.

ShowAllFiles.png


4) Expand the ClientGenerated project and open the Config.xml file. The Config.xml contains a list of ExtensionAssemblies being used by your application. Locate the following ExtensionAssembly entries;

<ExtensionAssembly>FirstFloor.Documents, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5AA7AB6A0E3EC07B</ExtensionAssembly>
<ExtensionAssembly>FirstFloor.Documents.Controls, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5AA7AB6A0E3EC07B</ExtensionAssembly>

5) Replace the PublicKeyToken of these entries with 2d21ec3cd074c59a. Make sure the result is as listed below:

<ExtensionAssembly>FirstFloor.Documents, Version=2.0.0.0, Culture=neutral, PublicKeyToken=2d21ec3cd074c59a</ExtensionAssembly>
<ExtensionAssembly>FirstFloor.Documents.Controls, Version=2.0.0.0, Culture=neutral, PublicKeyToken=2d21ec3cd074c59a</ExtensionAssembly>

6) Save the Config.xml, switch the solution back to 'Logical View' and run the application.

Last edited Mar 19, 2012 at 11:25 PM by kozw, version 3

Comments

No comments yet.