Share via

Unable to load the service index for source https://api.nuget.org/v3/index.json while restoring nuget packages in VS 2022.

Munjal, Kanha (Gurugram) 5 Reputation points
11 Jun 2024, 10:51 am

Hi All,

I am getting the error "Unable to load the service index for source https://api.nuget.org/v3/index.json while restoring Nuget packages in VS 2022. I have tried to delete Nuget config file as well but it did not help. Can anyone please provide assistance?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,104 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Jiachen Li-MSFT 33,541 Reputation points Microsoft Vendor
    11 Jun 2024, 12:39 pm

    Hi @Munjal, Kanha (Gurugram) ,

    You can try clearing the NuGet cache using the command nuget locals all -clear.

    Or try updating your vs2022 to the latest version.

    If you're behind a proxy, ensure your proxy settings are correctly configured.

    • Open Visual Studio.
    • Go to Tools > Options > Network.
    • Configure your proxy settings accordingly.

    Also check nuget.config reference about proxy.

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.