HOST file redirection, Https and Ports

I normally don’t write about issues as mostly there is help available on internet but I have to write about this one. It drove me crazy and I would like to save you from going through the pain. The scenario was simple I had an azure application and after establishing STS I was trying to debug using DevFabric. All was good the first day. However I left this task in the middle and got to some other stuff I had to take care of. When I got to this task again the break points were not being hit anymore and the HOST file redirection was not working for SSL requests. I tried whatever I could and then searched internet but to no avail. The problem of SSL requests being blocked on IIS is listed on many blogs and general suggestions are to either check for malware, virus or some corrupt registry entry. After having tried all that with no luck I started playing around with IIS 7.0. I screwed it up completely and figured out that it was actually the Skype installation that had blocked my 443 port and it was causing all the issues. I didn’t figure it out all by myself and in fact there is blog that helped me with this:

http://www.aneef.net/2008/04/25/iis-and-skype-iis-the-process-cannot-access-the-file-because-it-is-being-used-by-another-process-exception-from-hresult-0x80070020/

I am still writing this post just to share the scenario that host file redirection can fail because of the port being blocked. Take away from this post is that incase IIS blocks redirection the first thing to verify is if there is a program blocking the port in question. Anyways after unchecking the below options things worked just fine.

 

image

 

One important point to remember is that Host file redirection is for domain and should work irrespective of SSL channel.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: