How do I configure a .net core API to work in IIS?

后端 未结 2 1760
抹茶落季
抹茶落季 2020-11-28 16:14

I\'ve got a .net core API created in Visual Studio 2017 that\'s working fine. When I go to deploy it I get error message HTTP Error 500.19 with error code 0x8007000d. I\'v

2条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 16:57

    You would need the hosting bundle to be installed on IIS

    https://dotnet.microsoft.com/download/dotnet-core

    Steps :

    1. click the preferred version
    2. Search for 'Hosting Bundle' word (should be on the right side)
    3. Install the same
    4. re-start IIS. And validate your site and see the magic

    Why Hosting bundle is needed? Check following article https://dotnetcoretutorials.com/2019/12/23/hosting-an-asp-net-core-web-application-in-iis/

    How to check if hosting is installed? How to determine if asp.net core has been installed on a windows server

提交回复
热议问题