Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

ASP.Net Core & Angular Application Deploy Issues #8526


User avatar
0
SageSpecialSolutions created

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)
  • User Avatar
    0
    SageSpecialSolutions created

    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

  • User Avatar
    0
    BobIngham created

    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.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @SageSpecialSolutions

    I can help you if you haven't solved this problem yet.

    Thanks,

  • User Avatar
    0
    eftimevalerian created

    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.

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    eftimevalerian created

    Hi @ismcagdas Thank you for your guidance.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @eftimevalerian

    You are welcome. Let us know if you face any problem while implementing this.