在 Visual Studio 中启用 SSL [英] Enable SSL in Visual Studio

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

问题描述

我在 Visual Studio 中启用了 SSL,如下所示:

I have enabled SSL in Visual Studio as shown below:

我还设置了以下内容:

当我通过 IE(通过 Visual Studio 调试)访问网站时,我看到:

When I access the website via IE (via Visual Studio debugging) I see this:

当我通过 Firefox(通过 Visual Studio 调试)访问网站时,我看到:

When I access the website via Firefox (via Visual Studio debugging) I see this:

在 Firefox 或 IE 中没有进入网站的选项.我花了一整天的时间试图了解出了什么问题.我做错了什么?

There is no option to progress to the website in either Firefox or IE. I have spent all day trying to understand what is wrong. What am I doing wrong?

推荐答案

我在使用 SSL 时不时看到这个 EXACT 问题,并且发现(尤其是在团队环境中处理其他人的项目时)VisualStudio 项目网络设置(SSL 端口)有时会混乱.这是我修复它们的方法:

I see this EXACT problem from time to time, when using SSL, and have found that (especially when working on someone else's project in a team environment) the Visual Studio project web settings (SSL ports) sometimes get messed up. Here's what I do to fix them:

  • 在解决方案资源管理器中,单击您的项目.
  • 按 F4 键(查看属性).
  • 复制 URL(不是 SSL URL).
  • 将 URL 粘贴到 Web 选项卡上的项目 URL 中,然后保存.
  • 在解决方案资源管理器中,单击您的项目.
  • 按 F4 键(查看属性).
  • 将启用 SSL 更改为 false.
  • 将其改回 true.应该有一个新的 SSL URL.复制它.
  • 将新的 SSL URL 粘贴到 Web 选项卡上的项目 URL 中.单击创建虚拟目录.
  • 单击覆盖应用程序根 URL,然后粘贴 SSL URL.保存.

这总能解决我的问题.

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

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