web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

VS2017, run 'dotnet restore' gets timeout issue

(0) ShareShare
ReportReport
Posted on by 50

I am trying to run RetailSDK sample extension projects, and before I build the project, I run ‘dotnet restore’ to generate nupkg files. But there is always timeout error, like below

pastedimage1605169952067v1.png

context as below

“Severity Code Description Project File Line Suppression State
Error Failed to download package 'System.Runtime.Serialization.Xml.4.3.0' from 'api.nuget.org/.../system.runtime.serialization.xml.4.3.0.nupkg'.
The download of 'api.nuget.org/.../system.runtime.serialization.xml.4.3.0.nupkg' timed out because no data was received for 60000ms.
Exception of type 'System.TimeoutException' was thrown. PaymentSdk.Connector.Sample.MerchantWeb C:\Temp\WKEA_RetailSDK\version01\Payments\Connector.Sample.MerchantWeb\PaymentSdk.Connector.Sample.MerchantWeb.csproj 1”

The Nuget package settings as below The packages could not be downloaded from VS, but if I directly launch the link from the browser, I can download them manually.

pastedimage1605169968664v2.png

The package source is "https://api.nuget.org/v3/index.json" named as "NugetDotOrg".

Could anyone help with this issue? How can I directly download the packages via VS?

I have the same question (0)
  • Ramune Profile Picture
    on at

    Hi Erick,

    the screenshots are so small, it is not possible to see any information on them. Can you please provide new screenshots with a higher resolution?

  • Erick Li Profile Picture
    50 on at

    Hi Ramune,

    The context in the screenshots as below:

    PM> dotnet restore

     Restoring packages for C:\Temp\WKEA_RetailSDK\version01\SampleExtensions\RetailServer\Extensions.TestClient\RetailServer.Extensions.TestClient.csproj...

     Failed to download package 'Microsoft.Spatial.7.6.1' from 'api.nuget.org/.../microsoft.spatial.7.6.1.nupkg'.

     The download of 'api.nuget.org/.../microsoft.spatial.7.6.1.nupkg' timed out because no data was received for 60000ms.

       Exception of type 'System.TimeoutException' was thrown.

     Failed to download package 'Microsoft.CodeAnalysis.Common.3.3.0' from 'api.nuget.org/.../microsoft.codeanalysis.common.3.3.0.nupkg'.

     The download of 'api.nuget.org/.../microsoft.codeanalysis.common.3.3.0.nupkg' timed out because no data was received for 60000ms.

       Exception of type 'System.TimeoutException' was thrown.

     Failed to download package 'Microsoft.Data.OData.5.6.4' from 'api.nuget.org/.../microsoft.data.odata.5.6.4.nupkg'.

     The download of 'api.nuget.org/.../microsoft.data.odata.5.6.4.nupkg' timed out because no data was received for 60000ms.

       Exception of type 'System.TimeoutException' was thrown.

     Failed to download package 'Microsoft.OData.Edm.7.6.1' from 'api.nuget.org/.../microsoft.odata.edm.7.6.1.nupkg'.

     The download of 'api.nuget.org/.../microsoft.odata.edm.7.6.1.nupkg' timed out because no data was received for 60000ms.

       Exception of type 'System.TimeoutException' was thrown.

     Failed to download package 'Microsoft.Rest.ClientRuntime.2.3.2' from 'api.nuget.org/.../microsoft.rest.clientruntime.2.3.2.nupkg'.

     The download of 'api.nuget.org/.../microsoft.rest.clientruntime.2.3.2.nupkg' timed out because no data was received for 60000ms.

       Exception of type 'System.TimeoutException' was thrown.

    But if I directly use the hyperlink in a browser I can successfully download the package, so it is very important for us to resolve this download timeout issue to improve the build performance.

    And the package source we're using is api.nuget.org/.../index.json

    Thanks/Erick

  • Ramune Profile Picture
    on at

    Hi Erick,

    the screenshots are not fully uploaded. We see only a link which opens with error. Please try to edit your post with the screenshots again.

  • Erick Li Profile Picture
    50 on at

    Hi Ramune,

    I have updated the original post, please help check if there is still information missing.

    Thanks/Erick

  • Ramune Profile Picture
    on at

    Hi Erick,

    I see only link to your document but it is not active. When you upload some files, please wait until you see the picture or file in the form and then submit. It seems it is taking more time on your side and file is not uploaded completely.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Siv Sagar Profile Picture

Siv Sagar 283 Super User 2025 Season 2

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 213 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 152 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans