- Knowledge base
- powerVault
- Troubleshooting
Failed to find 'Autodesk.Connectivity.WebServices' assembly
Issue
The commandlet
Import-Module powerVault
fails with following exception:
Could not load file or assembly 'Autodesk.Connectivity.WebServices, Culture=neutral, PublicKeyToken=aa20f34aedd220e1' or one of its dependencies. The system cannot find the file specified.
Cause
When using powerVault 19.0.9 (or higher) and calling
Import-Module powerVault
the import fails because the powershell Host, which runs the powershell session does NOT implement or support the Write-Host Commandlet.
Solution 1
The current powershell Host has to implement the Write-Host function.
Solution 2
Overload the function by calling
function Write-Host{}
before calling
Import-Module powerVault