This is true for ASPNETZERO 12.0.0 (Angular)!
How to reproduce:
Start the spinner in any component that extends AppComponentBase
without stopping it: this.spinnerService.show()
.
You will see the dark overlay but no blue circle spinning around.
How to solve:
As already stated by @rickfrankel in the comment above, in angular.json
add node_modules/ngx-spinner/animations/ball-clip-rotate.css
to styles
section:
"styles": [
...,
"node_modules/ngx-spinner/animations/ball-clip-rotate.css"
]
I made the Angular application into a PWA and I think maybe some of our clients just never update the client application and therefor are still using a version in which the .png
file was linked...
I close this now as it seems irrelevant and not an issue of ASPNETZERO.
Anyway, thank you @ismcagdas!
Ah, right, I would need to have this file located at aspnet-zero-core\aspnet-core\src\MyCompanyName.AbpZeroTemplate.Web.Host\wwwroot\Common\Images
!
But it is not there, not even in the github project. But there are the .svg
files - so, it seems there is the wrong file linked somewhere?
Hi @ismcagdas
No, I don't use the public website and it is not running anywhere. Still, the log message appears very often.
11.4.0, Angular
Problem In production-environment logs I see a lot of entries of this message:
ERROR 2022-12-16 19:47:04,138 [112 ] e.Diagnostics.ExceptionHandlerMiddleware - An unhandled exception has occurred while executing the request.
System.IO.FileNotFoundException: Could not find file: /Common/Images/app-logo-on-light.png.
File name: '/Common/Images/app-logo-on-light.png'
at Microsoft.AspNetCore.Mvc.Infrastructure.VirtualFileResultExecutor.ExecuteAsync(ActionContext context, VirtualFileResult result)
at Microsoft.AspNetCore.Mvc.VirtualFileResult.ExecuteResultAsync(ActionContext context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextResultFilterAsync[TFilter,TFilterAsync]()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.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 ---
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
Further information I have forked the full project I can see there are different resources located in:
One of those resources missing in Web.Public
is app-logo-on-light.png
(there is only app-logo-on-light.svg
, so SVG instead of PNG).
Please, have a look at this issue!
11.4.0, Angular
Problem Adding a new user who has to change the password on next login results in 'Password reset link expired' when trying to do so!
Expected behaviour Expected to be working just like when resetting a password (see workaround).
How to reproduce This can be reproduced easily in ASPNETZERO demo!
change password on next login
is checked.Password reset link expired
error message.Workaround
OK
.Go Back
.Forgot your password?
.send
.send
.Dear ASPNETZERO-Team
I just want to let you know that the demo server for ASPNETZERO ist not available at the moment.
Hi @m.aliozkaya
It doesn't require authentication on my project (tried using browser's private mode, also tried on phone where I never ever logged in to swagger ui for sure)... I need to figure out why. Any ideas?
UPDATE
~~It does require authentication in development environment - but it does NOT require authentication in production environment...~~
What I mean is that I can open https://mydomain/swagger/index.html without any authentication / authorization. I want Swagger UI to be available only when authorized.
This seems to do what i want to achieve: Swagger UI with login form and role-based api visibility
11.4.0, Angular
I have a question about Swagger UI: On my project I can see Swagger UI is publicly available for everyone... I think I remember it requiring authentication a couple of years ago. When has this been changed? How do I change it back to requiring authentication? Are there any other consequences (like public endpoints also requiring authentication then)?
11.4.0, Angular
Dear ASPNETZERO-Team!
Please, make the current version of Metronic (the version used in ANZ 11.4.0) available for download.
Thanks!