This issue only affects users of Windows Server 2008 R2. One of the pre-reqs for installing Role Centers and Enterprise Portal and/or Reporting Extensions or Workflows is that you must have IIS installed locally on the server.
 
If this is not installed and/or is partially installed with some required IIS Role Services missing then during AX Setup, you will get prompted to install IIS Components as a pre-req.
 
Clicking on the button to install the pre-reqs, fires of a command that uses the servermanagercmd.exe on a Windows Server 2008 and above to install the IIS components. It uses the ServerManagerCmdInputIIS.xml file as the input file to the servermanagercmd command.
 
This works fine on a Windows Server 2008 system, and it will install the IIS components successfully (assuming you had the proper rights and priviledges), however it fails to install the components on a Windows Server 2008 R2. See the attached IISComponentsInstallationError.PNG file for the error that is displayed
 
Furthermore, the following error is logged in the IISInstall.Log file that is generated where the DynamicsSetupLog file is created:
 
[ServerManagerCmd] Error (Id=0) ArgumentNotValid: Feature not valid: 'NET-XPS-Viewer'. The name of the feature was not found.
 
The issue ocurs because within the ServerManagerCmdInputIIS.xml file there is a feature listed for installation called "NET-XPS-Viewer", this feature name has now changed to "XPS-Viewer" on Windows Server 2008 R2, and hence it fails to find the feature and installation aborts.
 
 
To workaround the issue, browse to the folder where the AX 2009 setup files are copied to, then, edit the ServerManagerCmdInputIIS.xml file (which is located in the support folder) in notepad, and change the following line
 
  from:
<Feature Id="NET-XPS-Viewer" />
  to:
<Feature Id="XPS-Viewer" />
 
 
Save the file and you should now be able to re-run AX 2009 setup, and install the IIS components during the pre-req installation phase.
 
Further Information:
 
You can also copy and run the following command between the quotes, in an elevated command prompt on Windows Server 2008 R2, to install all the IIS components that are required, prior to running the AX 2009 setup to achieve the same result:
 
"ServermanagerCMD -install Web-Static-Content Web-Default-Doc Web-Dir-Browsing Web-Http-Errors Web-Asp-Net Web-Net-Ext Web-ISAPI-Ext Web-ISAPI-Filter Web-Http-Logging Web-Request-Monitor Web-Filtering Web-Stat-Compression Web-Mgmt-Console Web-Metabase Web-WMI Web-Lgcy-Scripting Web-Lgcy-Mgmt-Console Web-Windows-Auth NET-Framework-Core XPS-Viewer RSAT-Web-Server WAS-Process-Model WAS-NET-Environment WAS-Config-APIs -logPath %TEMP%\IISInstall.log"
 
 
NOTE: The above command should be one single command without any carriage returns or line feeds. Check the log file in IISInstall.log for the installation status.

 

--author: Anup Shah
--editor: Anup Shah
--date: 11/Jan/2010