VS2013报错The request was aborted: Could not create SSL/TLS secure channel.

这篇具有很好参考价值的文章主要介绍了VS2013报错The request was aborted: Could not create SSL/TLS secure channel.。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

问题描述

Visual Studio 2013 Nuget(扩展和更新)无法连接网络分析和解决方法A connection to the server could not be established because the following error(s) occurred:

The request was aborted: Could not create SSL/TLS secure channel.Please click here to retry the request.

由于出现以下错误,无法建立与服务器的连接:

请求被中止:无法创建SSL/TLS安全通道。

请单击此处重试请求。

报错截图

VS2013报错The request was aborted: Could not create SSL/TLS secure channel.,Visual studio开发,visual studio,microsoft,c#,Powered by 金山文档

解决方案

进入Visual Studio 2013 (这里就简称VS2013了)后,从工具-扩展和更新(U)...,进入界面后,点击“联机”面板时,发现无法连接到 Nuget,界面上直接就提示“未能建立到服务器的连接,因为发生了以下错误:请求被终止:未能创建SSL/TLS安全通道。”这个错误,详细信息如图所示:

VS2013报错The request was aborted: Could not create SSL/TLS secure channel.,Visual studio开发,visual studio,microsoft,c#,Powered by 金山文档
VS2013报错The request was aborted: Could not create SSL/TLS secure channel.,Visual studio开发,visual studio,microsoft,c#,Powered by 金山文档

原因:Nuget官方网站已经不支持http访问, 只支持https,但是VS2013访问https默认使用的协议为Tls1.1,但是Nuget官方网站只支持Tls1.2,这是两边不匹配导致的问题。

第一步:

复制命令

[Net.ServicePointManager]::SecurityProtocol=[Net.ServicePointManager]::SecurityProtocol-bOR [Net.SecurityProtocolType]::Tls12

解决:要解决这个问题,那就要使VS2013以Tls1.3访问Nuget的官网,具体解决办法为在程序包管理控制台运行如上命令

第二步:

具体步骤如下:工具 -- 库程序包管理器(N) -- 程序包管理器控制台(o) -- 底部弹出控制台输入界面。

VS2013报错The request was aborted: Could not create SSL/TLS secure channel.,Visual studio开发,visual studio,microsoft,c#,Powered by 金山文档

输入上文中解决的命令(即[Net.ServicePointManager]::SecurityProtocol=[Net.ServicePointManager]::SecurityProtocol-bOR [Net.SecurityProtocolType]::Tls12),按回车键,即可;

VS2013报错The request was aborted: Could not create SSL/TLS secure channel.,Visual studio开发,visual studio,microsoft,c#,Powered by 金山文档

再次查看扩展和更新,发现能正常联网了,能正常访问Nuget官方网站了,默认的就可以查看到很多可以下载使用的插件。

成功解决

VS2013报错The request was aborted: Could not create SSL/TLS secure channel.,Visual studio开发,visual studio,microsoft,c#,Powered by 金山文档

参考文献

Visual Studio 2013 Nuget(扩展和更新)无法连接网络分析和解决方法文章来源地址https://www.toymoban.com/news/detail-516287.html

到了这里,关于VS2013报错The request was aborted: Could not create SSL/TLS secure channel.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • pip安装报错Could not fetch URL https://pypi.org/simple/xx/: There was a problem confirming the ssl c

    pip安装报错Could not fetch URL https://pypi.org/simple/xx/: There was a problem confirming the ssl c

    只是个记录帖):今天使用pip指令安装django时报错: Could not fetch URL https://pypi.org/simple/django/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=\\\'pypi.org\\\', port=443): Max retries exceeded with url: /simple/django/ (Caused by SSLError(SSLEOFError(8, \\\'EOF occurred in violation of protocol (_ssl.c:1129)\\\'))

    2024年02月08日
    浏览(8)
  • uniapp报错:request:fail abort statusCode:-1 Expected URL scheme ‘http‘ or ‘https‘ but was ‘file‘

    这个报错的意思是请求失败,因为URL方案不是“http”或“https”,而是“file”。 这个问题通常是由于您在使用uni-app应用程序并尝试从应用程序外部使用“本地文件路径”时发生的。在uni-app框架中,无法使用本地文件路径,因为它不是有效的http或https网址。要避免这个问题,

    2024年02月03日
    浏览(9)
  • ubuntu20.04 安装 Qt 后无法启动,出现报错:Could not load the Qt platform plugin “xcb” even though it was found!

    ubuntu20.04 安装 Qt 后无法启动,出现报错:Could not load the Qt platform plugin “xcb” even though it was found!

    目录 前言 一、Qt在Ubuntu上的安装 1.下载Qt在线安装程序 2.Qt在线安装 二、Qt creator无法显示问题解决 1.问题所在 2.问题解决 总结 本篇博文是记录了作者在 ubuntu20.04 版本中安装 Qt 时遇到的问题以及解决方案。其中包括了Qt在ubuntu系统中的安装以及解决安装后无法启动Qt以及出现

    2024年02月03日
    浏览(6)
  • Warning: Could not create server TCP listening socket Cannot assign request

    Warning: Could not create server TCP listening socket Cannot assign request

    一、问题:docker部署redis时发现docker ps命令查看redis端口号为空  二、原因:在网上查找基本都是6379端口被占用 三、解决方法 1、先docker stop停掉redis容器 2、通过修改redis挂载在linux上的redis.conf文件,将bind 127.0.0.1ip地址放开,之前注释掉了。 bind 127.0.0.1 这个是绑定了我们的主

    2024年02月03日
    浏览(10)
  • Unrecognized VM option ‘CMSParallelRemarkEnabled‘ Error: Could not create the Java Virtual Machine.

    Unrecognized VM option ‘CMSParallelRemarkEnabled‘ Error: Could not create the Java Virtual Machine.

    演示分布式事务 Seata报:如下异常 Unrecognized VM option ‘CMSParallelRemarkEnabled’ Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. 错误原因: 1、表明在尝试启动 Seata Server 时遇到了 Java 虚拟机(JVM)配置的问题。具体来说,Unrecognized VM option ‘CM

    2024年04月17日
    浏览(10)
  • kettle 运行Spoon.bat时,显示错误Could not create the java virtual machine.

    kettle 运行Spoon.bat时,显示错误Could not create the java virtual machine.

    kettle 运行Spoon.bat时,显示错误Could not create the java virtual machine , A fatal exception has occured.Program will exit. 可能原因:jdk版本,运行内存不足  错误原因:并非运行内存不足和jdk版本问题,通过查询SpoonConsole.bat得知 Launching Spoon with console output: D:data-integrationdata-integration\\\"D:data-in

    2024年02月05日
    浏览(19)
  • 浏览器The requested URL * was not found on this server. 的解决方法

    ①apache的重写未开启,开启重写后,问题解决,方法如下: apache 打开 httpd.conf 文件 找到 #LoadModule rewrite_module modules/mod_rewrite.so 去掉前面的#号 ②找到 Directory “E:/online/webs/Apache24/htdocs” Options Indexes FollowSymLinks AllowOverride None =改为 AllowOverride All Order allow,deny Allow from all ③在项

    2024年02月12日
    浏览(12)
  • android studio构建报错Could not create task ‘:app:generateLintModuleInfo‘.

    android studio构建报错Could not create task ‘:app:generateLintModuleInfo‘.

    原因:创建一个全新项目,只导入了一个第三方库。构建时总是无法成功。 一、首先报错The minCompileSdk (32) specified in adependency\\\'s AAR metadata 想是因为三方库和项目配置的build.gradle不一致的原因,修改项目配置到32 二、重新构建,未成功。报错Could not create task \\\':app:generateLintModu

    2024年02月11日
    浏览(9)
  • Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred……

    Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred……

    本人使用 idea 创建 web 工程后,运行 tomcat 服务器时出现报错: 并且 tomcat 出现错误信息: 本人尝试更换 JDK 版本,但并没有什么变化。最后发现是忘了修改 Project Structure... 中的 SDK 。 由于需要修改配置的地方较多,很容易漏掉一小步,下面整理了比较全面的需要修改的地方

    2024年02月07日
    浏览(12)
  • 记录一次老服务器启动ActiveMq时报的Could not create the Java Virtual Machine.错误

    记录一次老服务器启动ActiveMq时报的Could not create the Java Virtual Machine.错误

    服务器系统CentOS7  1、出现ActiveMq服务无法连接 2、查看activemq状态 service activemq status 显示activemq not running 3、找到ActiveMq的bin目录,# 后台启动 ./activemq console 提示Could not create the Java Virtual Machine.错误 可以判断是java运行环境的问题 4、再看看java版本 java -version 5、再看看activemq版

    2024年04月22日
    浏览(10)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包