dotnet / dotnet/cli-lab

IIS authentication fails after uninstall .NET 3.0 / 5.0

Open
#241 1 comment 3 reactions 0 assignees View on GitHub
Area-Uninstall-Tool
Dominant language
C#
Stars
774
Forks
72
Avg merge
1d 23h
Merged PRs (30d)
2

Description

After uninstalling all .NET version beside .NET 3.1 and .NET 6 the authentication fails on IIS. The commands for removing the installed .NET versions;

```
dotnet-core-uninstall.exe remove --aspnet-runtime --all-below 3.1.0
dotnet-core-uninstall.exe remove --aspnet-runtime 5.0.0
dotnet-core-uninstall.exe remove --runtime --all-below 3.1.0
dotnet-core-uninstall.exe remove --runtime 5.0.0
dotnet-core-uninstall.exe remove --sdk --all-below 3.1.0
dotnet-core-uninstall.exe remove --sdk 5.0.0
dotnet-core-uninstall.exe remove --hosting-bundle --all-below 3.1.0
dotnet-core-uninstall.exe remove --hosting-bundle 5.0.0
```

After removing these .NET version, the following error occur in IIS.

Opning IIS and try to open "Authentication";

![auth](https://user-images.githubusercontent.com/887077/196157044-04fe7d00-6875-4b30-83a6-081f4a0cb72c.PNG)

IIS cant retrieve authentication state;

![auth - state](https://user-images.githubusercontent.com/887077/196157103-95208bce-c06e-439e-b2b1-88474179371f.PNG)

The solution was to run the .NET 6.0 Hosting Bundle and "repair". Dont know if relevant but, after the repair there was one change in `applicationHost.config`
![iis](https://user-images.githubusercontent.com/887077/196157347-72acf431-e150-4368-8d57-abdc4811f6bf.PNG)

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.