Base solution for your next web application
Open Closed

Hosting Application #8500


0
kansoftware created

Can we host Application on port ex. 1001 and web.MVC on port ex. 1002
and web.Host on port ex. 1003

and give reference of application in MVC and Host app ?


3 Answer(s)
  • 0
    ismcagdas created
    Support Team

    Hi @kansoftware

    Yes, you can change the port numbers. You need to change port numbers in;

    • launchSettings.json
    • appsettings.json
    • appconfig.json (only for Angular projects)
  • 0
    kansoftware created

    Hi @ismcagdas

    But how will I give reference of my Application project which is hosted on port 1001 in MVC project hosted on port 1002 ??

  • 0
    ryancyq created
    Support Team

    Hi @kansoftware, it depends on whether both projects are hosted in the same server or hosted separately.

    Normally you only need to reference the hostname binded to the application project in your mvc project.