locked
Deploying Local MVC App to AzureWebSites.net.... error https://localhost:44392 RRS feed

  • Question

  • User1416480938 posted

    I have an application that is running fine locally. When I deploy this a azurewebsites.net site IT says it built and published successfully. When the application starts I get and error

    Cant reach this page

    https://localhost:44392

    What am I missing here?

    Friday, March 16, 2018 6:43 PM

All replies

  • User283571144 posted

    Hi 1StormChaser43,

    According to your description, I guess you have deploy the application to azure web app.

    As far s I know, each azure web app has its own url.

    Like this:

    https://{azure web app name}.azurewebsites.net/

    Example:

    https://brandotesttypescript.azurewebsites.net/

    After deployed the web application to azure web app, you should access your web app with the azure web app url.

    https://{azure web app name}.azurewebsites.net/

    Best Regards,

    Brando

    Monday, March 19, 2018 3:12 AM
  • User1416480938 posted

    Is there changes in a Web-config I need to change someone for my deploy to launch my site  of  mysite.azurewebsites.com  ???? I cant seem to find where the local   https://localhost:44392 is coming from.....

    Thursday, March 22, 2018 1:01 PM
  • User283571144 posted

    Hi 1StormChaser43,

    As far as I know, https://localhost:44392 means the local IIS url address.

    You could only access this url in your local side.

    In computer networking, localhost is a hostname that means this computer. It is used to access the network services that are running on the host via the loopback network interface. Using the loopback interface bypasses any local network interface hardware.

    The local loopback mechanism may be used to run a network service on a host without requiring a physical network interface, or without making the service accessible from the networks the computer may be connected to. For example, a locally installed website may be accessed from a web browser by the URL http://localhost to display its home page.

    If you deploy the application to the azure app service, you need use another url to access your web application.

    Besides, you don't need change any web config when deploying the application.

    Web.config is the main settings and configuration file for web application. It is an XML document that resides in the root directory of the site or application and contains data about how the web application will act. This information controls module loading, security configuration, session state configuration, and application language and compilation settings. Web.config files can also contain application specific items such as database connection strings.

    Best Regards,

    Brando

    Friday, March 23, 2018 1:39 AM
  • User1416480938 posted

    Thanks for reply.

    I have a website at mysite.azurewebsites.net and this is what I use to deploy to from Visual Studio. The deploy all works well but when the app runs from this URL that is where I get the  https://localhost:44392 error. I understand that is what IIS uses to run locally but something in my settings must still be hanging around after my deploy to still look locally..... I haven't been able to find where this is...... 

    Help Appreciated.....

    Friday, March 23, 2018 12:43 PM
  • User283571144 posted

    Hi 1StormChaser43,

    Could you please post the detail error message?

    Does your application call some resources with the url localhost?

    If you could post more details information, it will be more easily for us to find the reason.

    Best Regards,

    Brando

    Sunday, March 25, 2018 1:48 AM
  • User1416480938 posted

    I have app then runs fine locally. I go thru the publish process in Visual Studio and app deploys successfully. when the app starts it is looking for local host above instead of launching mywebsite.azurewebsites.net . What is going on here?

    Sunday, March 25, 2018 5:56 PM
  • User283571144 posted

    Hi 1StormChaser43,

    I still couldn't understand your issue now.

    Could you please tell me the result of  accessing mywebsite.azurewebsites.net?

    Do you mean access the mywebsite.azurewebsites.net it will auto redirect to the localhost?

    I suggest you could use F12 develop tool's to check the network when accessing the mywebsite.azurewebsites.net.

    If you could post more details information, it will be more easily for us to understand your question.

    Best Regards,

    Brando

    Monday, March 26, 2018 1:57 AM
  • User1416480938 posted

    This ended up being a deployment issue with Visual Studio. Needed to recreate project and all worked. Root cause unexplained....

    Tuesday, April 17, 2018 12:57 PM