Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6324701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:45:15+00:00 2026-05-24T16:45:15+00:00

I have deployed an ASP.NET web application to Azure running in a web role.

  • 0

I have deployed an ASP.NET web application to Azure running in a web role. It is configured with a DNS name like ‘myapp.cloudapp.net’ and SSL (the certificate is self-signed, meaning we get a certificate warning but otherwise this is all set up and works fine)

I want to automagically route requests the come on http to https. So, I added an http endpoint and set up a rewrite rule as per the instructions here (second method):

http://blog.smarx.com/posts/redirecting-to-https-in-windows-azure-two-methods

It doesn’t work properly.

Testing directly on the Azure machine (via remote desktop):

  • Access https://myapp.cloudapp.net – works
  • Access http://myapp.cloudapp.net – “Internet explorer cannot display the webpage”

So I go to IIS and ‘browse’ my site: this takes me there via the IP address:

  • Access https://[ipaddress] – works
  • Access http://[ipaddress] – works! Sends me to https://[ipaddress]

So what am I missing, that this works via IP address but not by host name?

I would like to hit http://myapp.cloudapp.net and be redirected to https://myapp.cloudapp.net.

For the record, here is the relevant parts of my configuration:

<Sites>
  <Site name="Web">
    <Bindings>
      <Binding name="Endpoint1" endpointName="MyApp" />
      <Binding name="Endpoint1" endpointName="MyAppHttp" />
    </Bindings>
  </Site>
</Sites>
<Endpoints>
  <InputEndpoint name="MyApp" protocol="https" port="443" certificate="MYCERT" />
  <InputEndpoint name="MyAppHttp" protocol="http" port="80" />
</Endpoints>
<Certificates>
  <Certificate name="MYCERT" storeLocation="LocalMachine" storeName="My" />
</Certificates>

Can anyone help explain what I might be doing wrong?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:45:16+00:00Added an answer on May 24, 2026 at 4:45 pm

    Not a lot to go on, but one thing that jumps out at me is the ‘name’ of your bindings. Make them different.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a asp.net web application which has a number of versions deployed on
I have an ASP.NET web application that, for whatever reason, when it is deployed
I have a web application developed in ASP.NET 2.0, deployed in a data center.
I have an ASP .net Web Application already deployed on my local machine (virtual
I have an Asp.Net MVC 2 web application deployed on IIS 7.5 on .Net
VS 2008 / ASP.Net I have a deployed a ASP.Net Web Application on Windows
I have an ASP.Net web application that is deployed to a number of different
I have a web application developed in ASP.NET 2.0 ,deployed in a dedicated server.
We have a huge ASP.NET web application which needs to be deployed to LIVE
We have a web application based on asp.net 1.1. We deployed it on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.