Declined
Last Updated: 27 Sep 2019 06:18 by ADMIN
Mark
Created on: 25 Sep 2019 18:34
Category: UI for Blazor
Type: Bug Report
0
Telerik.DataSource, Version=1.2.0.0, does not load

 Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
      Unhandled exception in circuit '_2TiBAG0g2G9PCcWgKc-G4zmfFAGiDJEO7pd7Jbjxpk'.
System.IO.FileLoadException: Could not load file or assembly 'Telerik.DataSource, Version=1.2.0.0, Culture=neutral, PublicKeyToken=20b4b0547069c4f8'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'Telerik.DataSource, Version=1.2.0.0, Culture=neutral, PublicKeyToken=20b4b0547069c4f8'
   at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)

 

Did I miss installing something.

Used the installer telerik.ui.for.blazor.2.1.0.commercial.msi

 

6 comments
ADMIN
Marin Bratanov
Posted on: 27 Sep 2019 06:18

Hi Mark,

The "root" cause of the problem is that, for some reason, the framework tries to look for a "1.2.0.0" version but such a version does not exist, only "1.2.0" exists. We can't control how references are resolved and this seems like some bug in the tooling to me. You have already unzipped the nuget packages and you see that the dll files are there, and their versions are correct. This is all we can do.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Mark
Posted on: 26 Sep 2019 14:31

I used FTP to access the Azure App and deleted the version of DataSource on the site and re published to fix the missing file error.

The missing modified date may be the root cause of the issues I encountered.

Mark
Posted on: 26 Sep 2019 13:47

When I publish my app to Azure App Service I get the following error:

[2019-09-26T13:39:56.226Z] Error: System.IO.FileNotFoundException: Could not load file or assembly 'Telerik.DataSource, Version=1.2.0.0, Culture=neutral, PublicKeyToken=20b4b0547069c4f8'. The system cannot find the file specified.
File name: 'Telerik.DataSource, Version=1.2.0.0, Culture=neutral, PublicKeyToken=20b4b0547069c4f8'
   at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)

I deleted the bin and obj folders on all projects in the solution and republished with the same results.

I notices the the Telerik.DataSource.dll file in the publish folder does not have a modified date.

Whereas the Telerik.Blazor.dll file has both a created and modified date, but the modified date is before the created date???

Is the DataSource dll not getting published due to the missing modified date on the file?

 

 

 

ADMIN
Marin Bratanov
Posted on: 26 Sep 2019 07:02

Hi guys,

Cleaning a project is often needed in Blazor. For example, if one project in the solution fails (say, data access logic, or models, or web api), it is possible that the project may still run but use a previous build, and a subsequent build may have unexpected problems. The solution for that is cleaning the solution. If you have built in different modes (say, release and debug), you may even have to go an manually delete the bin and obj folders because the clean operation does not always delete everything. I do hope this will improve as the tooling matures.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Mark
Posted on: 25 Sep 2019 23:14
Tom's solution worked for me as well.
Tom
Posted on: 25 Sep 2019 20:07
I had this same issue. I cleaned the project, killed and restarted VS and it worked.