Not sure actually - styling my frustration rather than my strength.
It does seem, however, as if the body style of one component affects other componets after navigating away from that component. The simple solution is not to change the body style, but I see zero does do that as well, e.g. select-edition-component.less.
its very easy to replicate now that i know where it came from:
<p>this will break other things</p>
@Component({ templateUrl: './dashboard.component.html', styleUrls: ['./dashboard.component.less'], encapsulation: ViewEncapsulation.None, animations: [appModuleAnimation()] }) export class DashboardComponent
body { display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; }.
Not an issue for me now that I know about it.
found the reason: had a placeholder page with a .less stylesheet that set the body... once that page is visited it caused the issue: body { display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; }. Fixing that solved it
Angular - aspnet zero version 7.1. First observed by tester (using chrome). I also observed issue in chrome.
Suspect it happens when user resizes window during load, but haven't been able to reproduce on demand so not sure.
Problem found - had a helper app service that had a public access modifier. Not sure why it caused it to bomb, but fixed when corrected to internal.
got the same error with first swagger check after updating. his solution might work for me... many thanks
subsequent refresh gave the following error:
INFO 2019-07-24 21:22:05,069 [47 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://0.0.0.0:22742/
INFO 2019-07-24 21:22:05,074 [47 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'insuralise.Web.Controllers.HomeController.Index (insuralise.Web.Host)'
INFO 2019-07-24 21:22:05,075 [47 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {action = "Index", controller = "Home", area = ""}. Executing action insuralise.Web.Controllers.HomeController.Index (insuralise.Web.Host)
INFO 2019-07-24 21:22:05,075 [47 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method insuralise.Web.Controllers.HomeController.Index (insuralise.Web.Host) - Validation state: Valid
INFO 2019-07-24 21:22:05,075 [47 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method insuralise.Web.Controllers.HomeController.Index (insuralise.Web.Host), returned result Microsoft.AspNetCore.Mvc.RedirectToActionResult in 0.0396ms.
INFO 2019-07-24 21:22:05,075 [47 ] ft.AspNetCore.Mvc.RedirectToActionResult - Executing RedirectResult, redirecting to /Ui.
INFO 2019-07-24 21:22:05,075 [47 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action insuralise.Web.Controllers.HomeController.Index (insuralise.Web.Host) in 0.7216ms
INFO 2019-07-24 21:22:05,076 [47 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'insuralise.Web.Controllers.HomeController.Index (insuralise.Web.Host)'
INFO 2019-07-24 21:22:05,076 [47 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 6.9385ms 302
INFO 2019-07-24 21:22:05,081 [47 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://0.0.0.0:22742/Ui
INFO 2019-07-24 21:22:05,086 [47 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'insuralise.Web.Controllers.UiController.Index (insuralise.Web.Host)'
INFO 2019-07-24 21:22:05,087 [47 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {action = "Index", controller = "Ui", area = ""}. Executing action insuralise.Web.Controllers.UiController.Index (insuralise.Web.Host)
INFO 2019-07-24 21:22:05,095 [47 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method insuralise.Web.Controllers.UiController.Index (insuralise.Web.Host) - Validation state: Valid
INFO 2019-07-24 21:22:05,669 [47 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method insuralise.Web.Controllers.UiController.Index (insuralise.Web.Host), returned result Microsoft.AspNetCore.Mvc.ViewResult in 574.3107ms.
INFO 2019-07-24 21:22:05,673 [47 ] Core.Mvc.ViewFeatures.ViewResultExecutor - Executing ViewResult, running view Index.
INFO 2019-07-24 21:22:05,676 [47 ] Core.Mvc.ViewFeatures.ViewResultExecutor - Executed ViewResult - view Index executed in 4.2552ms.
INFO 2019-07-24 21:22:05,676 [47 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action insuralise.Web.Controllers.UiController.Index (insuralise.Web.Host) in 589.0476ms
INFO 2019-07-24 21:22:05,676 [47 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'insuralise.Web.Controllers.UiController.Index (insuralise.Web.Host)'
INFO 2019-07-24 21:22:05,676 [47 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 594.9533ms 200 text/html; charset=utf-8
INFO 2019-07-24 21:22:08,231 [47 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://0.0.0.0:22742/swagger/index.html
INFO 2019-07-24 21:22:08,235 [47 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 4.5466ms 200 text/html
INFO 2019-07-24 21:22:08,610 [50 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://0.0.0.0:22742/swagger/v1/swagger.json
ERROR 2019-07-24 21:22:08,952 [50 ] nostics.DeveloperExceptionPageMiddleware - An unhandled exception has occurred while executing the request.
System.ArgumentException: An item with the same key has already been added. Key: x-schema
at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary
2.Add(TKey key, TValue value)
at insuralise.Web.Swagger.SwaggerOperationFilter.Apply(Operation operation, OperationFilterContext context) in /Users/eloffs/Documents/Frederik Dev/insuralise 6.8.0/aspnet-core/src/insuralise.Web.Core/Swagger/SwaggerOperationFilter.cs:line 32
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreateOperation(ApiDescription apiDescription, ISchemaRegistry schemaRegistry)
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreatePathItem(IEnumerable1 apiDescriptions, ISchemaRegistry schemaRegistry) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable
1 source, Func2 keySelector, Func
2 elementSelector, IEqualityComparer`1 comparer)
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath, String[] schemes)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.Invoke(HttpContext httpContext)
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 Abp.AspNetZeroCore.Web.Authentication.JwtBearer.JwtTokenMiddleware.<>c__DisplayClass0_0.<
Angular version. Restarted pc as a last resort and it stopped the overlay over the modals. Not been able to reproduce since. Suspect it was a simply a glitch, but will reopen if it returns.
Hi, In the ChatController (Web.Host Project) controller. Method: GetUploadedObject (Angular + Core project version 6.2.1) Kind regards,
Raised it. Thank you https://github.com/aspnetzero/aspnet-zero-core/issues/1754
Used a test solution and the RAD tool to see how it implements dates with the new version. Pretty much exactly the same as how I did it (for obvious reasons). Also tested to see if converting to universal time in the AutoMapper helped but it didn't.
Wanted to avoid pre- and post-formatting of dates but will check and format as per approach mentioned above (or using onchange events similar to what was done in edit-tenant-modal component in latest release). Thanks