during our development of ASP.Net Web API on visual studio. there is an embedded IIS express with visual studio.
if we want to host the web api in our local IIS. we can follow these steps.
- create a publish provide to publish the output to local folder.
- setup a web API or website in IIS with physical path pointing to the local folder.
- install asp.net dotcore windows hosting bundle. i provide the link for .Net core 3.1.16 which support
- .net core 3.1
- https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-aspnetcore-3.1.16-windows-hosting-bundle-installer
- 4. add IIS_IUSERS to read access permission to host folder and web.config file.
finally my web api application that hosted on IIS is up and running
No comments:
Post a Comment