Visual Studio Web Blazer Server App

Hi Guys,

New to Radzen, and using Visual Studio 2022, creating a new Blazor Server App and following the instructions to import Radzen etc. When building the app I receive the error message

Error CS0138 A 'using namespace' directive can only be applied to namespaces; 'Radzen' is a type not a namespace.

The NuGet Package version is 4.25.7. We are inserting the @using Radzen & @using Radzen.Blazor in the apps.razor file. If I create a blazor web app, I can build successfully, seems to be down to the fact that this is a server web app

Can anyone help please?

Cheers
Andy

Hi @ResilientSystems,

Radzen.Blazor works in Blazor server applications without any issues. The error you see means that there is a type called Radzen in your application (probably some class or a file named Radzen.razor). Check of this is the case.

Hi Team,

Apologies for delay, only just got back to this project,and that was the culprit. I renamed my page, and everything started working.

Thank you very much
Andy