Error when Build Project - NuGet package restore failed.

2 Answers 165 Views
Ajax
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Rakhee asked on 07 Mar 2024, 12:10 PM

Im having an issue with a application im working on within VS 2019 asp.net

When I build my application I get the error below:

NuGet Package restore failed for project Planning_BO: Unable to find version '2022.1.119' of package 'Telerik.UI.for.AspNet.Ajax.Net35'.
  https://nuget.telerik.com/v3/index.json: Package 'Telerik.UI.for.AspNet.Ajax.Net35.2022.1.119' is not found on source 'https://nuget.telerik.com/v3/index.json'.

 

Im not sure how to resolve this. I have tried https://api.nuget.org/v3/index.json still the same issue.

Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
commented on 07 Mar 2024, 01:32 PM

I have tried to uninstall and reinstall but get the same errors.
Rumen
Telerik team
commented on 12 Mar 2024, 08:28 AM

Thank you for bringing this to our attention. We've noted a few similar reports recently, though they seem to be limited to a small number of users. Despite thorough testing across various regions and reviewing our monitoring data, we haven't been able to reproduce the issue on our end.

We're curious if you're using Azure DevOps or AWS West, as this is where most of the reported concerns have originated. Our preliminary assessment suggests there might be a networking issue between Microsoft's services and our servers in Chicago.

To further investigate on your end, you can perform a quick test. Please visit the following link: https://nuget.telerik.com/v3/search?q=telerik.ui.for.aspnet.ajax. You'll be prompted to log in before you can see the results in JSON format. This test may help us determine if the problem replicates in your environment.

If you experience this again, please also try the URL test from your local machine. This can help isolate if your behavior is matching what I am seeing with other teams. It's looking like a Tier 1/2 to Tier 1/2 networking issue.
Justin
Top achievements
Rank 1
commented on 14 Mar 2024, 09:25 PM

We're using Azure DevOps and are seeing a similar issue when trying to build:

 

##[error]The nuget command failed with exit code(1) and error(NU1301: Failed to retrieve information about 'Azure.Core' from remote source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='Azure.Core'&semVerLevel=2.0.0'.

 

Could this be the same issue? Any solutions?

 
Rumen
Telerik team
commented on 15 Mar 2024, 02:29 PM

Hi Justin,

The problem you're experiencing might be related to the one Rakhee described or it could be due to an incorrect nuget server url.
If it appears to be a different one, can you replace the URL https://nuget.telerik.com/nuget/... with the https://nuget.telerik.com/v3/index.json one and test again?

 

Simon
Top achievements
Rank 1
commented on 08 Apr 2024, 02:51 PM

Just to pile on, we are also having a restore problem for a week now.

(Restore target) ->

error NU1100: Unable to resolve 'Telerik.Documents.Core (>= 2024.1.305)' for 'net6.0'.

~ error NU1100: Unable to resolve 'Telerik.Documents.Fixed (>= 2024.1.305)' for 'net6.0'.

~ error NU1100: Unable to resolve 'Telerik.Zip (>= 2024.1.305)' for 'net6.0'.

0 Warning(s)

3 Error(s)

Rumen
Telerik team
commented on 08 Apr 2024, 10:30 PM

I have received updates indicating that the issue with accessing the Telerik NuGet server should now be resolved. Could you please attempt to reconnect? 

Just make sure that the packageSourceMapping's names need to match. So if you're using
TelerikServer
as the name in the packageSources, then the packageSourceMapping also needs to be
TelerikServer




If the problem still persists, I recommend following the temporary solutions outlined in the Temporary NuGet Server Workarounds section.

Once you've done so, please let us know the outcome. Your feedback is crucial for us to ensure the problem is fully addressed. Thank you for your patience and cooperation.

Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
commented on 09 Apr 2024, 11:59 AM

Hi

Thank you for your response, I have tried but still getting the same error.

I have searched for the packageSource Mapping you have advised to check but I dont seem to have this code in my solution? Where would it be please? which file?

Thanks

Rakhee

Rumen
Telerik team
commented on 09 Apr 2024, 03:43 PM

Hi Rakhee,

Your current license permits access to versions released between June 16, 2018, and May 7, 2021, making the 2022.1.106 version beyond its scope. To use version 2022 or any subsequent releases, you'll need to renew your license. Alternatively, you can adjust your settings to use a version that falls within your current license's validity period.

Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
commented on 10 Apr 2024, 07:35 AM

Thank you, can you advise where to adjust settings please?

I tried to uninstall the 2022 version but get the same error as the screenshot in previous post.

Thank you

Rumen
Telerik team
commented on 10 Apr 2024, 04:11 PM

Hi Rakhee,

When discussing the use of Telerik Web UI in your project, it's important to carefully consider the licensing implications to ensure compliance with the terms. If your project references the 2022 version of Telerik, it doesn't automatically mean that the development machine in use is properly licensed for that version. This issue could arise if the NuGet package was initially configured by a colleague who possesses a license for a newer version of Telerik Web UI than you do.

If you are not developing with Telerik in the concrete project, then you can get a NuGet key from the colleague who has the 2022-2004 license. This would not break out the licensing agreement.

Conversely, if you're working with a version newer than your license permits, this constitutes a breach of the licensing agreement. To rectify this situation, you might consider acquiring an additional license for yourself as a developer or being added as a licensed developer under the newer version's purchase agreement.

Regarding the issue you've encountered while attempting to uninstall Telerik, there could be several underlying causes. A more straightforward method than using the Package Manager UI is to directly remove the reference by right-clicking on it in your project's solution explorer. For guidance on removing an assembly reference, you can check this useful tutorial -  https://docs.telerik.com/devtools/aspnet-ajax/knowledge-base/common-update-assembly-reference
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
commented on 11 Apr 2024, 09:28 AM

Thank you, This is now resolved, my license is now updated. 
Rumen
Telerik team
commented on 11 Apr 2024, 10:39 AM

Thank you for sharing the great news, Rakhee! I am glad that everything is fine now. Happy coding.

2 Answers, 1 is accepted

Sort by
0
Anita
Top achievements
Rank 1
Iron
answered on 05 Apr 2024, 04:31 PM

We are experiencing similar issue. It is unstable. Sometimes it works and most times it is failing this week,

##[error]The nuget command failed with exit code(1) and error(Errors in packages.config projects
Unable to find version '2024.1.124' of package 'Telerik.Documents.CMapUtils'.
C:\Users\VssAdministrator\.nuget\packages\: Package 'Telerik.Documents.CMapUtils.2024.1.124' is not found on source 'C:\Users\VssAdministrator\.nuget\packages\'.
https://api.nuget.org/v3/index.json: Package 'Telerik.Documents.CMapUtils.2024.1.124' is not found on source 'https://api.nuget.org/v3/index.json'.
An error occurred while sending the request.
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 50.56.17.208:443)

Rumen
Telerik team
commented on 08 Apr 2024, 01:09 PM

Hi Anita,

The error is the same as the one discussed in the following forum post: Unable to load the service index for source https://nuget.telerik.com/v3/index.json. We are doing our best to resolve this situation with the highest priority. 

Can you please share your public IP address so we can whitelist your server?

You can use this command

(Invoke-WebRequest -uri "http://ifconfig.me/ip").Content

that sends a request to http://ifconfig.me/ip, which is a service designed to return the public IP address of the caller, and then it outputs just that IP address as a string.

0
Anita
Top achievements
Rank 1
Iron
answered on 10 Apr 2024, 12:33 PM

The issues seems to be resolved without any adjustments to the code.

Thanks,

Anita

Rumen
Telerik team
commented on 10 Apr 2024, 03:33 PM

Hi Anita,

Thank you for confirming that the problem is resolved!

Tags
Ajax
Asked by
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Anita
Top achievements
Rank 1
Iron
Share this question
or