Completed
Last Updated: 17 Aug 2023 13:54 by ADMIN
Release 2023 R3 - PI 2 (09.08.2023) - Hotfix
paul
Created on: 02 Aug 2023 12:48
Category: Installer and VS Extensions
Type: Bug Report
4
Blazor app crashes in the browser due to missing DLL for the Shared project

A Blazor WebAssembly app crashes at runtime due to a missing DLL for the Shared project. This happens after I makes any change to the app, e.g. in Index.razor in the Client project. The Shared project remains unchanged.

The exact exception is:

FileNotFoundException: Could not load file or assembly [AppName].Shared.dll

If I clean and rebuild the solution, it runs again, until I make another change.

If I uninstall the Telerik Blazor Visual Studio extension, the error goes away. Alternatively, another possible workaround is to reduce the number of parallel builds in Visual Studio to 1.

4 comments
ADMIN
Nikola
Posted on: 17 Aug 2023 13:54

Hi Paul,

I apologize for the delayed reply.

I am glad to hear that the issue is resolved with the latest VS extension version. 

In case there are any other issues or you have any questions do not hesitate to get back to us.

Regards,
Nikola
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
paul
Posted on: 11 Aug 2023 12:18

Hi nikola,

Thanks for the update.

I brought the system first again in the faulty state (by activating parallel builds) and could verify that the error is still there (with the "old" extension).

Then I installed the latest update of the telerik extension.

Problem fixed !

Thanks and have a great weekend

paul.

ADMIN
Nikola
Posted on: 11 Aug 2023 11:41

Hello,

I am sorry to hear about the difficulties you faced using the VS extensions.

We have identified an issue that could have caused this behavior.  We have released an official version that contains a fix for this. So please remove all instances of the extension from Visual Studio and then get the latest version 2023.2.809 from the Visual Studio Marketplace by following the steps outlined here.

I am looking forward to your feedback.

Regards,
Nikola
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Vandenberg
Posted on: 07 Aug 2023 09:07

Very similar situation happens on Blazor Server App.

Details : while building app, all works perfectly, you can even run app on localhost, not a single issue. When you attempt to deploy to Azure, build is called during process and fails. It reports missing namespace "Shared", consequently cannot see App class. I Attempted to create razor.cs files with just namespace explicitly mentioned, as it looks it does not see namespace, if there is no cs file in folder. That helps, but then another errors, when classes from razor files are not visible from razor.cs files and vice versa. In result, it is not repairable in code.

Disabling extensions for Blazor and ASPNet fixes problem immediatelly.

It was working on previous version.

It shows same bahaviour even for clean MS Blazor server template (without anything from Telerik) - create new app, attempt to deploy to Azure, build while publish fails, it extensions are active.