Visual Studio, SSL and projects

Spent a while trying to get sub-projects opening within Visual Studio today where the root project has SSL security setup. Every time VS tried to open the sub-projects it would error with the message “Secure channel failed”.

Figured it out eventually – you need to add a location element to the web.config for the get_aspx_ver.aspx to allow anonymous access in the sub-projects.

E.g. your webroot is ~/ and you have the authorization element set to deny anonymous users:

[xml]

[/xml]

Then your subproject is within the folder ~/ProjectA. When you open ProjectA .NET will redirect to the login page for the web root. If that login page is under SSL, then VS.NET will fail. So add this to your web.config:

[xml]

[/xml]