Package restore not working on an authenticated proxy (and bad error)
We were at a customer (contact me to find specifics) and a default package restore in a new project. If we cannot repro this internally we can contact the customer to try to get a new repro.
See below for the package log. Ultimately I'm not sure if we had everything set up for authenticated proxies, but even if we didn't, the error we saw was still not helpful. The errors were in the form of this:
System.AggregateException: One or more errors occurred. ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
And this is the full package restore log:
Theoretically related to https://github.com/aspnet/KRuntime/issues/215.
Restoring packages for c:\source\someproject\project.json
Attempting to resolve dependency MyProject.vNext >= 1.0.0
Attempting to resolve dependency EntityFramework.SqlServer >= 7.0.0-alpha2
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='EntityFramework.SqlServer'
GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='EntityFramework.SqlServer'
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='EntityFramework.SqlServer'
OPEN EntityFramework.SqlServer.7.0.0-alpha2.nupkg
OPEN EntityFramework.SqlServer.7.0.0-alpha2\EntityFramework.SqlServer.7.0.0-alpha2.nuspec
Attempting to resolve dependency Microsoft.AspNet.Mvc >= 6.0.0-alpha2
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Mvc'
GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Mvc'
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Mvc'
OPEN Microsoft.AspNet.Mvc.6.0.0-alpha2.nupkg
OPEN Microsoft.AspNet.Mvc.Common.6.0.0-alpha2.nupkg
OPEN Microsoft.AspNet.Mvc.Core.6.0.0-alpha2.nupkg
OPEN Microsoft.AspNet.Mvc.ModelBinding.6.0.0-alpha2.nupkg
OPEN Microsoft.AspNet.Mvc.Razor.6.0.0-alpha2.nupkg
OPEN Microsoft.AspNet.Mvc.Razor.Host.6.0.0-alpha2.nupkg
OPEN Microsoft.AspNet.Mvc.6.0.0-alpha2\Microsoft.AspNet.Mvc.6.0.0-alpha2.nuspec
OPEN Microsoft.AspNet.Mvc.Common.6.0.0-alpha2\Microsoft.AspNet.Mvc.Common.6.0.0-alpha2.nuspec
OPEN Microsoft.AspNet.Mvc.Core.6.0.0-alpha2\Microsoft.AspNet.Mvc.Core.6.0.0-alpha2.nuspec
OPEN Microsoft.AspNet.Mvc.ModelBinding.6.0.0-alpha2\Microsoft.AspNet.Mvc.ModelBinding.6.0.0-alpha2.nuspec
OPEN Microsoft.AspNet.Mvc.Razor.6.0.0-alpha2\Microsoft.AspNet.Mvc.Razor.6.0.0-alpha2.nuspec
OPEN Microsoft.AspNet.Mvc.Razor.Host.6.0.0-alpha2\Microsoft.AspNet.Mvc.Razor.Host.6.0.0-alpha2.nuspec
Attempting to resolve dependency Microsoft.AspNet.Identity.EntityFramework >= 3.0.0-alpha2
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework'
GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework'
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework'
OPEN Microsoft.AspNet.Identity.EntityFramework.2.0.0.nupkg
OPEN Microsoft.AspNet.Identity.EntityFramework.3.0.0-alpha2.nupkg
OPEN Microsoft.AspNet.Identity.EntityFramework.2.0.0\Microsoft.AspNet.Identity.EntityFramework.2.0.0.nuspec
OPEN Microsoft.AspNet.Identity.EntityFramework.3.0.0-alpha2\Microsoft.AspNet.Identity.EntityFramework.3.0.0-alpha2.nuspec
Attempting to resolve dependency Microsoft.AspNet.Identity.Authentication >= 3.0.0-alpha2
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication'
GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication'
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication'
NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework' 458ms
NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='EntityFramework.SqlServer' 1011ms
NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Mvc' 740ms
NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication' 42ms
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='EntityFramework.SqlServer' 1028ms
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework' 476ms
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Mvc' 756ms
Warning: FindPackagesById: EntityFramework.SqlServer
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='EntityFramework.SqlServer'
Warning: FindPackagesById: Microsoft.AspNet.Mvc
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Mvc'
Warning: FindPackagesById: Microsoft.AspNet.Identity.EntityFramework
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework'
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication' 75ms
Warning: FindPackagesById: Microsoft.AspNet.Identity.Authentication
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication'
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='EntityFramework.SqlServer' 54ms
Warning: FindPackagesById: EntityFramework.SqlServer
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='EntityFramework.SqlServer'
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Mvc' 53ms
Warning: FindPackagesById: Microsoft.AspNet.Mvc
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Mvc'
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework' 63ms
Warning: FindPackagesById: Microsoft.AspNet.Identity.EntityFramework
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework'
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication' 48ms
Warning: FindPackagesById: Microsoft.AspNet.Identity.Authentication
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication'
OPEN Microsoft.AspNet.Identity.Authentication.3.0.0-alpha2.nupkg
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='EntityFramework.SqlServer' 53ms
Error: FindPackagesById: EntityFramework.SqlServer
Data at the root level is invalid. Line 1, position 1.
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Mvc' 51ms
Error: FindPackagesById: Microsoft.AspNet.Mvc
Data at the root level is invalid. Line 1, position 1.
OPEN Microsoft.AspNet.Identity.Authentication.3.0.0-alpha2\Microsoft.AspNet.Identity.Authentication.3.0.0-alpha2.nuspec
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework' 50ms
Error: FindPackagesById: Microsoft.AspNet.Identity.EntityFramework
Data at the root level is invalid. Line 1, position 1.
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication' 54ms
Error: FindPackagesById: Microsoft.AspNet.Identity.Authentication
Data at the root level is invalid. Line 1, position 1.
Attempting to resolve dependency Microsoft.AspNet.Security.Cookies >= 1.0.0-alpha2
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies'
GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies'
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies'
NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies' 10ms
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies' 58ms
Warning: FindPackagesById: Microsoft.AspNet.Security.Cookies
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies'
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies' 58ms
Warning: FindPackagesById: Microsoft.AspNet.Security.Cookies
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies'
OPEN Microsoft.AspNet.Security.Cookies.1.0.0-alpha2.nupkg
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies' 59ms
Error: FindPackagesById: Microsoft.AspNet.Security.Cookies
Data at the root level is invalid. Line 1, position 1.
OPEN Microsoft.AspNet.Security.Cookies.1.0.0-alpha2\Microsoft.AspNet.Security.Cookies.1.0.0-alpha2.nuspec
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='EntityFramework.SqlServer' 1999ms
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies' 255ms
Attempting to resolve dependency Microsoft.AspNet.Server.IIS >= 1.0.0-alpha2
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS'
GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS'
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS'
NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS' 8ms
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS' 55ms
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS' 55ms
Warning: FindPackagesById: Microsoft.AspNet.Server.IIS
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS'
OPEN Microsoft.AspNet.Server.IIS.1.0.0-alpha2.nupkg
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication' 665ms
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS' 58ms
Warning: FindPackagesById: Microsoft.AspNet.Server.IIS
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS'
OPEN Microsoft.AspNet.Server.IIS.1.0.0-alpha2\Microsoft.AspNet.Server.IIS.1.0.0-alpha2.nuspec
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS' 58ms
Error: FindPackagesById: Microsoft.AspNet.Server.IIS
Data at the root level is invalid. Line 1, position 1.
Attempting to resolve dependency Microsoft.AspNet.Server.WebListener >= 1.0.0-alpha2
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'
GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'
NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener' 8ms
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Mvc' 1488ms
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener' 60ms
Warning: FindPackagesById: Microsoft.AspNet.Server.WebListener
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener' 75ms
OPEN Microsoft.AspNet.Server.WebListener.1.0.0-alpha2.nupkg
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener' 58ms
Warning: FindPackagesById: Microsoft.AspNet.Server.WebListener
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'
OPEN Microsoft.AspNet.Server.WebListener.1.0.0-alpha2\Microsoft.AspNet.Server.WebListener.1.0.0-alpha2.nuspec
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener' 59ms
Error: FindPackagesById: Microsoft.AspNet.Server.WebListener
Data at the root level is invalid. Line 1, position 1.
Attempting to resolve dependency Microsoft.AspNet.StaticFiles >= 1.0.0-alpha2
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles'
GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles'
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles'
NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles' 8ms
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles' 59ms
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles' 63ms
Warning: FindPackagesById: Microsoft.AspNet.StaticFiles
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles'
OPEN Microsoft.AspNet.StaticFiles.1.0.0-alpha2.nupkg
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles' 69ms
Warning: FindPackagesById: Microsoft.AspNet.StaticFiles
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles'
OPEN Microsoft.AspNet.StaticFiles.1.0.0-alpha2\Microsoft.AspNet.StaticFiles.1.0.0-alpha2.nuspec
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles' 54ms
Error: FindPackagesById: Microsoft.AspNet.StaticFiles
Data at the root level is invalid. Line 1, position 1.
Attempting to resolve dependency Microsoft.Framework.ConfigurationModel.Json >= 1.0.0-alpha2
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json'
GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json'
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json'
NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json' 8ms
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json' 53ms
Warning: FindPackagesById: Microsoft.Framework.ConfigurationModel.Json
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json'
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json' 88ms
OPEN Microsoft.Framework.ConfigurationModel.Json.1.0.0-alpha2.nupkg
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json' 59ms
Warning: FindPackagesById: Microsoft.Framework.ConfigurationModel.Json
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json'
OPEN Microsoft.Framework.ConfigurationModel.Json.1.0.0-alpha2\Microsoft.Framework.ConfigurationModel.Json.1.0.0-alpha2.nuspec
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json' 58ms
Error: FindPackagesById: Microsoft.Framework.ConfigurationModel.Json
Data at the root level is invalid. Line 1, position 1.
Attempting to resolve dependency Microsoft.VisualStudio.Web.BrowserLink.Loader >= 14.0-alpha2
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader'
GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader'
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader'
NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader' 8ms
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader' 53ms
Warning: FindPackagesById: Microsoft.VisualStudio.Web.BrowserLink.Loader
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader'
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader' 78ms
OPEN Microsoft.VisualStudio.Web.BrowserLink.Loader.14.0-alpha2.nupkg
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader' 60ms
Warning: FindPackagesById: Microsoft.VisualStudio.Web.BrowserLink.Loader
Data at the root level is invalid. Line 1, position 1.
GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader'
OPEN Microsoft.VisualStudio.Web.BrowserLink.Loader.14.0-alpha2\Microsoft.VisualStudio.Web.BrowserLink.Loader.14.0-alpha2.nuspec
NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader' 69ms
Error: FindPackagesById: Microsoft.VisualStudio.Web.BrowserLink.Loader
Data at the root level is invalid. Line 1, position 1.
Attempting to resolve dependency Newtonsoft.Json >= 5.0.8
Attempting to resolve dependency mscorlib >=
Attempting to resolve dependency System >=
Attempting to resolve dependency System.Core >=
Attempting to resolve dependency Microsoft.CSharp >=
Attempting to resolve dependency MyProject.vNext >= 1.0.0
Attempting to resolve dependency EntityFramework.SqlServer >= 7.0.0-alpha2
Attempting to resolve dependency Microsoft.AspNet.Mvc >= 6.0.0-alpha2
Attempting to resolve dependency Microsoft.AspNet.Identity.EntityFramework >= 3.0.0-alpha2
Attempting to resolve dependency Microsoft.AspNet.Identity.Authentication >= 3.0.0-alpha2
Attempting to resolve dependency Microsoft.AspNet.Security.Cookies >= 1.0.0-alpha2
Attempting to resolve dependency Microsoft.AspNet.Server.IIS >= 1.0.0-alpha2
Attempting to resolve dependency Microsoft.AspNet.Server.WebListener >= 1.0.0-alpha2
Attempting to resolve dependency Microsoft.AspNet.StaticFiles >= 1.0.0-alpha2
Attempting to resolve dependency Microsoft.Framework.ConfigurationModel.Json >= 1.0.0-alpha2
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework' 3571ms
Attempting to resolve dependency Microsoft.VisualStudio.Web.BrowserLink.Loader >= 14.0-alpha2
Attempting to resolve dependency Newtonsoft.Json >= 5.0.8
----------
System.AggregateException: One or more errors occurred. ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Load(Stream stream, LoadOptions options)
at System.Xml.Linq.XDocument.Load(Stream stream)
at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed.<FindPackagesByIdAsyncCore>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RemoteWalkProvider.<FindLibraryBySnapshot>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RemoteWalkProvider.<FindLibraryByVersion>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryByVersion>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryMatch>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryEntry>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RestoreCommand.<RestoreForProject>d__1.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at Microsoft.Framework.PackageManager.RestoreCommand.ExecuteCommand()
at Microsoft.Framework.PackageManager.Program.<>c__DisplayClass1.<Main>b__8()
---> (Inner Exception #0) System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Load(Stream stream, LoadOptions options)
at System.Xml.Linq.XDocument.Load(Stream stream)
at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed.<FindPackagesByIdAsyncCore>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RemoteWalkProvider.<FindLibraryBySnapshot>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RemoteWalkProvider.<FindLibraryByVersion>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryByVersion>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryMatch>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryEntry>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Framework.PackageManager.RestoreCommand.<RestoreForProject>d__1.MoveNext()<---
----------
Restore failed
One or more errors occurred.
I'm getting this behind a proxy:
System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
A easy workaround to dnu restore behind a proxy, at least in windows, is to locate the dnx.exe file and create a dnx.exe.config file which sets the proxy:
<configuration>
<system.net>
<defaultProxy useDefaultCredentials="true" enabled="true">
<proxy usesystemdefault="True"/>
</defaultProxy>
</system.net>
</configuration>
Tested with dnx-clr-win-x86.1.0.0-beta4 and it worked.
I just ran into this issue with a clean install of VS2015 RTM and @delloncba's solution got me moving again.
I try @delloncba solution and it worked for me too. Thanks!
:+1: for @delloncba
Actually, the workaround from @delloncba no longer seems to be working in beta7 :/
There was a suggestion that you needed to have the config file for each installed runtime: https://github.com/aspnet/Tooling/issues/105#issuecomment-123854833
However, I deleted all other runtimes except for the one I was using, and the config file doesn't seem to be used:

I got it going by adding these environment variables:
http_proxy=<proxy>:<port>
https_proxy=<proxy>:<port>
I tried the suggestion of @delloncba but it didn't work with ASP.NET 5 beta8. However, editing the machine.config in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config works for me
<system.net>
<defaultProxy useDefaultCredentials="true" enabled="true">
<proxy usesystemdefault="True"/>
</defaultProxy>
</system.net>
With the move to nuget this will solve itself.
solution from @delloncba worked first time but stoped after AspNet5.ENU.RC1_Update1.
only complementing, the files dnx.exe generally stays in C:\Users{you}.dnx\runtimes
This bug is really block our team development with dnx, please fix it
@ZOXEXIVO DNX is not being worked on anymore, see https://github.com/aspnet/dnx/blob/dev/README.md
So we can assume if a product relies on DNX they should switch to .NET CLI?
It seems the .NET CLI has a similar issue dotnet/cli#3065