Error after we convert the ps1 file to exe

Sep 8, 2011 at 10:07 AM

Hi All

After we convert our script to exe when we run the exe file we are getting the below error. could you please help us to resolve this issue ?

Unhandled Exception: System.TypeLoadException: Could not load type 'System.Manag
ement.Automation.PowerShell' from assembly 'System.Management.Automation, Versio
n=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
   at ik.PowerShell.PS2EXE.Main(String[] args)

Regards

John