{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/dnx/issues/451","labels_url":"https://api.github.com/repos/aspnet/dnx/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/dnx/issues/451/comments","events_url":"https://api.github.com/repos/aspnet/dnx/issues/451/events","html_url":"https://github.com/aspnet/dnx/issues/451","id":38221179,"number":451,"title":"Package restore not working on an authenticated proxy (and bad error)","user":{"login":"Eilon","id":202643,"avatar_url":"https://avatars.githubusercontent.com/u/202643?v=3","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/dnx/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/aspnet/dnx/milestones/2","html_url":"https://github.com/aspnet/dnx/milestones/Backlog","labels_url":"https://api.github.com/repos/aspnet/dnx/milestones/2/labels","id":632687,"number":2,"title":"Backlog","description":"","creator":{"login":"davidfowl","id":95136,"avatar_url":"https://avatars.githubusercontent.com/u/95136?v=3","gravatar_id":"","url":"https://api.github.com/users/davidfowl","html_url":"https://github.com/davidfowl","followers_url":"https://api.github.com/users/davidfowl/followers","following_url":"https://api.github.com/users/davidfowl/following{/other_user}","gists_url":"https://api.github.com/users/davidfowl/gists{/gist_id}","starred_url":"https://api.github.com/users/davidfowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidfowl/subscriptions","organizations_url":"https://api.github.com/users/davidfowl/orgs","repos_url":"https://api.github.com/users/davidfowl/repos","events_url":"https://api.github.com/users/davidfowl/events{/privacy}","received_events_url":"https://api.github.com/users/davidfowl/received_events","type":"User","site_admin":false},"open_issues":51,"closed_issues":44,"state":"open","created_at":"2014-04-17T06:07:54Z","updated_at":"2015-04-26T07:17:05Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2014-07-19T00:01:26Z","updated_at":"2015-05-05T18:05:32Z","closed_at":null,"body":"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.\r\n\r\nSee 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:\r\n\r\n```\r\nSystem.AggregateException: One or more errors occurred. ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.\r\n   at System.Xml.XmlTextReaderImpl.Throw(Exception e)\r\n   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)\r\n   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()\r\n```\r\n\r\nAnd this is the full package restore log:\r\n\r\nTheoretically related to https://github.com/aspnet/KRuntime/issues/215.\r\n\r\n```\r\nRestoring packages for c:\\source\\someproject\\project.json\r\nAttempting to resolve dependency MyProject.vNext >= 1.0.0\r\nAttempting to resolve dependency EntityFramework.SqlServer >= 7.0.0-alpha2\r\n  GET https://www.nuget.org/api/v2/FindPackagesById()?Id='EntityFramework.SqlServer'\r\n  GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='EntityFramework.SqlServer'\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='EntityFramework.SqlServer'\r\n  OPEN EntityFramework.SqlServer.7.0.0-alpha2.nupkg\r\n  OPEN EntityFramework.SqlServer.7.0.0-alpha2\\EntityFramework.SqlServer.7.0.0-alpha2.nuspec\r\nAttempting to resolve dependency Microsoft.AspNet.Mvc >= 6.0.0-alpha2\r\n  GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Mvc'\r\n  GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Mvc'\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Mvc'\r\n  OPEN Microsoft.AspNet.Mvc.6.0.0-alpha2.nupkg\r\n  OPEN Microsoft.AspNet.Mvc.Common.6.0.0-alpha2.nupkg\r\n  OPEN Microsoft.AspNet.Mvc.Core.6.0.0-alpha2.nupkg\r\n  OPEN Microsoft.AspNet.Mvc.ModelBinding.6.0.0-alpha2.nupkg\r\n  OPEN Microsoft.AspNet.Mvc.Razor.6.0.0-alpha2.nupkg\r\n  OPEN Microsoft.AspNet.Mvc.Razor.Host.6.0.0-alpha2.nupkg\r\n  OPEN Microsoft.AspNet.Mvc.6.0.0-alpha2\\Microsoft.AspNet.Mvc.6.0.0-alpha2.nuspec\r\n  OPEN Microsoft.AspNet.Mvc.Common.6.0.0-alpha2\\Microsoft.AspNet.Mvc.Common.6.0.0-alpha2.nuspec\r\n  OPEN Microsoft.AspNet.Mvc.Core.6.0.0-alpha2\\Microsoft.AspNet.Mvc.Core.6.0.0-alpha2.nuspec\r\n  OPEN Microsoft.AspNet.Mvc.ModelBinding.6.0.0-alpha2\\Microsoft.AspNet.Mvc.ModelBinding.6.0.0-alpha2.nuspec\r\n  OPEN Microsoft.AspNet.Mvc.Razor.6.0.0-alpha2\\Microsoft.AspNet.Mvc.Razor.6.0.0-alpha2.nuspec\r\n  OPEN Microsoft.AspNet.Mvc.Razor.Host.6.0.0-alpha2\\Microsoft.AspNet.Mvc.Razor.Host.6.0.0-alpha2.nuspec\r\nAttempting to resolve dependency Microsoft.AspNet.Identity.EntityFramework >= 3.0.0-alpha2\r\n  GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework'\r\n  GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework'\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework'\r\n  OPEN Microsoft.AspNet.Identity.EntityFramework.2.0.0.nupkg\r\n  OPEN Microsoft.AspNet.Identity.EntityFramework.3.0.0-alpha2.nupkg\r\n  OPEN Microsoft.AspNet.Identity.EntityFramework.2.0.0\\Microsoft.AspNet.Identity.EntityFramework.2.0.0.nuspec\r\n  OPEN Microsoft.AspNet.Identity.EntityFramework.3.0.0-alpha2\\Microsoft.AspNet.Identity.EntityFramework.3.0.0-alpha2.nuspec\r\nAttempting to resolve dependency Microsoft.AspNet.Identity.Authentication >= 3.0.0-alpha2\r\n  GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication'\r\n  GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication'\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication'\r\n  NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework' 458ms\r\n  NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='EntityFramework.SqlServer' 1011ms\r\n  NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Mvc' 740ms\r\n  NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication' 42ms\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='EntityFramework.SqlServer' 1028ms\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework' 476ms\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Mvc' 756ms\r\nWarning: FindPackagesById: EntityFramework.SqlServer\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='EntityFramework.SqlServer'\r\nWarning: FindPackagesById: Microsoft.AspNet.Mvc\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Mvc'\r\nWarning: FindPackagesById: Microsoft.AspNet.Identity.EntityFramework\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework'\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication' 75ms\r\nWarning: FindPackagesById: Microsoft.AspNet.Identity.Authentication\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication'\r\n NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='EntityFramework.SqlServer' 54ms\r\nWarning: FindPackagesById: EntityFramework.SqlServer\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='EntityFramework.SqlServer'\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Mvc' 53ms\r\nWarning: FindPackagesById: Microsoft.AspNet.Mvc\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Mvc'\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework' 63ms\r\nWarning: FindPackagesById: Microsoft.AspNet.Identity.EntityFramework\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework'\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication' 48ms\r\nWarning: FindPackagesById: Microsoft.AspNet.Identity.Authentication\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication'\r\n  OPEN Microsoft.AspNet.Identity.Authentication.3.0.0-alpha2.nupkg\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='EntityFramework.SqlServer' 53ms\r\nError: FindPackagesById: EntityFramework.SqlServer\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Mvc' 51ms\r\nError: FindPackagesById: Microsoft.AspNet.Mvc\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  OPEN Microsoft.AspNet.Identity.Authentication.3.0.0-alpha2\\Microsoft.AspNet.Identity.Authentication.3.0.0-alpha2.nuspec\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework' 50ms\r\nError: FindPackagesById: Microsoft.AspNet.Identity.EntityFramework\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication' 54ms\r\nError: FindPackagesById: Microsoft.AspNet.Identity.Authentication\r\n  Data at the root level is invalid. Line 1, position 1.\r\nAttempting to resolve dependency Microsoft.AspNet.Security.Cookies >= 1.0.0-alpha2\r\n  GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies'\r\n  GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies'\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies'\r\n  NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies' 10ms\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies' 58ms\r\nWarning: FindPackagesById: Microsoft.AspNet.Security.Cookies\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies'\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies' 58ms\r\nWarning: FindPackagesById: Microsoft.AspNet.Security.Cookies\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies'\r\n  OPEN Microsoft.AspNet.Security.Cookies.1.0.0-alpha2.nupkg\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies' 59ms\r\nError: FindPackagesById: Microsoft.AspNet.Security.Cookies\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  OPEN Microsoft.AspNet.Security.Cookies.1.0.0-alpha2\\Microsoft.AspNet.Security.Cookies.1.0.0-alpha2.nuspec\r\n  OK https://www.nuget.org/api/v2/FindPackagesById()?Id='EntityFramework.SqlServer' 1999ms\r\n  OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies' 255ms\r\nAttempting to resolve dependency Microsoft.AspNet.Server.IIS >= 1.0.0-alpha2\r\n  GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS'\r\n  GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS'\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS'\r\n  NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS' 8ms\r\n  OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS' 55ms\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS' 55ms\r\nWarning: FindPackagesById: Microsoft.AspNet.Server.IIS\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS'\r\n  OPEN Microsoft.AspNet.Server.IIS.1.0.0-alpha2.nupkg\r\n  OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Identity.Authentication' 665ms\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS' 58ms\r\nWarning: FindPackagesById: Microsoft.AspNet.Server.IIS\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS'\r\n  OPEN Microsoft.AspNet.Server.IIS.1.0.0-alpha2\\Microsoft.AspNet.Server.IIS.1.0.0-alpha2.nuspec\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.IIS' 58ms\r\nError: FindPackagesById: Microsoft.AspNet.Server.IIS\r\n  Data at the root level is invalid. Line 1, position 1.\r\nAttempting to resolve dependency Microsoft.AspNet.Server.WebListener >= 1.0.0-alpha2\r\n  GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'\r\n  GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'\r\n  NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener' 8ms\r\n  OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Mvc' 1488ms\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener' 60ms\r\nWarning: FindPackagesById: Microsoft.AspNet.Server.WebListener\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'\r\n  OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener' 75ms\r\n  OPEN Microsoft.AspNet.Server.WebListener.1.0.0-alpha2.nupkg\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener' 58ms\r\nWarning: FindPackagesById: Microsoft.AspNet.Server.WebListener\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'\r\n  OPEN Microsoft.AspNet.Server.WebListener.1.0.0-alpha2\\Microsoft.AspNet.Server.WebListener.1.0.0-alpha2.nuspec\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener' 59ms\r\nError: FindPackagesById: Microsoft.AspNet.Server.WebListener\r\n  Data at the root level is invalid. Line 1, position 1.\r\nAttempting to resolve dependency Microsoft.AspNet.StaticFiles >= 1.0.0-alpha2\r\n  GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles'\r\n  GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles'\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles'\r\n  NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles' 8ms\r\n  OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles' 59ms\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles' 63ms\r\nWarning: FindPackagesById: Microsoft.AspNet.StaticFiles\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles'\r\n  OPEN Microsoft.AspNet.StaticFiles.1.0.0-alpha2.nupkg\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles' 69ms\r\nWarning: FindPackagesById: Microsoft.AspNet.StaticFiles\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles'\r\n  OPEN Microsoft.AspNet.StaticFiles.1.0.0-alpha2\\Microsoft.AspNet.StaticFiles.1.0.0-alpha2.nuspec\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles' 54ms\r\nError: FindPackagesById: Microsoft.AspNet.StaticFiles\r\n  Data at the root level is invalid. Line 1, position 1.\r\nAttempting to resolve dependency Microsoft.Framework.ConfigurationModel.Json >= 1.0.0-alpha2\r\n  GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json'\r\n  GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json'\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json'\r\n  NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json' 8ms\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json' 53ms\r\nWarning: FindPackagesById: Microsoft.Framework.ConfigurationModel.Json\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json'\r\n  OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json' 88ms\r\n  OPEN Microsoft.Framework.ConfigurationModel.Json.1.0.0-alpha2.nupkg\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json' 59ms\r\nWarning: FindPackagesById: Microsoft.Framework.ConfigurationModel.Json\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json'\r\n  OPEN Microsoft.Framework.ConfigurationModel.Json.1.0.0-alpha2\\Microsoft.Framework.ConfigurationModel.Json.1.0.0-alpha2.nuspec\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel.Json' 58ms\r\nError: FindPackagesById: Microsoft.Framework.ConfigurationModel.Json\r\n  Data at the root level is invalid. Line 1, position 1.\r\nAttempting to resolve dependency Microsoft.VisualStudio.Web.BrowserLink.Loader >= 14.0-alpha2\r\n  GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader'\r\n  GET http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader'\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader'\r\n  NotFound http://custom_nuget_feed_1.example.com/NuGet/Release/NuGet/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader' 8ms\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader' 53ms\r\nWarning: FindPackagesById: Microsoft.VisualStudio.Web.BrowserLink.Loader\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader'\r\n  OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader' 78ms\r\n  OPEN Microsoft.VisualStudio.Web.BrowserLink.Loader.14.0-alpha2.nupkg\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader' 60ms\r\nWarning: FindPackagesById: Microsoft.VisualStudio.Web.BrowserLink.Loader\r\n  Data at the root level is invalid. Line 1, position 1.\r\n  GET http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader'\r\n  OPEN Microsoft.VisualStudio.Web.BrowserLink.Loader.14.0-alpha2\\Microsoft.VisualStudio.Web.BrowserLink.Loader.14.0-alpha2.nuspec\r\n  NotFound http://custom_nuget_feed_2.example.com/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id='Microsoft.VisualStudio.Web.BrowserLink.Loader' 69ms\r\nError: FindPackagesById: Microsoft.VisualStudio.Web.BrowserLink.Loader\r\n  Data at the root level is invalid. Line 1, position 1.\r\nAttempting to resolve dependency Newtonsoft.Json >= 5.0.8\r\nAttempting to resolve dependency mscorlib >= \r\nAttempting to resolve dependency System >= \r\nAttempting to resolve dependency System.Core >= \r\nAttempting to resolve dependency Microsoft.CSharp >= \r\nAttempting to resolve dependency MyProject.vNext >= 1.0.0\r\nAttempting to resolve dependency EntityFramework.SqlServer >= 7.0.0-alpha2\r\nAttempting to resolve dependency Microsoft.AspNet.Mvc >= 6.0.0-alpha2\r\nAttempting to resolve dependency Microsoft.AspNet.Identity.EntityFramework >= 3.0.0-alpha2\r\nAttempting to resolve dependency Microsoft.AspNet.Identity.Authentication >= 3.0.0-alpha2\r\nAttempting to resolve dependency Microsoft.AspNet.Security.Cookies >= 1.0.0-alpha2\r\nAttempting to resolve dependency Microsoft.AspNet.Server.IIS >= 1.0.0-alpha2\r\nAttempting to resolve dependency Microsoft.AspNet.Server.WebListener >= 1.0.0-alpha2\r\nAttempting to resolve dependency Microsoft.AspNet.StaticFiles >= 1.0.0-alpha2\r\nAttempting to resolve dependency Microsoft.Framework.ConfigurationModel.Json >= 1.0.0-alpha2\r\n  OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Identity.EntityFramework' 3571ms\r\nAttempting to resolve dependency Microsoft.VisualStudio.Web.BrowserLink.Loader >= 14.0-alpha2\r\nAttempting to resolve dependency Newtonsoft.Json >= 5.0.8\r\n----------\r\nSystem.AggregateException: One or more errors occurred. ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.\r\n   at System.Xml.XmlTextReaderImpl.Throw(Exception e)\r\n   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)\r\n   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()\r\n   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()\r\n   at System.Xml.XmlTextReaderImpl.Read()\r\n   at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)\r\n   at System.Xml.Linq.XDocument.Load(Stream stream, LoadOptions options)\r\n   at System.Xml.Linq.XDocument.Load(Stream stream)\r\n   at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed.<FindPackagesByIdAsyncCore>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RemoteWalkProvider.<FindLibraryBySnapshot>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RemoteWalkProvider.<FindLibraryByVersion>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryByVersion>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryMatch>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryEntry>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RestoreCommand.<RestoreForProject>d__1.MoveNext()\r\n   --- End of inner exception stack trace ---\r\n   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\r\n   at System.Threading.Tasks.Task`1.get_Result()\r\n   at Microsoft.Framework.PackageManager.RestoreCommand.ExecuteCommand()\r\n   at Microsoft.Framework.PackageManager.Program.<>c__DisplayClass1.<Main>b__8()\r\n---> (Inner Exception #0) System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.\r\n   at System.Xml.XmlTextReaderImpl.Throw(Exception e)\r\n   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)\r\n   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()\r\n   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()\r\n   at System.Xml.XmlTextReaderImpl.Read()\r\n   at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)\r\n   at System.Xml.Linq.XDocument.Load(Stream stream, LoadOptions options)\r\n   at System.Xml.Linq.XDocument.Load(Stream stream)\r\n   at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed.<FindPackagesByIdAsyncCore>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RemoteWalkProvider.<FindLibraryBySnapshot>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RemoteWalkProvider.<FindLibraryByVersion>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryByVersion>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryMatch>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryEntry>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.Framework.PackageManager.RestoreCommand.<RestoreForProject>d__1.MoveNext()<---\r\n----------\r\nRestore failed\r\nOne or more errors occurred.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/dnx/issues/comments/99160969","html_url":"https://github.com/aspnet/dnx/issues/451#issuecomment-99160969","issue_url":"https://api.github.com/repos/aspnet/dnx/issues/451","id":99160969,"user":{"login":"delloncba","id":8052276,"avatar_url":"https://avatars.githubusercontent.com/u/8052276?v=3","gravatar_id":"","url":"https://api.github.com/users/delloncba","html_url":"https://github.com/delloncba","followers_url":"https://api.github.com/users/delloncba/followers","following_url":"https://api.github.com/users/delloncba/following{/other_user}","gists_url":"https://api.github.com/users/delloncba/gists{/gist_id}","starred_url":"https://api.github.com/users/delloncba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delloncba/subscriptions","organizations_url":"https://api.github.com/users/delloncba/orgs","repos_url":"https://api.github.com/users/delloncba/repos","events_url":"https://api.github.com/users/delloncba/events{/privacy}","received_events_url":"https://api.github.com/users/delloncba/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T18:05:32Z","updated_at":"2015-05-05T18:05:32Z","body":"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:\r\n\r\n```\r\n<configuration>\r\n  <system.net>\r\n    <defaultProxy useDefaultCredentials=\"true\" enabled=\"true\">\r\n      <proxy usesystemdefault=\"True\"/>\r\n    </defaultProxy>\r\n  </system.net>\r\n</configuration>\r\n```\r\n\r\nTested with dnx-clr-win-x86.1.0.0-beta4 and it worked."}}