---
title: "Unable to load service index"
url: https://www.marlasowards.com/samples/contributor-guide/troubleshoot/19-unable-to-load-service-index
description: "How to fix the Unable to load service index error in a docs build by deleting your local NuGet.Config file without merging the change."
author: Writing sample by Marla Sowards
---

> For an index of every page on this site, see [llms.txt](https://www.marlasowards.com/llms.txt).

> **Note:** I built this project for an enterprise SaaS company. However, what I've shared is genericized to mask proprietary information, including names of companies, products, features, and UI controls. Product images are mockups generated by Claude.

# Unable to load service index

## Symptom

The service index fails to load and the following error is shown:

```txt
Running `docfx metadata`...
Using .NET Core SDK 6.0.410
Loading project C:/Source/Forge/Shared/Forge.PluginInterfaces/Forge.PluginInterfaces.csproj
  Determining projects to restore...
C:\Source\Forge\Shared\Shared.Models\Shared.Models.csproj : error NU1301: Unable to load the service index
for source https://pkgs.dev.azure.com/<org>/_packaging/<feed>/nuget/v3/index.json.
[C:\Source\Forge\Shared\Engine.Plugin\Forge.PluginInterfaces.csproj]
...
  Failed to restore C:\Source\Forge\Shared\Engine.PluginInterfaces\Engine.PluginInterfaces.csproj (in 1.02 min).
  Failed to restore C:\Source\Forge\Shared\Shared.Models\Shared.Models.csproj (in 1.02 min).
```

_The real build log repeats this `NU1301` failure for every NuGet feed the project restores from, and then cascades into a long run of `CS0400`/`CS0246`/`CS0518` compiler errors once the restore fails — trimmed here since it's the same root cause repeated many times._

## Solution

Delete **NuGet.Config** locally. Don't merge this change.

> **Note**
>
> See [Nuget connection attempt failed "Unable to load the service index for source"](https://stackoverflow.com/questions/41185443/nuget-connection-attempt-failed-unable-to-load-the-service-index-for-source) for details.
