How To Publish ASP.NET Core Web API to IIS
Why Stack Overflow recommends it
Stack Overflow users link it when answering or following along with questions about deploying an ASP.NET Core Web API to IIS and getting the published site to actually run.
Recommended by 2 people across 2 different months, 2023 to 2024.
What it is
A short screen-recorded tutorial on publishing an ASP.NET Core Web API from Visual Studio 2022 to a local IIS site. It covers creating the project, setting up a new IIS site, publishing, and testing the result. Presented by the IntCoder channel.
What people said
Recommends Bahman · 2023-08 · Stack Overflow · on “Blocked by CORS policy on IIS after publishing - ASP.NET Core Web API is not working”
I finally did it by the manual in this video: [this video] It was not related to Cors or something else, the problem was that backend ASP.NET Core Web API didn't run. And in IIS, in pools, we should set 32-Bit application activation true in the related pool. And for publishing we have to run Visual Studio as Administrator.
Recommends Sahan Rajapaksha · 2024-11 · Stack Overflow · on “How to fix network error in react-native when access localhost API”
1 . First I hosted my api on IIS locally . ( If you having trouble doing it please refer to this tutorial : [this video] ) 2 . Then I commented //app.UseHttpsRedirection(); . This line using http redirection on my API's program.cs . 3 . Use your IP address instead of localhost Instead of this [LINK] , use [LINK] xxxx Hope these will work for you guys .
Cites Legion · 2023-01 · Stack Overflow · on “How do you deploy ASP.NET Core Web API application to a local server?”
The Web API is using .NET 6.0. The "server" is just an old desktop PC running Windows 10 Pro. I'm trying to deploy using the Web Deploy method from Visual Studio 2022. I'm trying to follow this tutorial: [this video] However, the code is being deployed to localhost. The error I get is: Web deployment task failed. (Could not connect to the remote computer ("192.168.1.xxx"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. I've installed Web Deploy 3.6 on the server, however there doesn't seem to be a way to get Web Management Service going. Specifically the Management Service icon does not show up in IIS. From this