Failed to install Web Platform Installer with Error Status 1603

The web platform installer has a dependency on IIS so make sure this is installed and enabled. In my case IIS was throwing errors about netfx40_iis_schema_update.xml is not well formed. Since this was just a build box without a dependency on IIS we had no idea this was an issue until trying to run this installer.

Based on this post I was able to get IIS functioning again by running the aspnet_regiis command. With IIS running correctly the web platform installer ran in fine.

C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis.exe /i

Diagnosing this issue was a little difficult due to the general nature of the 1603 status code simply representing any windows installer error. Unfortunately the web platform installer was not logging correctly to the AppData folder but I was able to get a log by manually running msiexec.

msiexec /i WebPlatformInstaller_amd64_en-US.msi /L mylog.txt
The /L command allowed me to specify a log file and the log gave me a little more information about the issue.
CustomAction IISExecuteCA returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 12:03:02: InstallFinalize. Return value 3.
Action 12:03:02: Rollback. Rolling back action:
This was enough to point me in the direction of IIS being the issue and I'll definitely be using msiexec more in the future for installation problems when the eventlog fails to report what I need.

Cannot convert value "ignore" to type "System.Management.Automation.ActionPreference"

Cannot bind parameter 'ErrorAction'. Cannot convert value "ignore" to type "System.Management.Automation.ActionPreference" due to invalid enumeration values. Specify one of the following enumeration values and try again. The possible
enumeration values are "SilentlyContinue, Stop, Continue, Inquire".
    + CategoryInfo          : InvalidArgument: (:) [Stop-Service], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.StopServiceCommand
    + PSComputerName        : asnav-devweb-02
September 2 2013

Empty post links in BlogEngine.NET 2.8

After upgrading to the latest blogengine.net we noticed that the links for posts published after the upgrade were incorrect.

http://sharpfellows.com/post/.aspx

If you too notice this you will also be pleased to know that there is a patch available.

Passing just an array to ArgumentList in Powershell

What is the expected output from this command?

invoke-command -ScriptBlock { param($list) $list | %{ write-host $_ } } -ArgumentList @(@(1,2,3))

I would have expected:

> 1
> 2
> 3

But it seems to be:

> 1

After some experimenting and trying various ways to get this working as expected, I finally resorted to google and found a post on StackOverflow. So the way to do this is by putting a comma in the array to satisfy the parser:

invoke-command -ScriptBlock { param($list) $list | %{ write-host $_ } } -ArgumentList @(,@(1,2,3))

And now I get the output:

> 1
> 2
> 3

I don't think this is intuitive and I hope this will be addressed in the future. At least for now there is a way to do it.

Newer Posts Older Posts