PDA

View Full Version : Cannot create app pool in Server 2008 R2



demjohn
09-11-2014, 03:13 PM
I built an install package that creates a web app with app pool. If I run the install on Windows Server 2012, it completes without any problems. If I run it on Windows Server 2008 R2, it fails when creating the AppPool.

Below is the relevant section of the msi log.



Action 15:52:32: ISIISInstall.
MSI (s) (58:AC) [15:52:32:477]: Executing op: CustomActionSchedule(Action=ISIISInstall,ActionType=3073,Source=BinaryData,Target=ISIISInstall,CustomActionData=C:\Users\demenyjo\AppData\Local\Temp\IIS7739.tmp)
MSI (s) (58:98) [15:52:32:482]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI794B.tmp, Entrypoint: ISIISInstall
MSI (s) (58:14) [15:52:32:482]: Generating random cookie.
MSI (s) (58:14) [15:52:32:485]: Created Custom Action Server with PID 4248 (0x1098).
MSI (s) (58:80) [15:52:32:549]: Running as a service.
MSI (s) (58:80) [15:52:32:552]: Hello, I'm your 32bit Elevated custom action server.
InstallShield 15:52:32: User legacy object preference is the following: . This is based on the value of the following property: IISPREFERLEGACYOBJECTS
InstallShield 15:52:32: InitIISObject
InstallShield 15:52:32: Legacy objects are supported
Action 15:52:32: Progress Custom Action.
Action 15:52:32: Progress Custom Action. Creating application pool MyAppPool
InstallShield 15:52:32: CreateAppPoolFunction
InstallShield 15:52:32: GetAdminSection for section 'system.applicationHost/applicationPools' and path 'MACHINE/WEBROOT/APPHOST' and commitpath 'MACHINE/WEBROOT/APPHOST'.
InstallShield 15:52:32: GetAdminSection returned: -2147024846
InstallShield 15:52:32: Error: already using the main configuration file.
InstallShield 15:52:32: Parent element is NULL while searching collection
InstallShield 15:52:32: AppPool does not exist, attempt to create it.
InstallShield 15:52:32: GetAdminSection for section 'system.applicationHost/applicationPools' and path 'MACHINE/WEBROOT/APPHOST' and commitpath 'MACHINE/WEBROOT/APPHOST'.
InstallShield 15:52:32: GetAdminSection returned: -2147024846
InstallShield 15:52:32: Error: already using the main configuration file.
InstallShield 15:52:32: Element is NULL. Can't get collection
InstallShield 15:52:32: Collection is NULL. CreateNewElement failed for: add
InstallShield 15:52:32: PutPropertyValue: sProperty name sValue MyAppPool bIsPath 0
InstallShield 15:52:32: PutPropertyCommon: sProperty name sValue MyAppPool bIsPath 0
InstallShield 15:52:32: Element is NULL while looking for the following property: name
InstallShield 15:52:32: PutPropertyCommon: no property returned for name, don't try to set it now
InstallShield 15:52:32: spCollection NULL in CIisFunctionsVista::AddElement.
InstallShield 15:52:32: pElement NULL in CIisFunctionsVista::AddElement
CustomAction ISIISInstall returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 15:52:32: InstallFinalize. Return value 3.