# Telerik NuGet Feed Troubleshooting

This article summarizes the issues that may occur when you work with the Telerik UI for Blazor library and the online [Telerik NuGet feed](https://www.telerik.com/blazor-ui/documentation/installation/nuget), and their solutions.

> tip This documentation page applies to the private Telerik NuGet package source `nuget.telerik.com`. Starting from Telerik UI for Blazor version **14.0.0**, the required NuGet packages are [available on nuget.org](https://www.nuget.org/profiles/Progress).

Regardless of the cause for the issue, it is recommended that you start from the section on the commonly occurring issues.

* [Tips for handling common NuGet issues](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#tips-for-handling-common-nuget-issues)
* [Removing stored credentials](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#removing-saved-credentials)
* [Error `401 Unauthorized`](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#error-401-unauthorized)
* [Error `Unable to find package`](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#unable-to-find-package)
* [Visual Studio prompts for NuGet credentials every time](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#visual-studio-prompts-for-nuget-credentials-every-time)
* [Error `503 Service Unavailable`](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#error-503-service-unavailable)
* [Message about package `version not found`](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#package-version-not-found)
* [Error `Unable to resolve ... . PackageSourceMapping is enabled`](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#unable-to-resolve-package-due-to-packagesourcemapping)
* [Error `Failed to retrieve information about ... from remote source`](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#failed-to-retrieve-information-from-remote-source)

## Telerik NuGet Feed Status

Visit [status.telerik.com](https://status.telerik.com/) to check the status of the Telerik NuGet server. The top section shows manually logged incidents with possible updates or workaround suggestions. The [**System Metrics** section](https://status.telerik.com/#system-metrics) provides real-time automated diagnostics.

## Tips for Handling Common NuGet Issues

The most common reasons for issues with the private Telerik NuGet feed are related to:

* Authentication and credentials.
* Missing or wrong local configuration (`NuGet.Config`).
* Network connectivity issues, including **proxies** and **firewalls**.

Errors like `Unable to load the service index for source https://nuget.telerik.com/v3/index.json` don't indicate the exact cause of the problem. In such cases, check the additional error information which usually provides an error code.

### Verify NuGet Credentials and Package Access

To verify if you can access the Telerik NuGet server and the expected packages, open <https://nuget.telerik.com/v3/search?q=blazor&prerelease=true&skip=0&take=100&semVerLevel=2.0.0> directly in the web browser and enter your Telerik credentials in the prompt.

If the above URL doesn't open, you have either come across a local networking issue or [the NuGet server is down](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#error-503-service-unavailable).

If you can access the feed in the browser, but you do not see the packages in Visual Studio, most likely the problem is caused by entering wrong credentials or using a different Telerik account. Make sure your saved credentials are correct. Also, you must not have a `NuGet.Config` file in your project as it may bring in invalid credentials and project-level configuration files override the global ones.

## Removing Saved Credentials

If you suspect that your saved credentials are wrong, use the following steps to remove them from Windows and, then, add the correct ones:

1. Remove the saved credentials in the [Windows Credential Manager](https://support.microsoft.com/en-us/windows/accessing-credential-manager-1b5c916a-6a16-889f-8581-fc16e8165ac0). These credentials will appear as `nuget.telerik.com` or `VSCredentials_nuget.telerik.com` entries.
2. Remove the Telerik NuGet package source from Visual Studio.
3. If you have added the Telerik  package source by NuGet CLI, try to remove it from the CLI by running the following commands:
   * [`dotnet nuget list source`](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-list-source)
   * [`dotnet nuget remove source`](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-remove-source)
4. Check if you have any credentials stored in `%AppData%\NuGet\Nuget.Config`. If so, remove them.
5. Try to reset the Visual Studio user data by [forcing NuGet to ask for authentication](https://stackoverflow.com/questions/43550797/how-to-force-nuget-to-ask-for-authentication-when-connecting-to-a-private-feed).
6. Restart Visual Studio.
7. Enter the Telerik NuGet package source again through Visual Studio or CLI. If you are using the feed in a .NET Core application, store your credentials as plain text.

## Error 401 Unauthorized

`Error 401 Unauthorized` means that the Telerik NuGet server received invalid credentials. There may be different reasons for that:

* No provided credentials
* Incorrect password
* [Correct password with unescaped special characters](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#special-characters-in-the-password)
* Using an expired or invalidated (removed) [Telerik NuGet API key](https://www.telerik.com/blazor-ui/documentation/installation/nuget#generate-a-nuget-api-key), which no longer exists in [your Telerik account](https://www.telerik.com/account/downloads/api-keys).
* Using a valid Telerik NuGet API key with a Telerik account email as the username. When using an API key, the username must be `api-key`.
* Saving a valid Telerik NuGet API key through Visual Studio. See [Visual Studio Prompts for NuGet Credentials Every Time](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#visual-studio-prompts-for-nuget-credentials-every-time).

An easy way to verify your credentials is to [access the Telerik NuGet server directly in the web browser](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#tips-for-handling-common-nuget-issues). Then, depending on your setup, check or update your credentials in:

* The applicable `NuGet.Config` file. There may be <a href="https://learn.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior" target="_blank">multiple such files on the device</a>.
* [Windows Credential Manager](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#removing-saved-credentials)
* In a [CI/CD workflow](https://www.telerik.com/blazor-ui/documentation/deployment/nuget-keys#using-net-cli-commands), which [obtains the credentials from a secret](https://www.telerik.com/blazor-ui/documentation/deployment/nuget-keys#storing-api-keys).

### Special Characters in the Password

[If your credentials are correct and your license includes the requested product and version](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#verify-nuget-credentials-and-package-access), then the password probably contains special characters. You need to escape these characters or the authentication can fail on the NuGet server. For example, a common character you must escape is the ampersand (`&`); however, the character causing the issue may be as unique as the section character (`§`).

To solve the issue:

1. Change the password so that it doesn't include characters you need to escape.
2. Escape the special characters before storing the credentials. For example, `my§uper&P@§§word` encodes to `my&sect;uper&amp;P@&sect;&sect;word`.

Avoid using an online encoder utility for a password. Instead, use a Powershell command:

```PowerShell.skip-repl
Add-Type -AssemblyName System.Web
[System.Web.HttpUtility]::HtmlEncode('my§uper&P@§§word')
```

![Powershell Encoding](https://www.telerik.com/blazor-ui/documentation/assets/a5477905fe5c60701cb7ef75e5d47bc6/encode-passwords-with-powershell.png)

## Unable to Find Package

If the error occurs for the `Telerik.UI.for.Blazor` package, it may look like this:

`error NU1101: Unable to find package Telerik.UI.for.Blazor. No packages exist with this id in source(s): nuget.org`

Such an error implies that the [Telerik NuGet source](https://www.telerik.com/blazor-ui/documentation/installation/nuget) is not added or enabled. The possible causes are:

* Missing Telerik NuGet source configuration in the `NuGet.Config` file.
* The correct `NuGet.Config` file is not used, because it is missing or misplaced.

If the error occurs in a Docker scenario, the solution is to copy the `NuGet.Config` file (or configure the NuGet source) explicitly during the Docker image build. You can also [reference the `NuGet.Config` file path explicitly in the `dotnet restore` command](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-restore#options). For more information, see the [Docker section](https://www.telerik.com/blazor-ui/documentation/deployment/ci-cd-build-server#docker) in the deployment documentation and the [private NuGet feeds in Docker](https://www.telerik.com/forums/can-the-telerik-blazor-and-asp-net-tools-be-used-in-a-docker-container) forum thread.

If the error occurs for the [`Telerik.FontIcons` and `Telerik.SvgIcons` icon packages](https://www.telerik.com/blazor-ui/documentation/common-features/icons), the NuGet client is not using `nuget.org` as a NuGet source. The possible causes are:

* The `nuget.org` source is disabled.
* There is [`packageSourceMapping`](https://learn.microsoft.com/en-us/nuget/consume-packages/package-source-mapping), which forces the NuGet client to search for the icon packages in the `nuget.telerik.com` source. However, the icon packages are published on `nuget.org`.

## Visual Studio Prompts for NuGet Credentials Every Time

If you save a valid Telerik NuGet API key through Visual Studio, the Windows Credential Manager saves the username as `nuget.telerik.com\api-key` instead of just `api-key`. This is not expected by the Telerik NuGet server and it rejects the authentication attempt. You have two options:

* [Edit the saved username in the Windows Credential Manager](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#removing-saved-credentials) and remove the `nuget.telerik.com\` part.
* [Remove the saved credentials from the Credential Manager](https://www.telerik.com/blazor-ui/documentation/troubleshooting/nuget-feed#removing-saved-credentials) and then [add the Telerik API key to your global `NuGet.Config` file](https://www.telerik.com/blazor-ui/documentation/installation/nuget#edit-the-nuget-config-file).

## Error 503 Service Unavailable

If you get a message like `Unable to load the service index for source` and error `503 (Service unavailable`), check the Telerik NuGet server health at the [Telerik live services status page](https://status.telerik.com/).

In urgent cases, download the NuGet packages from your [Telerik Account **Downloads** page](https://www.telerik.com/account/downloads/). Then, [set up a local NuGet feed](https://learn.microsoft.com/en-us/nuget/hosting-packages/local-feeds).

## Package Version Not Found

You may encounter an error similar to:

`ProjectName depends on Telerik.UI.for.Blazor (>= 5.1.1) but Telerik.UI.for.Blazor 5.1.1 was not found. An approximate best match of Telerik.UI.for.Blazor 6.0.2 was resolved.`

or

`error NU1102: Unable to find package Telerik.UI.for.Blazor with version (>= 5.1.1)`

This error means one of the following:

* Version `5.1.1` was released outside the active period of your license.
* Version `5.1.1` is not available in your custom (local) NuGet feed.

Choose one of the following options to solve the issue:

* Use an accessible Telerik UI for Blazor version.
* Ask the license holder at your company to assign you another license that includes the desired product version.
* [Set up and use the remote Telerik NuGet package source](https://www.telerik.com/blazor-ui/documentation/installation/nuget) instead of a custom (local) feed. For CI and deployment environments, also check [Restoring NuGet Packages in CI](https://www.telerik.com/blazor-ui/documentation/deployment/nuget-keys).
* Add the required Telerik UI for Blazor version to your custom (local) NuGet feed.

## Unable to Resolve Package due to PackageSourceMapping

Incorrect package source mapping can result in errors similar to:

`NU1100 Unable to resolve 'Telerik... (>= ...)' for 'net...'. PackageSourceMapping is enabled, the following source(s) were not considered: ...`

The solution is to check the **Package Source Mapping** settings in Visual Studio, or [review all applicable `NuGet.Config` files](https://learn.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior#config-file-locations-and-uses) on the machine. Then, [adjust the package source mapping configuration](https://www.telerik.com/blazor-ui/documentation/installation/nuget#package-source-mapping).

## Failed to Retrieve Information from Remote Source

An attempt to use the obsolete Telerik NuGet v2 feed after November 2024 will result in an error:

`Failed to retrieve information about 'Telerik.UI.for.Blazor' from remote source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='Telerik.UI.for.Blazor'&semVerLevel=2.0.0'.`

The solution is to [use the Telerik NuGet v3 feed](https://www.telerik.com/blazor-ui/documentation/installation/nuget).

Another possible reason for the same error is an incorrect NuGet feed URL.

## See Also

* [Setting Up the Online Private Telerik NuGet Feed](https://www.telerik.com/blazor-ui/documentation/installation/nuget)
* [CI, CD, Build Server](https://www.telerik.com/blazor-ui/documentation/deployment/ci-cd-build-server)
