Page 1 of 3

Powershell cannot be instantiated

Posted: Mon Nov 21, 2011 3:44 am
by boyddt_co
I've got a very simple powershell form that runs within PrimalForm 2009. When I package it though it throws the errror "powershell cannot be instantiated". I am adding quest.activeroles.admanagement and I'm not sure if I need to do something special for that.Any ideas?David

Powershell cannot be instantiated

Posted: Mon Nov 21, 2011 4:04 am
by davidc
Where ever you run the packaged exe, it must have PowerShellv2 installed. Are you running the packaged exe on the same machine you have PrimalForms 2009 installed? As for snapins you just have to make sure they are installed on the target machine. David

Powershell cannot be instantiated

Posted: Mon Nov 21, 2011 4:07 am
by boyddt_co
I'm running the executable from the same machine that I'm coding on.

Powershell cannot be instantiated

Posted: Mon Nov 21, 2011 4:23 am
by davidc
What version of PrimalForms 2009 do you have installed and what OS are you running? Also include the version of PowerShell you have installed. David
davidc2011-11-21 12:53:59

Powershell cannot be instantiated

Posted: Mon Nov 21, 2011 4:47 am
by davidc
Also please list the settings you are using to create the Packager: 32Bit or 64Bit etc. David

Powershell cannot be instantiated

Posted: Mon Nov 21, 2011 5:12 am
by boyddt_co
PrimalForms 2009 v1.1.17.0Windows Server 2008 R2 StandardPowershellMajor Minor Build Revision----- ----- ----- --------2 0 -1 -1Platform: WIN32 WindowsI've tried Run in STA Mode also

Powershell cannot be instantiated

Posted: Mon Nov 21, 2011 5:15 am
by davidc
Try creating the Packager in 64Bit and see if it makes any difference. David

Powershell cannot be instantiated

Posted: Mon Nov 21, 2011 6:34 am
by boyddt_co
Done, same error.

Powershell cannot be instantiated

Posted: Mon Nov 21, 2011 8:21 am
by davidc
Zip the form file and the packaged exe to support@sapien.com and we will take a look at it. I also recommend testing the packager on another machine that has PowerShell v2 installed. David

Powershell cannot be instantiated

Posted: Mon Nov 28, 2011 4:15 am
by boyddt_co
David, I packaged the form on my production computer with the same results. Tried this that and other things and found out that if I remove the "Impersonate specified user" setting it would then run.Any thoughts?