BTDF / DeploymentFramework

The Deployment Framework for BizTalk is the most powerful and customizable, yet easy-to-use toolkit for deploying and configuring your BizTalk solutions.
MIT License
53 stars 24 forks source link

msbuild task error when deploying #411

Closed tfabraham closed 6 years ago

tfabraham commented 6 years ago

On BTDF 5.6 I am getting this error on deployment:

error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 'SSOSettingsFileReader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b9585ffc9d454e4a' or one of its dependencies.

When I look in BizTalkDeploymentFramework.targets I see that the task DeployDependsOn has the DeploySSO task before the task DeploySharedAssemblies which has the command:

Which is what is needed to run the DeploySSO task.

I have tested this with a blank BTS project to make sure that it wasn't to do with my actual code. to test, unGac the DLL with :

gacutil /u SSOSettingsFileReader Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.33440 Copyright (c) Microsoft Corporation. All rights reserved.

Assembly: SSOSettingsFileReader, Version=1.0.0.0, Culture=neutral, PublicKeyToke n=b9585ffc9d454e4a, processorArchitecture=MSIL Uninstalled: SSOSettingsFileReader, Version=1.0.0.0, Culture=neutral, PublicKeyT oken=b9585ffc9d454e4a, processorArchitecture=MSIL Number of assemblies uninstalled = 1 Number of failures = 0

Then run the BTDF deployment...on a new machine with no BTDF installed - this is the standard state. I always get the above error.

If I manually Gac the file and re-run the deployment then it works fine. Likewise if there is a deployment with no SSO (False) then it works and Gacs the file so subsequence BTDF deployments work fine.

This work item was migrated from CodePlex

CodePlex work item ID: '11074' Assigned to: 'tfabraham' Vote count: '1'

tfabraham commented 6 years ago

[DaveComfort@6/7/2016] This occurs when deploying to a server that has not been deployed to before (the SSOSettingsFileReader is not in the GAC). I moved the DeploySSO task immediately after the DeploySharedAssemblies task in DeployDependsOn and the problem went away.

tfabraham commented 6 years ago

[tfabraham@6/8/2016] Thanks Dave. That's correct. It was in the proper order in v5.5, and it's in the correct order in v6.0 beta, but is incorrect in v5.6. It will require a patch release.

tfabraham commented 6 years ago

[UnknownUser@6/8/2016]

tfabraham commented 6 years ago

[UnknownUser@2/5/2017]

tfabraham commented 6 years ago

[UnknownUser@2/5/2017] Resolved with changeset 79721.