Base solution for your next web application
Open Closed

Getting SecurityTokenException #6535


User avatar
0
kalidarscope created

I have run the IIS its open the swagger window. Then i go to the application page(localhost:4200), getting this exception in visual studio.

Using ASP.NET Core and Angular. I have also attached the exception screenshot.


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

    Hi @kalidarscope

    There was a similar issue before but it was fixed, see https://github.com/aspnetzero/aspnet-zero-core/issues/1497.

    If you are using an older version of AspNet Zero than 5.6.2, you can apply the solution for this issue.

  • User Avatar
    0
    kalidarscope created

    Hi @ismcagdas

    we are using the AspNet Zero version - (v6.5.0). It is updated one, right?

  • User Avatar
    0
    maliming created
    Support Team

    Are you a project created from 6.5.0 or upgraded from an older version?

    You can compare the code to see.https://github.com/aspnetzero/aspnet-zero-core/pull/1538/files#diff-14

  • User Avatar
    0
    kalidarscope created

    Created from the version (v6.5.0).

  • User Avatar
    0
    ismcagdas created
    Support Team

    @kalidarscope

    We haven't faced this problem on 6.x versions. Have you tried on Google Chrome's incognito mode ?

    Thanks,

  • User Avatar
    0
    kalidarscope created

    We can't identity the reason when we are getting this issue. I have used google chrome's incognito only.

  • User Avatar
    0
    XugoWebTeam created

    We just upgrade from 5.6 to 6.7 and are having the same issue.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @xugowebteam

    Do you know how to reproduce this problem because we can't reporduce it with 6.7.

  • User Avatar
    0
    XugoWebTeam created

    @ismcagdas I was going to rasie a new ticket around this.

    We did the 6.7 upgrade. Tested OK on local envrionment. However, when connect to the database on the Azure, we keep getting the SecurityTokenException. The page stays on white screen in this case.

    We tried to create a new database on Azure and used the blank 6.7 template. Gets the same issue.

    However, on database in our local SQL serverm, it works fine.

    We have to hold the 6.7 upgrade and much appreicated if you can help, thank!

  • User Avatar
    0
    ismcagdas created
    Support Team

    @xugowebteam

    Is it possible for you to share your azure app url via email to [email protected] ? Checking your app might help us to understand the problem.

    Thanks,

  • User Avatar
    0
    XugoWebTeam created

    @ismcagdas

    Never mind. No long an issue here. Probably some enviornmental or configuration issue on Azure.