Hi
I got another type of unhandled exception. This time is about Swagger:
e.Diagnostics.ExceptionHandlerMiddleware - An unhandled exception has occurred while executing the request. System.InvalidOperationException: Unable to resolve service for type 'Swashbuckle.AspNetCore.Swagger.ISwaggerProvider' while attempting to Invoke middleware 'Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware'. at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.GetService(IServiceProvider sp, Type type, Type middleware) at lambda_method(Closure , Object , HttpContext , IServiceProvider ) at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context) at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context) at Abp.AspNetZeroCore.Web.Authentication.JwtBearer.JwtTokenMiddleware.<>c__DisplayClass0_0.<<UseJwtTokenMiddleware>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Abp.AspNetZeroCore.Web.Authentication.JwtBearer.JwtTokenMiddleware.<>c__DisplayClass0_0.<<UseJwtTokenMiddleware>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)
Hi
Backend sometimes freezes in production without any response until restarting IIS. No related logs found to tell anything about this problem. I only catched ony exception in logs "There is already an open DataReader associated with this Command which must be closed first" and I'm not sure if such a bug can freeze the whole system? or such type of exceptions should be silently happening without stucking the system
Any idea how to find and solve this annoying critical problem?
Thanks
Hi
I noticed Hangfire UI is available only for Host admin. Can I do the same for Swagger UI?
Thanks
Hi
What RedirectUrl should I define for OpenID callback in ASPNetCore with Angular version?
Hi
I noticed that chat doesn't keep profile picture of friends up-to-date. For example a friend I added before he sets his profile picture keeps showing an empty picture after he uploads a picture as well. Actually this was expected as I found you persist pictureId in Friendship table (FriendProfilePictureId) and I didn't find where you update FriendProfilePictureId by updating anyone's profile picture. Same with other denormalized fields in Friendship like FriendTenancyName, FriendUserName if they aren't maintained.
Not sure if this explains the problem or I missed something?
Thanks
Two-factor authentication screen after login is loading forever Two factor is a feature I recently got included in the last upgrade
Hi,
I just want to make sure you generate themes CSS from metronic SASS files? I currently have a rebuild on any SASS update but without noticing an effect on the CSS files
It seems that JQuery was completely removed in your last version. I still need legacy version of JQuery jstree as I made significant updates to organizationTree. But now I get the following error when building the project:
Property 'jstree' does not exist on type 'JQuery<HTMLElement>'.
Another side effect from last update is losing all enums in Angular as they aren't included in service-proxies
Hi!
Besides realtime notifier through SignalR, I would like to add an additional notification channel. Can you please describe the steps required to add a new notification distributer.
BTW, I tried the following in AspNetZero (AspNetCore) WebHostModule, but somehow distributer enumerator isn't recognized (only provider is found):
Configuration.Notifications.Distributers.Add<MyNotificationDistributer>();
Hi,
I don't know how to locate a custom data filter to manually enable/disable it as needed. I need this because my custom filter uses a user session variable in DbContext and it's inaccessible in background job. I'm trying to manually disable it so I can add the filter to my query or just change its value through the background job. My custom filter has been added to DbContext overriding CreateFilterExpression method:
Expression<Func<TEntity, bool>> mustHaveYearFilter = e => ((IMustHaveYear)e).YearId == MyYear || (((IMustHaveYear)e).YearId == MyYear) == true;
expression = expression == null ? mustHaveYearFilter : CombineExpressions(expression, mustHaveYearFilter);
I tried to register the filter in WebHostModule > PreInitialize Configuration.UnitOfWork.RegisterFilter("MustHaveYear", true);
But it doesn't change the filter or disable it.
Change filter code:
_unitOfWorkManager.Current.EnableFilter("MustHaveYearFilter");
_unitOfWorkManager.Current.SetFilterParameter("MustHaveYearFilter", "YearId", args.YearId);
Disable filter code:
_unitOfWorkManager.Current.DisableFilter("MustHaveYearFilter");
Regards
UPDATE I was able to enable and disable the filter successfuly. Somehow the parameter name wasn't injected to the query. I disabled the filter and added it to my WHERE statements as a workaround.