Composite Web Client Automation Known Issues

Some unit tests will fail when GAT 1.3 is installed on the box.

You will get the following error message:

Initialization method WebClientFactoryPackage.Tests.CreateFoundationalModulePagePresenterTestFixture.SetUp threw exception. System.IO.FileLoadException: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Practices.RecipeFramework.Library, Version=1.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Practices.RecipeFramework.Library, Version=1.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).

Reason:
This is because the version of the ‘Microsoft.Practices.RecipeFramework.Library’ assembly shipped with the bundle is 1.2.0.0. If GAT 1.3 is installed, then a binding redirect to version 1.3.0.0 is created in the machine.config. The test manager tries to load 'Microsoft.Practices.RecipeFramework.Library, Version=1.3.0.0’ but the version referenced in the project is 1.2.0.0. So some of the unit tests fail to execute.

Workaround:
Re-add the references to 'Microsoft.Practices.RecipeFramework.Library, Version=1.3.0.0 from C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies. Build the solution. Re-run the tests.

Last edited Dec 5, 2007 at 7:25 PM by blainew, version 2

Comments

No comments yet.