Asp.net mvc 3 - does not have an option in the project properties for "SSL Enabled"

I follow the Pluralsight ASP.NET MVC 3 tutorial , module 7 - Security (which, by the way, is a great tutorial). The authorization section on the 6:24 sign shows how to set the project property SSL Enabledto true. My problem is that when I get into project properties, I do not have this option. I only see Always Start When Debugging, Project Fileand Project Folder. Does anyone know why I don’t have the opportunity for SSL Enabledhow I can do this, otherwise I can achieve the same result? I am using Visual Studio 2010 SP1Rel.

In another reading, I saw that the requireSSL="true"tag is specified in the configuration in the Web.config file authentication. Does this do the same as setting SSL Enabled = truein project properties? If not, can someone give a brief explanation of the difference or point me to a good article? Thank.

+5
source share
3 answers

I just realized that this option is available if IIS Express is used in the development environment, but not when using the VS Development Server, which was used by my project. I solved the problem by right-clicking on the project in the Project Explorer window, then selecting "Configure Project for IIS" or something like that. Now an option appears in the properties SSL Enabled.

, - -, .

, , .

[EDIT] - " " ""... "" "", "" "IIS Express".

+7

RequireSSL, ASP.NET, requireSSL .

, asp.net mvc,

:

[RequireHttps]
public ActionResult Login()
{
   return View();
}
+1
+1
source

All Articles