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. 
Developer technologies | .NET | Blazor
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

Answer accepted by question author
  1. Ryan Hill 30,326 Reputation points Microsoft Employee Moderator
    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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.