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:

The IIS structure looks like this:

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 
Open the project in a visual studio.
Right-click on the project and choose publish:
- In target select folder option:
Set the folder path where you want to publish the site.-> click Finish
Now open iis click on the server name and select add website
While adding a website give any name, select your publish folder and set the port number -> click ok
- To browse the site select site name and click browse from the action pane.



