Home > Enterprise >  How to deploy an ASP.NET Core 6 application with Angular 12 on IIS
How to deploy an ASP.NET Core 6 application with Angular 12 on IIS

Time:02-01

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.

CodePudding user response:

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 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.
  •  Tags:  
  • Related