sirbounty
asked on
powershell runspace
I have a visual studio project that executes a powershell script.
Within that script, it launches another script that sets up my environment - one portion of that being to read from a configuration xml file.
Within that second script, I decode one setting because it has html characters that don't seem to play nice.
So, I have
[string]$myVar = [system.web.httputility]:: htmldecode ($settings .config.my HTMLstring )
When my vs project launches, it throws an exception as the invoke method stating:
Unable to find type [system.web.httputility]: make sure that the assembly containing this type is loaded.
What can I do to get this working?
Within that script, it launches another script that sets up my environment - one portion of that being to read from a configuration xml file.
Within that second script, I decode one setting because it has html characters that don't seem to play nice.
So, I have
[string]$myVar = [system.web.httputility]::
When my vs project launches, it throws an exception as the invoke method stating:
Unable to find type [system.web.httputility]: make sure that the assembly containing this type is loaded.
What can I do to get this working?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
https://www.experts-exchange.com/questions/28672194/powershell-runspace-part-2.html