3

I used the publish feature of Visual Studio to publish my project in a folder. After that I added a Website to IIS on my web server and bound it to the folder where I put all the generated files.

The publish folder looks like this:

Publish folder

The IIS structure looks like this:

IIS

When I start the website, it just loads and loads without achieving any result.

1
  • Open Network tab of your browser's developer tools, and see what requests/responses are. Commented Jan 30, 2022 at 18:13

2 Answers 2

2

you could follow the below steps to deploy the angular asp.net core app to the iis:

  1. Download and Install asp.net core 6 runtimes and hosting bundles

https://dotnet.microsoft.com/en-us/download/dotnet/6.0

enter image description here

  1. Open the project in a visual studio.

  2. Right-click on the project and choose publish:

enter image description here

  1. In target select folder option:

enter image description here

  1. Set the folder path where you want to publish the site.-> click Finish

  2. Now open iis click on the server name and select add website

  3. While adding a website give any name, select your publish folder and set the port number -> click ok

enter image description here

  1. To browse the site select site name and click browse from the action pane.
Sign up to request clarification or add additional context in comments.

2 Comments

Has anyone updated these instructions for ASP.NET Core 8.0? It introduces a whole bunch of new configurations and folder structures (i.e. "browser") and no longer the "ClientApp" folder, but a ... .Server and ... .Client folder and projects (*.csproj & *.esproj).
@PapaStahl - Yes, also make sure to install the Hosting bundle from here: learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/…
0

As Lex said, you should check the browser's develop tool to see what the server replied.

And also I suggest you could try to open the browser to type in the https://youriissitedomain:port/api/controllername to call your web api to see what server has returned to make sure your asp.net core server-side has works or not.

If it doesn't work, I suggest you could firstly check you have install the right .net core runtime for your server from this article.

Then I suggest you could make sure your IIS web site's application pool has the right permission to access the folder. For more details about how to check ,you could refer to this answer.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.