Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import-module 3.2.0.50049 fails with error on System.ServiceModel.Primitives in Azure #353

Open
HCondrejploteny opened this issue Feb 8, 2024 · 0 comments

Comments

@HCondrejploteny
Copy link

Hello all,
I am using Azure Functions with managedDependency setup in requirements.psd1 to use specific PS module versions.
It was working properly, when I configured required module to be 'SwisPowerShell' = '3.1.0.343'. All the module commands worked properly in scripts behind for months.
But as soon as I recently updated the version to be 'SwisPowerShell' = '3.2.0.50049', the PS scripts fail to import-module with error:

{Could not load file or assembly 'System.ServiceModel.Primitives, Version=4.10.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Could not find or load a specific file. (0x80131621)}

I returned back the previous version 3.1.0.343 and scripts are working properly again.

What was changed in latest release, that the import-module in Azure environment no longer works?
Do you have any suggestions how to fix the error?

Thank you

Note: Azure Functions run on Windows OS, PowerShell Core Version 7.2, 64bit, runtime version ~4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant