How I spent half a day trying to solve SSL connection error (ERR_SSL_PROTOCOL_ERROR)

Hope it helps someone to prevent spending a lot of time trying to solve SSL connection error problem during local site debugging.

My web.config contains rewrite section for https requests:

I tried (but it didn’t work):

  • Check localhost ssl certificate
  • Removing rewrite section
  • Clearing rules section after all existing rules
  • Removing localhost from chrome://net-internals/#hsts
  • Change web site port
  • Repairing IIS Express and Visual Studio

The solution was:

  • Just clear cache of your browser (CTRL + R didn’t help)
  • Delete applicationhosts.config in solution folder (.vs/config)

 

Leave a Reply

Your email address will not be published. Required fields are marked *