asp.net MVC 3 - 不必在项目属性&QUOT选项,启用SSL" [英] asp.net mvc 3 - don't have option in project properties for "SSL Enabled"

查看:508
本文介绍了asp.net MVC 3 - 不必在项目属性&QUOT选项,启用SSL"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继Pluralsight ASP.NET MVC 3 教程,模块7 - 安全(其中,顺便说一句,是一个伟大的教程)。在授权部分,在6:24标记,显示了如何设置的项目属性启用SSL 真正。我的问题是,当我进入项目属性,我没有这样的选择。我只看到始终启动调试时项目文件项目文件夹。有谁知道为什么我没有为选项启用SSL ,我怎么会让它出现,或以不同的方式,我可以达到同样的效果?我使用Visual Studio 2010 SP1Rel。

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.

在其他阅读,我看到了关于成才在Web.config文件中的设置 requireSSL =真正的身份验证下标记。这是否做同样的事情,在设置项目属性启用=真 SSL?如果没有,任何人都可以给差的简要解释或指向我一个很好的文章?谢谢你。

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.

推荐答案

我只是想通了,此选项可用,如果在开发环境中使用IIS防爆preSS,但如果使用VS开发服务器,并非我的项目使用。我通过在项目资源管理器窗口中的项目上右击解决我的问题,然后选择配置项目IIS或诸如此类的话。现在已启用 SSL 选项的属性显示出来。

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 Enabled shows up in the properties.

另外,<一个href=\"http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISEx$p$pss.aspx\">this是网页,帮助我找出我的问题。

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.

这篇关于asp.net MVC 3 - 不必在项目属性&QUOT选项,启用SSL&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆