Link to home
Start Free TrialLog in
Avatar of sirbounty
sirbountyFlag for United States of America

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.myHTMLstring)

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
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sirbounty

ASKER