如何在Visual Studio 2010中使用SSL? [英] How do I use SSL in Visual Studio 2010?

查看:173
本文介绍了如何在Visual Studio 2010中使用SSL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,



我正在MVC 3.0中做一个小项目,我正在尝试在Visual Studio 2010中使用SSL。事情是,当我设置从网站属性启用SSL为true,并设置Web的属性以使用IIS服务器,当我运行时,我的网站配置失败,这给我一个错误。我已经搜索了互联网,看看错误是什么,并尝试了所有可能的解决方案,但它仍然无法正常工作。



有什么帮助吗?我很感激。

Hey guys,

I am doing a small project in MVC 3.0 and am trying to use SSL in Visual Studio 2010. The thing is that when I set the SSL enabled to true from the website properties, and set the properties of the web to use IIS Server, it gives me an error when I run that the configuration for my website has failed. I have searched the internet to see what the error could be and tried every possible solution, yet it still won't work.

Any help please? I appreciate.

推荐答案

如果您使用的是ASP.NET开发Web服务器(IIS的轻量级版本),则无法执行SSL。如果要使用SSL,则需要使用完整版本的IIS。这些链接可以帮助你。



Visual Studio中的Web服务器 [ ^ ]

在Windows 7上安装IIS 7.5 [ ^ ]

使用自签名证书在IIS 7.0上启用SSL [ ^ ]
If you are using the ASP.NET Development Web Server (which is a light weight version of IIS), you cannot do SSL. If you want to use SSL, you need to use the full version of IIS. These links should help you out.

Web Servers in Visual Studio[^]
Installing IIS 7.5 on Windows 7[^]
Enabling SSL on IIS 7.0 Using Self-Signed Certificates[^]


这篇关于如何在Visual Studio 2010中使用SSL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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