Skip to content

ANCM installers should restart IIS #3847

Closed
@mikeharder

Description

@mikeharder

The ANCM installers (either the MSIs or the Hosting Bundle) should restart IIS to ensure IIS+ANCM will work correctly. Our docs currently recommend this as a manual step users must run:

Restart the system or execute net stop was /y followed by net start w3svc from a command prompt. Restarting IIS picks up a change to the system PATH, which is an environment variable, made by the installer.
https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.1&tabs=aspnetcore2x#install-the-net-core-hosting-bundle

If IIS is not restarted after installing the Hosting Bundle, .NET Core sites will fail to start with the following event log (80070002 is file not found):

Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE' with physical root 'C:\inetpub\wwwroot\'
failed to start process with commandline 'dotnet .\app.dll', ErrorCode = '0x80070002 : 0.

This is a poor first-time experience if users forget to restart IIS, so I think our installers should do it automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-iisIncludes: IIS, ANCM

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions