RamblingCookieMonster / SecretServer

Secret Server PowerShell Module
MIT License
87 stars 28 forks source link

System.Web.Services.Protocols.SoapHttpClientProtocol Parameter Type issue #1

Closed RamblingCookieMonster closed 9 years ago

RamblingCookieMonster commented 9 years ago

A number of functions include a parameter for WebServiceProxy, with type System.Web.Services.Protocols.SoapHttpClientProtocol.

This type is not loaded out of the gate.

Example symptom: Get-Help Get-Secret get-help : Unable to find type [System.Web.Services.Protocols.SoapHttpClientProtocol]. Make sure that the assembly that contains this type is loaded.

Workaround:

jgigler commented 9 years ago

I'm not sure if this is the solution you're looking for, but in the module manifest SecretServer.psd1, if you specify System.Web.Services.dll in the Required Assemblies definition, I believe this solves your problem. I have no secret server to test with, but it resolves the Example Symptom you posted.

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = @('System.Web.Services.dll')

I submitted a pull request if you'd like to do more thorough testing.

RamblingCookieMonster commented 9 years ago

Nice, thank you for the heads up and help! Tested and merged, works perfectly