hi
The error is:
[ERR] An unhandled exception has occurred while executing the request.
Volo.Abp.Http.Client.AbpRemoteCallException: An error occurred during the ABP remote HTTP request. (The operation was canceled.) See the inner exception for details.
---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
---> System.IO.IOException: Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..
---> System.Net.Sockets.SocketException (995): The I/O operation has been aborted because of either a thread exit or an application request.
System.Net.Sockets.SocketException (995): The I/O operation has been aborted because of either a thread exit or an application request.
This should be related to the network of the running environment, I have no experience with this.
hi
In which project did you add your ModulePermissionRoleValueProvider to ManagementProviders?
Does the current debug project depend on your project?
Yes, Inherit IDisposable and add Dispose method.
public void Dispose()
{
ApplicationConfigurationChangedService.Changed -= ApplicationConfigurationChanged;
}
ok, Does it slove your problem?
hi
BTW, List<PermissionValueProviderInfo> Providers contains no elements which also looks weird to me, i think logically it always would have to contain at least 'MR' according to the DB and the corresponding screenshot above.
Can you debug the app to inject the IOptions<PermissionManagementOptions> to check its ManagementProviders property.
hi
You can share the code of the service call.
For example, how do you grand permission to a role and then check the permissions code snippet?
hi
The URL in appsettings.json is still localhost.
https://fbd-staging.azurewebsites.net/appsettings.json
And can you share the Logs.txt files?
public class Program
{
public async static Task<int> Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.Console())
.CreateLogger();
hi
Please share your code to reproduce this.
Thanks.