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]

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