Red Gate forums :: View topic - Problems running powershell script on 64 bit machine
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

Problems running powershell script on 64 bit machine

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
mbre



Joined: 06 May 2013
Posts: 5

PostPosted: Mon May 06, 2013 3:01 pm    Post subject: Problems running powershell script on 64 bit machine Reply with quote

Hi again,

I'm trying to create an IIS Application using WebAdministration Module and came to the point that the redgate agent is 32bit and can't install module WebAdministration.


Set-Location : Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed
due to the following error: 80040154.
At line:1 char:3
+ Cd <<<< IIS:\Sites
+ CategoryInfo : NotSpecified: (Smile [Set-Location], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.PowerShell.Commands.SetLocationCom
mand


Is there already any solution for that?

Regards,
Markus
Back to top
View user's profile Send private message
csmith



Joined: 30 Jun 2011
Posts: 117
Location: Cambridge

PostPosted: Tue May 07, 2013 1:54 pm    Post subject: Reply with quote

Hi Markus

There is a previous thread about this subject here: www.red-gate.com/MessageBoard/viewtopic.php?t=16319.

Although it's not ideal, the advice was to use Microsoft.Web.Administration rather than the WebAdministration module (see http://www.mattwrock.com/post/2011/01/04/Nuget-and-Powershell-WebAdministration-Module-Issues.aspx).

However, it may be that the next release of Deployment Manager will remove the need for you to add custom powershell at all because it will include functionality to create IIS applications.

Basically, if the web application does not exist on the Deployment Agent when it's package is deployed, then it will be created in IIS (the web app will default to being on port 80, but this can be overridden with a variable). Does that sound like it will meet your requirement?

This next release should be out in the next week or so and will be announced on this forum.

Best regards,
Chris
_________________
Chris Smith
Project Manager
Deployment Manager
Back to top
View user's profile Send private message
mbre



Joined: 06 May 2013
Posts: 5

PostPosted: Tue May 07, 2013 2:10 pm    Post subject: Reply with quote

Hi Chris,

thanks - I've found a solution using the Microsoft.Web.Administration. It's not as comfortable as WebAdministration module, but I've found a way to handle it.

We need some customization (eg versioning of application path, net.tcp binding, application pool settings...) so I don't think that we can use the default IIS creation of deployment manager.

Regards,
Markus
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group