I GET THIS ERROR

1 Answer 14 Views
.NET Framework General Discussions Report Viewer - Blazor Report Viewer - HTML5
Juan
Top achievements
Rank 1
Juan asked on 20 May 2025, 07:59 PM

i get this error https://nuget.telerik.com/v3/index.json.   Response status code does not indicate success: 401 (Unauthorized). 

I BOUGHT THE $699 TELERIK REPORTING VERSION and I don't have a way to see my token in my account to connect to the Telerik feed. My account still seems to be a trial account. I already used my user ID, my email address, and my apikay to connect, but I couldn't. Any suggestions would be welcome. Thanks in advance.

Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
commented on 20 May 2025, 08:06 PM

Hello Juan,

Can you login here -> https://www.telerik.com/account/ ?You should use your user to login and see details like account info, available licenses, download option, etc. This will confirm that your user is OK and you could check if you have the proper licenses assigned.

Regards,
Krasimir Baylov

1 Answer, 1 is accepted

Sort by
0
Lance | Senior Manager Technical Support
Telerik team
answered on 21 May 2025, 06:40 PM

Hi Juan,

That error means there was an issue with the credentials used to authenticate with the server. Add that to the fact that you see evidence of a different account than you're expecting really leads me to believe that you have acached credentials.

Clean Up

Take the following steps:

  1. Close Visual Studio (or any IDE that is usuing NuGet)
  2. Credential Manager Check
    1. Open the Windows app named "Credential Manager" (you usually have to type most of the name for it to appear int he start menu)
    2. Switch to the Windows Credentials tab
    3. Scroll down, find, and delete both items:
      • nuget.telerik.com
      • VSCredential_nuget.telerik.com
  3. NuGet Config check
    1. Open the file located at %appdata%/NuGet/NuGet.Config
    2. Look for a packageSourceCredentials section
    3. If you see a Telerik section, delete it
    4. Save the changes

Moving Forward

Now you have a clean start and have a choice to make. you can move forward with one of these two options

  • You can open Visual Studio again and let it prompt you to enter credentials again (gets stored Windows Credential Manager is not supported by all apps)
  • Add correct credentials to the nuget.config file (supported by every process)

I personally prefer option #2, because it is a single location that all applications and CLI commands will use. So, go ahead an add a packageSourceCredentials

Recommended Approach: Example

Here's a full example with comments to explain:

  • The Telerik source name needs to match the other places its used
  • The value for the username should be "api-key" (literally)
  • The value for the password should be the Telerik NuGet Key you generated

<?xml version="1.0" encoding="utf-8"?>
<!-- Helpful docs https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file -->
<configuration>
  <packageRestore>
    <add key="enabled" value="True" />
    <add key="automatic" value="True" />
  </packageRestore>
  <packageManagement>
    <add key="format" value="0" />
    <add key="disabled" value="False" />
  </packageManagement>
  
  <!-- Learn how to set a package source https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file#packagesources -->
  <packageSources>
    <clear/>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="Telerik_v3_Feed" value="https://nuget.telerik.com/v3/index.json" protocolVersion="3"/>
  </packageSources>
  
  <!-- Learn how to use authenticated feeds https://docs.microsoft.com/en-us/nuget/consume-packages/consuming-packages-authenticated-feeds -->
  <!-- Learn how to setup a credential https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file#packagesourcecredentials -->
  <packageSourceCredentials>
    <Telerik_v3_Feed>
      <add key="Username" value="api-key" />
      <add key="ClearTextPassword" value="PASTE_THE_VALUE_YOU_GENERATE_HERE" />
    </Telerik_v3_Feed>
  </packageSourceCredentials>
  
  <!-- Learn how package source mapping works https://docs.microsoft.com/en-us/nuget/consume-packages/package-source-mapping?Wt.mc_id=DX_MVP5000553 -->
  <packageSourceMapping>
    <!-- Use the nuget.org for everything else -->
    <packageSource key="nuget.org">
      <package pattern="*" />
      <!-- Telerik packages on nuget.org that need to be matched in this mapping-->
      <package pattern="Telerik.Licensing" />
      <package pattern="Telerik.FontIcons" />
      <package pattern="Telerik.SvgIcons" />
    </packageSource>
    <!-- This mapping group will use the Telerik server for ONLY relevant packages. It avoids erroneously searching the Telerik server for non-Telerik packages-->
    <packageSource key="Telerik_v3_Feed">
      <package pattern="JustMock*" />
      <package pattern="Telerik*" />
      <package pattern="Kendo*" />
      <package pattern="UI.for*" />
    </packageSource>
  </packageSourceMapping>
</configuration>

Now, save the changes. every application or process on your machien will use the credential int he packageSourceCredentials section. you will have a single source of trush, and only a single location to update when credentials change

Important: If you are goign to be checkign this config file in with your code, do not use the nuget key in plan text. Instead, use an environment variable and set the var at build time. Here's a real example => NuGet.Config#L25-L26 and build-time set: main_build-wpf.yml#L15-L16 

Further Assistance

If you have trouble with this, please open a private support ticketand attach all the things you've modified. This will allow us to investigate directly on your issue and make precise recommendations.

Regards,
Lance | Senior Manager Technical Support
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
.NET Framework General Discussions Report Viewer - Blazor Report Viewer - HTML5
Asked by
Juan
Top achievements
Rank 1
Answers by
Lance | Senior Manager Technical Support
Telerik team
Share this question
or