Exception Value cannot be null or empty. (Parameter 'areaName') #10033
Unanswered
omarhassani
asked this question in
Q&A
Replies: 2 comments 1 reply
-
This is an issue with how you register these services. Could be the order or because you are not taking in consideration that we register these services on each tenants somewhere else. |
Beta Was this translation helpful? Give feedback.
0 replies
-
So it should be something like following. services.AddOrchardCore().AddMvc().ConfigureServices(svc =>
{
svc.AddAuthentication(options => options.DefaultSignOutScheme = AzureADDefaults.AuthenticationScheme)
.AddAzureAD(options => Configuration.Bind("AzureAd", options));
svc.Configure<RazorPagesOptions>(options => {
var policy = new AuthorizationPolicyBuilder()
.RequireAuthenticatedUser()
.Build();
options.Filters.Add(new AuthorizeFilter(policy));
});
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
To Reproduce
Steps to reproduce the behavior:
But, it show the folowing error:
Could you help please
Beta Was this translation helpful? Give feedback.
All reactions