[wix-users] ASPNET registration using WixIIsExtension

John Cooper JoCooper at jackhenry.com
Wed Oct 19 10:13:22 PDT 2016


We have a LaunchCondition based on a property set in a RegistrySearch.  If ASP.NET is not registered, the install blocks.

In general, we perform registration as a pre-install step.

--
John Merryweather Cooper
Senior Software Engineer -- Integration Development Group -- Enterprise Notification Service
Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Office:  913-341-3434x431050
JoCooper at jackhenry.com





-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: Wednesday, October 19, 2016 11:43 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Fw: ASPNET registration using WixIIsExtension

The e-mail below is from an external source.  Please do not open attachments or click links from an unknown or suspicious origin.

Is shelling out to aspnet_regiis -i the only option to resolving the following problem (where a web app compiled to NetFx452 is not running on ASPNET v4 Integrated app pool).  I have been trying to find a way to solve these problems using WixIIsExtenstion or using Microsoft.Web.administration


Any suggestions appreciated!

Phill


________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Phill Hogland <phill.hogland at rimage.com>
Sent: Tuesday, October 18, 2016 11:26 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] ASPNET registration using WixIIsExtension

I have a setup which installs IIS 7.5 (or later) and then creates a Managed Integrated App pool, web site and web application.  We target Windows 7/WS2008R2 where ASPNET 4 is installed with IIS (and the related dependencies) and on Win 8 through Win 10/WS2012 ASPNET 45 (or later is installed, with dependencies).


On Win 8 through Win 10, generally all is well, but on Win 7 I get the following error.

HTTP Error 500.21 - Internal Server Error Handler "WebServiceHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list.


I saw blogs which implied that I needed to add WebApplicationExtensions, so I added them resulting in MSI Custom Handlers being created for various aspx and related extensions.  (I did not have to do anything like this previously when the same web application was installed using a non-msi based setup process.)  My testing indicated that the site was installed correctly, however at a later point after many changes to the application, and with the report that some dialog buttons and links no longer work, the developer feels the Custom Handlers are the problem and he modified the web.config to remove them.  He wants me to implement calling aspnet_regiis -us and then aspnet_regiis -i  I am very reluctant to go down that path.


What is the correct way to 'register' aspnet (if that is really the issue) in a Wix based bundle/msi without writing a custom action to shell launching aspnet_regiis.exe?  Or are there any other suggestions on how to research/resolve these issues.


I currently have:

 <iis:WebServiceExtension Id="ExtensionASPNET4" Group="ASP.NET v4" Allow="yes" File="[ASPNETISAPIDLL]" Description="ASP.NET4"/>


        <iis:WebAppPool Id="myappPool" Name="mysite" Identity="applicationPoolIdentity" IdleTimeout="20" ManagedRuntimeVersion="v4.0" ManagedPipelineMode="Integrated" MaxWorkerProcesses="1" RecycleMinutes="1740" CpuAction="none" QueueLimit="4000" />


        <iis:WebSite Id="mysiteASPNET" Description="my site" Directory="myDir" AutoStart="yes" ConfigureIfExists="yes" SiteId="*" StartOnInstall="yes" WebApplication="MY_ASPNET" DirProperties="mydirProps" >
          <iis:WebAddress Id="myAddressASPNET" Port="80" Secure="no" />
        </iis:WebSite>
        <iis:WebVirtualDir Id="myvDirASPNET" WebSite="mysiteASPNET" Alias="my site" Directory="myDir" DirProperties="mydirProps" WebApplication="MY_ASPNET" />



Thanks;

Phill


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/ WiX Support | WiX Experts and Resources from FireGiant<http://www.firegiant.com/>
www.firegiant.com
WiX Support | Installation, Development, Deployment | WiX Experts and Resources from FireGiant




____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

NOTICE: This electronic mail message and any files transmitted with it are intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.



More information about the wix-users mailing list