Problems running powershell script on 64 bit machine

Automated deployment for web applications and databases

Problems running powershell script on 64 bit machine

Postby mbre » Mon May 06, 2013 2:01 pm

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: (:) [Set-Location], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.PowerShell.Commands.SetLocationCom

Is there already any solution for that?

Posts: 5
Joined: Mon May 06, 2013 11:23 am

Postby csmith » Tue May 07, 2013 12:54 pm

Hi Markus

There is a previous thread about this subject here:

Although it's not ideal, the advice was to use Microsoft.Web.Administration rather than the WebAdministration module (see ... ssues.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 Smith
Project Manager
SQL Lighthouse
Posts: 120
Joined: Thu Jun 30, 2011 1:15 pm
Location: Cambridge

Postby mbre » Tue May 07, 2013 1:10 pm

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.

Posts: 5
Joined: Mon May 06, 2013 11:23 am

Return to Deployment Manager

Who is online

Users browsing this forum: No registered users and 0 guests