Skip to content

ASP.Net Hosting Bundle Installer Has Issues In Some Situations #42764

@Ni2Be

Description

@Ni2Be

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The ASP.Net Hosting Bundle installer fails if a ASP.Net Runtime (the x64 installer) already exists on the system in a higher version.

Reproduce:

  1. Install ASP.Net x64 installer v6.0.7 (https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
  2. Install ASP.Net Hosting Bundle installer v6.0.3

We are shipping the Hosting Bundle with our own installer. That installer must be installable on devices not connected to the web.
The only option we have at the moment is to first uninstall the higher version of ASP.Net and then install the lower version of Hosting Bundle - that is of course not optimal.

I already tried executing the Hosting Bundle installer with some options of: https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/host-and-deploy/iis/hosting-bundle.md
but it just leads to making the installation work but then the installed ASP version is broken.

(Issue may be related to: #33819)

Another issue is already documented in https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/host-and-deploy/iis/hosting-bundle.md
"If the Hosting Bundle is installed before IIS, the bundle installation must be repaired. Run the Hosting Bundle installer again after installing IIS."

That is also a problem because we offer Addons that will install IIS but use .Net Framework themself. So it would be very confusing to just ship the Hosting Bundle with them just to run the repair setup if needed.

Why exactly is this repair needed? We did some testing and it seems to work for our use-cases, is this still an issue?

Expected Behavior

Hosting Bundle should install normally even if a higher version of ASP.Net Runtime is already installed.
Hosting Bundle should not need to be repaired if it was installed before IIS.

Steps To Reproduce

  1. Install ASP.Net x64 installer v6.0.7 (https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
  2. Install ASP.Net Hosting Bundle installer v6.0.3

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsbugThis issue describes a behavior which is not expected - a bug.feature-installersIncludes: Installers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions