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:
<ItemGroup Condition="'@(AdditionalAssemblies)' == '' and '$(Includelog4net)' == 'false'"><AdditionalAssemblies Include="SSOSettingsFileReader.dll" />
</ItemGroup>
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 (<IncludeSSO>False</IncludeSSO>) then it works and Gacs the file so subsequence BTDF deployments work fine.
Comments: Resolved with changeset 79721.
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:
<ItemGroup Condition="'@(AdditionalAssemblies)' == '' and '$(Includelog4net)' == 'false'"><AdditionalAssemblies Include="SSOSettingsFileReader.dll" />
</ItemGroup>
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 (<IncludeSSO>False</IncludeSSO>) then it works and Gacs the file so subsequence BTDF deployments work fine.
Comments: Resolved with changeset 79721.