One of the requirements for the installation of the SCOM web console is the installation of Microsoft ASP.NET 2.0 AJAX Extensions 1.0. Recently, I the installation failed with the error:
Microsoft ASP.NET 2.0 AJAX Extensions 1.0 Setup Wizard ended prematurely because of an error. Your system has not been modified. To install this program at a later time, run the Setup Wizard again.
To know what went wrong, I executed the following command to try to install it again, but from a command prompt with administrative privileges:
ASPAJAXExtSetup.msi INSTALLDIR=c:\AJAX ALLUSERS=2 /l c:\ajax\log.txt
After trying to install again, I searched through the installation log and found the following information:
ExecNetFx: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. (Exception from HRESULT: 0x80070422)
ExecNetFx: Error 0x8007006d: failed to allocate output string
ExecNetFx: Error 0xffffffff: Command line returned an error.
ExecNetFx: Error 0xffffffff: failed to execute Ngen command: C:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen.exe update /queue
CustomAction NetFxExecuteNativeImageCommitInstall returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
So what is the issue? The Microsoft .NET Framework NGEN v2.0.50727 services are needed by the installer but are disabled by default. They need to be started by .NET installers. To solve this, change the startup type of both services Microsoft .NET Framework NGEN v2.0.50727_X86 and Microsoft .NET Framework NGEN v2.0.50727_X64 to manual and re-install the application, which now runs fine!