Nuget throws exception but shouldn't

Hi,
We use Windows forms Syncfusion nuget and we provide source in nuget.config like this:
No i our share we have our analyzer package which is in beta version and is changed very frequent so his version is 1.0.0-betaxxx. When we reference using packagereference like this:

nuget restore works properly. But when we want to restore latest version using wildcards we get this error:
1.0.0-*" />
Restoring packages for C:\Users\vagrant\MyProjects\enova\Soneta.BI\Soneta.BI.csproj...
GET http://nuget.syncfusion.com/windows-forms/FindPackagesById()?id='Soneta.Analysis'
GET https://api.nuget.org/v3-flatcontainer/soneta.analysis/index.json
NotFound https://api.nuget.org/v3-flatcontainer/soneta.analysis/index.json 732ms
OK http://nuget.syncfusion.com/windows-forms/FindPackagesById()?id='Soneta.Analysis' 3697ms
Retrying 'FindPackagesByIdAsyncCore' for source 'http://nuget.syncfusion.com/windows-forms/FindPackagesById()?id='Soneta.Analysis''.
The content at 'http://nuget.syncfusion.com/windows-forms/FindPackagesById()?id='Soneta.Analysis'' 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.
GET http://nuget.syncfusion.com/windows-forms/FindPackagesById()?id='Soneta.Analysis'
OK http://nuget.syncfusion.com/windows-forms/FindPackagesById()?id='Soneta.Analysis' 1344ms
Retrying 'FindPackagesByIdAsyncCore' for source 'http://nuget.syncfusion.com/windows-forms/FindPackagesById()?id='Soneta.Analysis''.
The content at 'http://nuget.syncfusion.com/windows-forms/FindPackagesById()?id='Soneta.Analysis'' 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.
GET http://nuget.syncfusion.com/windows-forms/FindPackagesById()?id='Soneta.Analysis'
OK http://nuget.syncfusion.com/windows-forms/FindPackagesById()?id='Soneta.Analysis' 1705ms
Failed to retrieve information about 'Soneta.Analysis' from remote source 'http://nuget.syncfusion.com/windows-forms/FindPackagesById()?id='Soneta.Analysis''.
The content at 'http://nuget.syncfusion.com/windows-forms/FindPackagesById()?id='Soneta.Analysis'' 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.
When syncfusion feed is removed nuget restore Soneta.Analysis properly for this project. We thought that maybe share is thre problem so we switch to local nuget serwer and in that case nuget restore package from local serwer and than try to restore it from syncfusion serwer which end with the same error like above (from local serwer when syncfusion feed is disabled restore works properly).
What can be the reason that your feed throws this exception?
Best regards,
Klaudiusz

5 Replies

KA Karthik Anandan Syncfusion Team April 17, 2018 03:16 PM UTC

Hi Klaudiusz,   
  
Thanks for contacting Syncfusion Support.   
   
This might happen due to package manager setting. So, please change the settings like below to resolve the problem.   
The Visual Studio 2017 provides an option to change Package Management in NuGet Package Manger settings. This option available from Visual Studio 2017.  Please change the NuGet Package option in Default Package Management format dropdown. Select packages.config instead of the Package Reference, please refer to the following screenshot.   
   
  After changing the setting please try again. Still if you have face same problem please provide the below details. This will helpful to resolve your problem ASAP.   
  1. Share the NuGet Feed link which is you are using.
  2. Share the Visual Studio details.
  3. Packages.config/project.Json file of your project
  4. NuGet.Config file. You can find this file from the below location.
C:\Users\<User Name>\AppData\Roaming\NuGet    
   
Regards,   
Karthik A.   



EN enova April 18, 2018 08:43 AM UTC

Hi,

We have got the same settings in VS as you. We have walkaround but I don't know if it is proper.

We change feed to this (we found this on some forum):


and for this one this:

<PackageReference Include="Soneta.Analysis" Version="1.0.0-*" />

works as we expected. But my question is can we use this feed?

best regards
Klaudiusz


KA Karthik Anandan Syncfusion Team April 18, 2018 10:10 AM UTC

Hi Klaudiusz,  
 
Yes, this is our full feed link and we have mentioned this link in our NuGet site.   
  
You can use this link.   
  
Regards,   
Karthik A.   



EN enova April 18, 2018 12:54 PM UTC

Hi,
So my walkaround is solution. Thank you for help.
Best regards,
Klaudiusz


KA Karthik Anandan Syncfusion Team April 19, 2018 04:24 AM UTC

Hi Klaudiusz, 
 
Thanks for your response and please get back to us if you need any other assistance. 
 
Regards, 
Karthik A. 


Loader.
Up arrow icon