ASPNETCoreModule not installed with .NET Core SDK

前端 未结 4 1784
小蘑菇
小蘑菇 2021-02-19 01:31

I installed VS 2017 along with .NET Core SDK on Windows 10. But it did not install ASPNETCoreModule as shown in figure 2 below. I thought

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-19 02:00

    First, you need to check your IIS configurations, in case Shared configuration is configured in your IIS then normal installation of dotnet hosting bundle package wont work, to make it work you need to install bundle package by command line with the argument as below:

    dotnet-hosting-{VERSION}.exe OPT_NO_SHARED_CONFIG_CHECK=1
    

    you can refer ASP.NET Core Module with an IIS Shared Configuration

    This solution work for me because we are using the shared configuration in IIS

提交回复
热议问题