I am getting and Issue to deploy my site on ISS from my Localhost I followed all the steps in your documentation; https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Deployment-Angular-Publish-IIS
I get the Following error and not sure if it is to do with the ports or access or anything that i have missed or is not in your notes.
This site can’t be reached ******** refused to connect.
Any ideas how to problem sovle this issue
7 Answer(s)
-
0
Based on my earlier question, Just an update. After some research and changes I managed to get past the errors. But now when i launch the website i only get swagger insteadd of mywebsite
Still need some asssistance to get to my site and not swagger.
thanks
-
0
Hi @SageSpecialSolutions,
Scroll down the page to: Angular Application Publishing So far, you're on http://localhost:22742 which is the WebAPI. To get to angular you should follow the instructions, run ng serve and you should be on http://localhost:4200 which is the WebUI.
Hope that helps.
-
0
Hi @SageSpecialSolutions
I can help you if you haven't solved this problem yet.
Thanks,
-
0
Hi @ismcagdas
I have a similar issue trying to setup the IIS with the two application (CORE and ANGUlAR) under the same domain name. Are you able to guide me ? I can send you a webex meeting invite to review my configuration. Thank you for your help.
-
0
Hi @eftimevalerian
What we do to host an ASP.NET Core app and an Angular app in same IIS app is, we write a custom middleware for ASP.NET Core and redirect all not-found routes to index.html to view Angular app.
In order to see the related code, you can download ASP.NET Core & Angular (Merged) solution on aspnetzero.com and check Startup.cs of *.Host project.
-
0
Hi @ismcagdas Thank you for your guidance.
-
0
@eftimevalerian
You are welcome. Let us know if you face any problem while implementing this.