gpt4 book ai didi

.net - 恢复 vnext mvc demo 时,dnu 总是被取消或超时

转载 作者:太空宇宙 更新时间:2023-11-03 16:49:36 30 4
gpt4 key购买 nike

我从 https://www.github.com/aspnet/home 中检索示例代码.恢复latest/HelloMvc文件夹下的包时,出现如下错误:

Warning: FindPackagesById: Microsoft.AspNet.Http.Features
HTTP request timed out. Retrying.
GET https://nuget.org/api/v2/FindPackagesById()?id='Microsoft.AspNet.Http.Features'
Error: FindPackagesById: Microsoft.AspNet.Hosting.Server.Abstractions
HTTP request timed out. Exiting.
Error: FindPackagesById: Microsoft.Framework.Configuration
HTTP request timed out. Exiting.
Error: FindPackagesById: Microsoft.AspNet.Http
HTTP request timed out. Exiting.
Error: FindPackagesById: Microsoft.Framework.Configuration.EnvironmentVariables
HTTP request timed out. Exiting.
Error: FindPackagesById: Microsoft.Framework.Configuration.CommandLine
HTTP request timed out. Exiting.
Error: FindPackagesById: Microsoft.Framework.DependencyInjection
HTTP request timed out. Exiting.
Error: FindPackagesById: Microsoft.Framework.Configuration.Ini
HTTP request timed out. Exiting.
Error: FindPackagesById: Microsoft.Framework.Logging
HTTP request timed out. Exiting.
----------
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[System.Net.Http.HttpResponseMessage].GetResult () [0x00000] in <filename unknown>:0
at System.Net.Http.HttpClientHandler+<SendAsync>c__async0.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---

但我在“latest/ConsoleApp”成功恢复,然后我使用 wget 下载带有失败 url 的包,没有问题,我可以从该包中解压 dll。

我已经在'latest/HelloMvc'恢复使用mono 1.0.0-beta7-12274运行时,或者在'1.0.0-beta5/HellowMvc'恢复使用1.0.0-beta5运行时,或者更改为使用dockerfile( microsoft/aspnet), 换电脑, 还是一样的错~

最佳答案

您是否尝试运行 mozroots --import --sync?我在 https://github.com/aspnet/Docs/issues/184 上找到了该解决方案它对我有用。

关于.net - 恢复 vnext mvc demo 时,dnu 总是被取消或超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31624415/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com