I’m following the Pluralsight ASP.NET MVC 3 tutorial, module 7 – Security (which, by the way, is a great tutorial). In the Authorization section, at the 6:24 mark, it shows how to set the project property of SSL Enabled to true. My problem is, when I get into the project properties, I do not have that option. I only see Always Start When Debugging, Project File, and Project Folder. Does anyone know why I don’t have the option for SSL Enabled, how I could make it appear, or a different way I can achieve the same result? I’m using Visual Studio 2010 SP1Rel.
In other reading, I saw someting about the setting requireSSL="true" in the Web.config file, under the authentication tag. Does this do the same thing as setting SSL Enabled = true under project properties? If not, could anyone give a brief explanation of the difference or point me to a good article? Thanks.
I just figured out that this option is available if using IIS Express in the development environment, but not if using the VS Development Server, which my project was using. I solved my problem by right-clicking on the project in the Project Explorer window, then selecting “Configure Project for IIS” or something to that effect. Now the option for
SSL Enabledshows up in the properties.By the way, this is the web page that helped me figure out my problem.
Also, even though I figured out my primary question, I’d still be interested in any comments regarding my secondary question.
[EDIT] The shortcut to setting this is to right click on your project name in “Solution Explorer” and click Properties…In the Properties window, click on the “Web” tab, and then under “Servers” change the dropdown box to “IIS Express”.