无法从远程源'http://go.microsoft.com/fwlink/?LinkID=206669/FindPackagesById()?id='MySql.Data'检索有关'(nuget pkg)'的信息 [英] Failed to retrieve information about '(nuget pkg)' from remote source 'http://go.microsoft.com/fwlink/?LinkID=206669/FindPackagesById()?id='MySql.Data'

查看:1131
本文介绍了无法从远程源'http://go.microsoft.com/fwlink/?LinkID=206669/FindPackagesById()?id='MySql.Data'检索有关'(nuget pkg)'的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Win7x64上运行VS2017 SP1。 我正在尝试在我的ASP.Net Core 2.0应用中安装nuget包  MySql.Data.EntityFrameworkCore
但我是在标题中得到错误。 我也试过安装MySql.Data,MySql.Data.Entity和mySqlSugarCoe(只是一个随机的pkg)。 全部使用Nuget控制台
和GUI返回主题行中的错误。 将Powershell升级到v5.0试图解决问题 - 没有运气。 还注意到nuget.org来源丢失了所以我按照这篇文章手动读了它:
https://stackoverflow.com/questions/5693139/what-is-the-url-for -nuget-gallery-to-access-nuget-org-from-vs2010 。 有没有人得到这个奇怪的错误?


这是完整的错误:


无法检索有关'MySql.Data的信息'来自远程来源'http://go.microsoft.com/fwlink/?LinkID=206669/FindPackagesById()?id='MySql.Data''。

'http:/的内容/go.microsoft.com/fwlink/?LinkID=206669/FindPackagesById()?id='MySql.Data''无效XML。

出于安全原因,此XML文档中禁止使用DTD。要启用DTD处理,请将XmlReaderSettings上的DtdProcessing属性设置为Parse,并将设置传递给XmlReader.Create方法。  


          0    
$









解决方案

嗨Alex,


欢迎来到MSDN论坛。


请转到工具> Nuget包管理器>包源并检查资源是否为


BTW,我发现你已经创建了一些类似或相关的线程,最好是跟踪和跟踪一个线程,然后可以帮助我们了解上下文并缩小范围,
麻烦你的问题,谢谢你的合作。


最好的问候,


萨拉


Running VS2017 SP1 on Win7x64.  I'm trying to install the nuget package MySql.Data.EntityFrameworkCore in my ASP.Net Core 2.0 app but I'm getting the err in the title.  I've also tried to install MySql.Data, MySql.Data.Entity, and mySqlSugarCoe (just a random pkg).  All return the error in the subject line using both the Nuget console and the GUI.  Upgraded Powershell to v5.0 in an attempt to fix issue - no luck.  Also noticed by nuget.org source was missing so I manually readded it per this post: https://stackoverflow.com/questions/5693139/what-is-the-url-for-nuget-gallery-to-access-nuget-org-from-vs2010 .  Anyone ever get this weird error?

Here's the complete error:

Failed to retrieve information about 'MySql.Data' from remote source 'http://go.microsoft.com/fwlink/?LinkID=206669/FindPackagesById()?id='MySql.Data''.
The content at 'http://go.microsoft.com/fwlink/?LinkID=206669/FindPackagesById()?id='MySql.Data'' is not valid XML.
For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.  

         0    



解决方案

Hi Alex,

Welcome to the MSDN forum.

Please go to Tools>Nuget Package Manager>Package Sources and check the resource is https://api.nuget.org/v3/index.json as below:

When you right click the project name under Solution Explorer and choose ‘Manage Nuget Packages…’, make sure Package source setting as ‘nuget.org’.

I tried to follow your description and install the nuget package MySql.Data.EntityFrameworkCore in the  ASP.Net Core 2.0 app (VS 2017 + Win 7 SP1) and it completed successfully as below:

You can also try to re-run the VS 2017 installer as administrator and choose More-Repair to repair your VS 2017 and make sure it is also upgraded to the latest version 15.4.3.

BTW, I found you have created some similar or related threads and it is better to follow and trace one thread, then can help us to know the context and narrow down, troubleshot your issue, thank you for your cooperation.

Best regards,

Sara


这篇关于无法从远程源'http://go.microsoft.com/fwlink/?LinkID=206669/FindPackagesById()?id='MySql.Data'检索有关'(nuget pkg)'的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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