Hi @maliming
I was able to recreate the problem with a brand new templated ABP project at version 7.0.1 (Blazor Server).
Steps to reproduce;
"Azure": {
"SignalR": {
"ConnectionString": "connection string I emailed you yesterday"
}
}
public override void ConfigureServices(ServiceConfigurationContext context)
{
...
context.Services.AddSignalR().AddAzureSignalR();
}
context.Services.AddSignalR().AddAzureSignalR(); and then login as the tenant and you'll now be properly logged into the tenantLogged in as Tenant - seeing host data and no tenant indicator on upper right of screen
I found this from 4 months ago https://support.abp.io/QA/Questions/4376/Permissions-not-working-with-Azure-SignalR-Service
Was there ever a resolution to this issue?
This appears to be the same kind of issue. We see the azure signalr connection taking place, but the abp menu/permission is all pointing to the host , even though we are logging into a particular tenant.
Also, the app doesn't need to be deployed to Azure to see the issue. The issue happens in local development when we have the signalR connection string defined in secrets.json.
Hi,
That's strange, I don't get the error
An error has occurred. This application may no longer respond until reloaded. Reload
I just get an empty menu on the left with no tenant designator in the upper right next to the user name.
Which URL were you getting that with, the demo.dev or demo.qa URL?
I added to the problem url (demo.qa) in program.cs
services.AddServerSideBlazor().AddCircuitOptions(e=> {
e.DetailedErrors = true;
});
and redeployed to the problem URL demo.qa (URL with the SignalR service turned on) and I don't see any errors in the logs or in the browser tools. I just emailed you the full log after the redeploy.
Here is a comparison of the browser console ....
demo.dev url with no SignalR service enabled - works perfectly fine:
hi
Can you share an online URL so I can test it?
I sent you a private email with a URL and credentials.,
Thanks
ABP Commercial 7.0.1 / Blazor Server / EF / Non tiered / Separate Host DB, Separate Tenant DBs / Lepton Theme
Hi,
We are attempting to use Azure's managed SignalR service in our Blazor Server application in order to make it more scalable.
Using MS documentation, we created a SignalR resource in Azure and used the issued SignalR connection string when configuring services...
context.Services.AddSignalR().AddAzureSignalR(<SignalR-Connection-string-here>);
The problem we are having is that the application no long works as expected once this line of code is introduced. What we are seeing is the logic for our tenant resolver (based on subdomain) no longer works. When logging in under tenant1.myapp.com, the UI seems to be logging into the host instead of tenant1. No exception is logged.
As soon as we remove the the call to AddSignalR().AddAzureSignalR everything works as expected.
Is there something specific with a templated Blazor Server solution in ABP that needs to be accounted for?
Any thoughts/suggestions? Thanks in advance,
Brian
ABP Commercial 7.0.1 / Blazor Server / EF / Non tiered / Separate Host DB, Separate Tenant DBs
Hi,
We are inheriting from the FeatureDefinitionProvider to create custom feature groups and features and we don't see a way to set the ordering of feature groups.
How can this be done with ABP (Blazor Server / Lepton Theme)?
We essentially want our features listed before features from dependent ABP modules.
Thanks in advance!
The issue was resolved once using https.
Thanks
HI @liangshiwei
Thank you. I'm waiting for our TLS certs to be issued and I expect the issue(s) to be resolved once we are running https.
I'll follow up and confirm the resolution soon...
Update:
When we run the deployed application using Azure App Service's default URL.. {appname}.azurewebsites.net... everything works fine.
However, for production, we need to map the {appname}.azurewebsites.net URL to a different production URL using DNS and Azure's Application Gateway service.
We receive the errors only when accessing the production mapped URL.
Our app works as expected in every way under the production URL, except for the saving of a user's profile (My Account).
Is there an override or workaround?
Thanks in advance.
ABP Commercial 7.0.1 / Blazor Server / EF / Non tiered / Separate Host DB, Separate Tenant DBs
Hi,
We are receiving the ABP error "An error has occurred! Error detail not sent by server" whenever something is saved on the user profile / my account area. Everything works fine in local development, but the error occurs when we deploy the app (Azure App Service).
No exception is logged when the error occurs, but we see a ERR_TOO_MANY_REDIRECTS in the browser console. I've included the log when saving 'Personal Info' on the 'My Account' screen below.
We see the following in the log
The required antiforgery header value "RequestVerificationToken" is not present.
Authorization failed for the request at filter 'Volo.Abp.AspNetCore.Mvc.AntiForgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter'.
We are using the Lepton theme.
Please advise as to what might be causing this issue when the app is deployed.
2023-04-22 15:58:30.105 +00:00 [INF] Request starting HTTP/1.1 PUT http://dev.nvisiononline.net/api/account/my-profile application/json 340
2023-04-22 15:58:30.216 +00:00 [INF] Executing endpoint 'Volo.Abp.Account.ProfileController.UpdateAsync (Volo.Abp.Account.Pro.Public.HttpApi)'
2023-04-22 15:58:30.216 +00:00 [INF] Route matched with {area = "account", controller = "Profile", action = "Update", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Account.ProfileDto] UpdateAsync(Volo.Abp.Account.UpdateProfileDto) on controller Volo.Abp.Account.ProfileController (Volo.Abp.Account.Pro.Public.HttpApi).
2023-04-22 15:58:30.216 +00:00 [WRN] The required antiforgery header value "RequestVerificationToken" is not present.
2023-04-22 15:58:30.216 +00:00 [INF] Authorization failed for the request at filter 'Volo.Abp.AspNetCore.Mvc.AntiForgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter'.
2023-04-22 15:58:30.217 +00:00 [INF] Executing StatusCodeResult, setting HTTP status code 400
2023-04-22 15:58:30.217 +00:00 [INF] Executed action Volo.Abp.Account.ProfileController.UpdateAsync (Volo.Abp.Account.Pro.Public.HttpApi) in 0.536ms
2023-04-22 15:58:30.217 +00:00 [INF] Executed endpoint 'Volo.Abp.Account.ProfileController.UpdateAsync (Volo.Abp.Account.Pro.Public.HttpApi)'
2023-04-22 15:58:30.225 +00:00 [INF] Request finished HTTP/1.1 PUT http://dev.nvisiononline.net/api/account/my-profile application/json 340 - 302 - - 119.6890ms
2023-04-22 15:58:30.251 +00:00 [INF] Request starting HTTP/1.1 PUT http://dev.nvisiononline.net/Error?httpStatusCode=400 application/json 340
2023-04-22 15:58:30.255 +00:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)'
2023-04-22 15:58:30.256 +00:00 [INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared).
2023-04-22 15:58:30.256 +00:00 [WRN] The required antiforgery header value "RequestVerificationToken" is not present.
2023-04-22 15:58:30.256 +00:00 [INF] Authorization failed for the request at filter 'Volo.Abp.AspNetCore.Mvc.AntiForgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter'.
2023-04-22 15:58:30.256 +00:00 [INF] Executing StatusCodeResult, setting HTTP status code 400