Base solution for your next web application
Open Closed

A few questions on 11.0.0 #10775


User avatar
0
BobIngham created

11.0.0, Angular (13), .Net Core (6)

I have a couple of question questions on the implementation of 11.0.0. This is a fresh build, not an upgrade.

Update database statements in Visual Studio

I think this is minor point but no doubt could come back to bite someone later on and maybe needs to be looked at now. There seems to be some problems with the migration scripts for Editions, it's not a show stopper but may need pointing out.

JwtTokenHandler exceptions for unauthorised users

The system throws errors in the JwtTokenHandler for all unauthorised requests before initial sign in. It causes a break point in Visual Studio, throws an exception in the log and is extremely annoying.

Once the user is signed in the exception is no longer thrown, even after the user has signed out. That's probably why it's been missed. If I'm right this will mean that every time a user navigates to the root of the site without having first signed in an exception will be thrown. If they navigate to any of the hyperlinks in the initial sign in page ("Forgot password", "New tenant" and "Email activation") further exceptions are thrown.

This can be reproduced by removing cache from the browser. Zero works perfectly but several exceptions are logged and these are very difficult to filter out in Application Insights in Azure. For those of us who analyse log exceptions it's very difficult to see what's valid and what's not.

angular.json

In the Angular project, I follow the instructions in the documentation and a cli object is added to my angular.json file:

What is this analytic code and who does it belong to? I have no problem with it, I just don't know what it is.

  • can I use it in any way?
  • does it belong to you for license control? (no problem)

I just don't know what it is, could someone explain?

Hope you can help!

Cheers, Bob


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @bobingham

    Here are my answers;

    1. This relationship was created long time ago and it our tests, it doesn't create a problem but I will cehck it again and try to remove the warning if possible in the following version. But, this will not cause any problem in your app.
    2. I have createad an issue about this https://github.com/aspnetzero/aspnet-zero-core/issues/4145. I haven't seen this error before but probably that's because I'm always logged in :).
    3. You can read about this on https://angular.io/cli/usage-analytics-gathering
  • User Avatar
    0
    andmattia created

    Hi

    releted to point 2 it's happen when swith from different deply (es. prod, quality, dev) you can use an InPrivate session and it's gone.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @andmattia

    So, if I run two different AspNet Zero apps locally, can I reproduce it ?