I am using Telerik.UI.for.Blazor version 4.1.0. I recently cleared my nuget cache, and started getting the error noted below. I have already followed the procedure to clear nuget cache and re-install Telerik.UI.for.Blazor, but I keep getting this build error. This is happening on pages that are using Grid, at line:
var datasourceResult = folderStructure.ToDataSourceResult(args.Request);
error CS0012: The type 'DataSourceRequest' is defined in an assembly that is not referenced. You must add a reference to assembly 'Telerik.DataSource, Version=2.1.3.0, Culture=neutral, PublicKeyToken=29ac1a93ec063d92'.
7 Answers, 1 is accepted
Hello everyone,
We aim to resolve the problem today, March 16. I am updating this post with the latest information.
===
@ 14:25 UTC
The Telerik.DataSource package problem should be resolved for everyone now. Please do the following:
- Clean your apps.
- Clear the NuGet cache (or at least remove the telerik.datasource folder from the cache) to load the new package from the server.
- Use the Telerik NuGet feed and not local feeds that are created by the 4.1.0 installer. Local installer feeds will be possible to use with version 4.2.0, which will be released in late April.
We are still monitoring the NuGet server performance just in case. Thanks everyone for your patience!
===
@ 14:10 UTC
The correct Telerik.DataSource NuGet package was successfully restored on our NuGet server. A small number of customers may still download an outdated cache, which should be a temporary issue.
The NuGet server itself is rebuilding its cache now, which will result in degraded performance. We expect this to complete in about an hour or in the worst case scenario, in several hours.
===
We experienced two separate and unrelated problems yesterday -
- The NuGet server was down, which is already resolved. You can bookmark our Telerik Status page for future reference, if you haven't already.
- The published Telerik.DataSource package has a different public key token, so the build processes reject it. We uploaded the package by mistake, as a result of a completely revamped release infrastructure that we used for the first time with UI for Blazor 4.1.0. We know what caused the new package to go live and we will adjust our release process to not allow the same problem again.
Our current goal is to fix the issue in such a way, so that you don't have to change anything in your setup (except clearing the NuGet cache where applicable). In other words, we will try to re-upload the old correct Telerik.DataSource package to the NuGet server.
Please excuse us for the trouble with the broken builds. You can keep an eye on this forum thread for updates, or follow this feedback portal item to receive automatic email updates.
In the meantime, the possible workaround is to use a local NuGet feed with the Telerik.DataSource.nupkg file from telerik.com/account/downloads (notice the Version dropdown at the top of the page).
DO NOT clear your NuGet cache if your app builds fine, as this will cause the NuGet client to download the invalid NuGet package.
Regards,
Dimo
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
I see that the Telerik Nuget status has been upgraded to "Operational". Does this mean that Azure devops users should be able to build their apps successfully now?
Yeah, it's interesting that they were technically different issues. Fortunately, it seems that a plan is in place for Blazor users:
https://status.telerik.com/incidents/rcg165d4t4zn
I'm having some issues getting this workaround to work, I am trying to use the Telerik.UI.for.Blazor package which in turn has a dependency on Telerik.DataSource, the publickeytoken of the Telerik.DataSource assembly that I can download from the portal reports a FullName of:
Which is obviously not the same PKT that the Telerik.UI.for.Blazor package is looking for (29ac1a93ec063d92)
I've tried downloading and adding both of the nupkg files manually but I think I'm missing a step here?

Not an answer but a workaround.
Download the nuget package from
Product Download | Your Account (telerik.com)
and use it in the pipeline
Thanks for your time, hope it is fixed soon.
for GitHub
https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry
Azure DevOps
I do not know of any official documentation from Telerik, but this should work if the nuget files have been downloaded from the link above.
I just ran my pipeline and it works again.

We are having the exact same issue. We did not bump any versions at all, the exact same code that was compiling on our CI yesterday, is failing today with a similar message.
EDIT: not an answer, guess I clicked the wrong button.
When you build the Dockerfile, you'll get an error.
error CS0012: The type 'DataSourceRequest' is defined in an assembly that is not referenced. You must add a reference to assembly 'Telerik.DataSource, Version=2.1.3.0, Culture=neutral, PublicKeyToken=29ac1a93ec063d92'.

When you build the Dockerfile, you'll get an error.
error CS0012: The type 'DataSourceRequest' is defined in an assembly that is not referenced. You must add a reference to assembly 'Telerik.DataSource, Version=2.1.3.0, Culture=neutral, PublicKeyToken=29ac1a93ec063d92'.

If not I will probably be forced to hack the pipeline to get things working.


There is some progress in the sense that the error changed for the build in BuildKite
Failed to download package 'Telerik.DataSource.2.1.3' from 'https://nuget.telerik.com/v3/package/telerik.datasource/2.1.3/telerik.datasource.2.1.3.nupkg'.
Response status code does not indicate success: 500 (Internal Server Error).
... but still fails?
When reverting back to my backupped packages it builds again, but after nuget cache clearing and just installing the package with dotnet restore it fails.
Since the devops pipeline cannot use my local backupped packages i would like a solution for this.
Having the same problem with CompositeFilterDescriptor.
A bitwise comparison between the NuGet package for Telerik.Datasource, v2.1.3 that I had downloaded before I cleared my NuGet cache and the one I just downloaded shows that the packages are DIFFERENT, including, I guess, the public key token.
Copying the old version of the Telerik.Datasource, v2.1.3 NuGet package back into the NuGet cache makes the problem go away again.
We got the same issue and using the cache local works. But our pipeline is dead and right before release day.
This needs to get fixed fast. Like yesterday fast
Have the same problem after updating to 4.1.0