dotnet / dotnet/aspnetcore

Updating from one version of hosting bundle to next does not work.

Open
#28,537 37 comments 0 reactions 1 assignee Claimed by @joeloff View on GitHub
area-infrastructure feature-installers Needs: Attention :wave:
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

Every single release has been unable to properly update the hosting bundle. After updating, no Core/5 sites function, they return http 500. I have to uninstall the components and reinstall for my sites to function. This has been an ongoing issue but I've bit my teeth and done the process of fixing it with each update and complained in the blog posts(with the 5.0 release, it was suggested I fill this out, since I'd already gone through the process of updating all three of our servers, I couldn't give you a "before" dotnet --info). Now that we're at 5.0 and going to be automatically updated, it absolutely needs to be fixed so Microsoft Update doesn't break our servers.

Before running dotnet-hosting-5.0.1-win.exe on Windows Server 2016 1607 14393.4104

C:\Windows\system32>dotnet --info

Host (useful for support):
Version: 5.0.0
Commit: cf258a14b7

.NET SDKs installed:
No SDKs were found.

.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.0 [C:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.0 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]

Blazor site works as expected.

![HostingBundleUpdate1](https://user-images.githubusercontent.com/15003605/101631623-3e94c600-39ea-11eb-8555-35c62b64f819.png)

After installing, site has a HTTP ERROR 500. IIS indicates site is running. New dotnet --info

Host (useful for support):
Version: 5.0.1
Commit: b02e13abab

.NET SDKs installed:
No SDKs were found.

.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.1 [C:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.1 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]

![HostingBundleUpdate2](https://user-images.githubusercontent.com/15003605/101631587-30df4080-39ea-11eb-8218-ecfe15924977.png)

I try and run a repair, it completes, my site is still dead. Restarting site, restarting IIS, restarting server, nothing fixes it except for uninstalling and reinstalling.

I've only used .NET Core 2.2, 3.0, 3.1, and 5.0 and every single one has done this exact same broken behavior.

Here's dotnet --info AFTER uninstalling the three components and reinstalling the hosting bundle.

Host (useful for support):
Version: 5.0.1
Commit: b02e13abab

.NET SDKs installed:
No SDKs were found.

.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.1 [C:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.1 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]

![HostingBundleUpdate3](https://user-images.githubusercontent.com/15003605/101631552-2329bb00-39ea-11eb-9f4b-9e52cdb547c7.png)

Everything is back up and running.

[EventLogs.zip](https://github.com/dotnet/aspnetcore/files/5665893/EventLogs.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.