dotnet / dotnet/aspnetcore

[WindowsServer 2022] https://aka.ms/dotnetcore-6-0-windowshosting fails to register AspNetCoreModuleV2 under IIS

Open
#47,791 13 comments 0 reactions 0 assignees View on GitHub
area-infrastructure bug External feature-installers
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

**Prerq:**
- Crete Windows Server 2022 VM (/MicrosoftWindowsServer/WindowsServer/2022-Datacenter/latest")
- add IIS role and restart (net stop was /y; net start w3svc)
- install windows-vcredist-x64, windows-vcredist-x86

**Install Dotnethosting:**
- Download
https://aka.ms/dotnetcore-6-0-windowshosting
- Install dotnet-hosting-6.0.*-win.exe
restart IIS (net stop was /y; net start w3svc)

**Expected:**
> c:\Windows\system32\inetsrv\appcmd.exe list module
should list **MODULE "AspNetCoreModuleV2" ( native, preCondition: )**
however its missing, also no log files %Temp%\dd_dd*AspNetCoreModuleV2*.log present

**Workaround**, rerun installer with /repair option
dotnet-hosting-6.0.*-win.exe /q /norestart /repair
restart IIS (net stop was /y; net start w3svc)
>c:\\Windows\\system32\\inetsrv\\appcmd.exe list module"
MODULE "AspNetCoreModuleV2" ( native, preCondition: )
AspNetCoreModuleV2 is deployed
and logs %Temp%\dd_dd*AspNetCoreModuleV2*.log are present

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.