Share via


Failed to retrieve information about '(nuget pkg)' from remote source 'http://go.microsoft.com/fwlink/?LinkID=206669/FindPackagesById()?id='MySql.Data'

Question

Friday, November 10, 2017 2:44 AM

Running VS2017 SP1 on Win7x64.  I'm trying to install the nuget package MySql.Data.EntityFrameworkCore in my ASP.Net Core 2.0 appbut 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    

All replies (2)

Monday, November 13, 2017 8:55 AM

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

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Wednesday, November 15, 2017 2:55 AM

Hi Alex,

Do you have any update for this issue, if this issue persists, please feel free to let us know. You can share more detail information and we can help you to troubleshot this issue again, thank you for your cooperation.

Best regards,

Sara

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]