Blazor WASM Server hosted, error on rolemanager

UrielMhezzek 21 Reputation points
2021-10-30T16:15:25.647+00:00

I trying my first steps with Azure. I blazor wasm server hosted in a azure web app on linux base. My code works on my local system, but it dosn't work on azure server.

i identified with many uploads my app the line with error, i think here comes a error, but i don't know why.

var adminRoleInDb = await _roleManager.FindByNameAsync(RoleConstants.AdministratorRole);
```First i search the logs. I looked at the logstream, but i don't see any error there and no of my log messages, too. I don't know, what i can do, to identify the error. 
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,383 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,855 questions
{count} votes

Accepted answer
  1. Ryan Hill 25,486 Reputation points Microsoft Employee
    2021-11-03T22:34:21.917+00:00

    Hi @UrielMhezzek ,

    A good place to start would be ASP.NET Core Blazor WebAssembly with Azure Active Directory groups and roles App Role section which has outlines steps on how you can configure and interact with roles. You didn't indicate the what error you're actually getting but I'm thinking you haven't setup the app roles in your application.

    0 comments No comments

0 additional answers

Sort by: Most helpful