Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "alexanderpilhar"

Trying to build a fresh copy of ASPNETZERO 12.2.0-rc.1 (Angular) leads to following error:

12.0.0, Angular

Problem Changing the password on next login results in an error as the selected tenant is not selected anymore on the enter-new-password-page.

Expected behaviour Expected to keep the selected tenant selected on enter-new-password-page.

How to reproduce

  • Add new user.
  • Make sure change password on next login is checked.
  • Wait for activation mail and click the link or manually select the correct tenant on login page.
  • See the correct tenant being selected as expected.
  • Login with the credentials for the new user.
  • Get redirected to enter-new-password-page.
  • See the previously selected tenant not being selected anymore.
  • Enter new password.
  • See error message (internal server error).

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:

  • aspnet-zero-core\aspnet-core\src\MyCompanyName.AbpZeroTemplate.Web.Mvc\wwwroot\Common\Images
  • aspnet-zero-core\aspnet-core\src\MyCompanyName.AbpZeroTemplate.Web.Public\wwwroot\Common\Images

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!

  • Add new user.
  • Make sure change password on next login is checked.
  • Wait for activation mail and click the link.
  • Login with the credentials for the new user.
  • Enter new password.
  • See the Password reset link expired error message.

Workaround

  • Dismiss the error message by clicking OK.
  • Click on Go Back.
  • Click on Forgot your password?.
  • Enter mail address and click send.
  • Wait for the password reset email and click the link.
  • Enter a new password and click send.
  • Done.

Dear ASPNETZERO-Team

I just want to let you know that the demo server for ASPNETZERO ist not available at the moment.

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!

Hey everybody!

A few years back I tried to create a separate Angular client that was able to consume ASPNETZERO's public API's (non-authorized): [Reduced Angular Client #4596](https://support.aspnetzero.com/QA/Questions/4596/Reduced-Angular-Client)

While this approach did the job back then I never was too happy with it as a lot of not needed resources remained.

A few days ago I decided to try another approach: starting with a new Angular application and only add what is necessary to make it work with ASPNETZERO's Core Services.

Today, I want to share with you my results (see next comment)!

I hope it is useful to some of you!

Cheers!

ASPNETZERO v11.1.0, Angular, .NET 6.0

I want to make use of Metronic's noUiSlider in my Angular application but I can't figure out how... Unfortunately, there is no information about how to make use of certain components in Angular in Metronic's documentation.

Please, give me some instructions on how to make use of it!

Maybe also add it to 'Demo-UI-Elements'-page in ASPNETZERO-demo-application.

10.3.0, Angular

I wonder if there is an easy way to change the lang-attribute of the html-tag according to the currently selected language!?

Here is why: Most if not all of our users speak german and therefor our application's default language is german. There is no problem with that. Some of our users do not speak english and therefor have their browser (Google Chrome) set to translate english to german automatically. And this is where issues arise.

Since the application's lang-attribute is set to 'en' (<html lang="en">) the browser (Google Chrome) will try to translate the content to german. Since all of the content is in german already most of it can't be translated and will stay as it is. Some words in german are similar to words in english (missing just one letter and so on) but have a different meaning. The browser (Google Chrome) will now accept these words as english with spelling mistake and translates them to german. Which leads to more ore less funny results.

E.g. the german word "offen" (open) will be translated to "beleidigen" (to offend) since the browser thinks "offen" is "offend" with the last letter missing.

I think if we could set the lang-attribute of the html-tag to the currently selected language the issue would be resolved. I tried to change the attribute's value via develper tools without success. But maybe testing like that is just not a valid approach.

Showing 1 to 10 of 51 entries