I see this EXACT problem from time to time, when using SSL, and have found that (especially when working on someone else’s project in a team environment) the Visual Studio project web settings (SSL ports) sometimes get messed up. Here’s what I do to fix them:
- In Solution Explorer, click your project.
- Hit the F4 key (view properties).
- Copy the URL (NOT the SSL URL).
- Paste the URL into the Project Url on the Web Tab, Save.
- In Solution Explorer, click your project.
- Hit the F4 key (view properties).
- Change SSL Enabled to false.
- Change it back to true. There should be a new SSL URL. Copy it.
- Paste the new SSL URL into Project URL on Web tab. Click Create Virtual Directory.
- Click Override application root URL, and paste in SSL URL. Save.
This always solves the issue for me.