Open Closed

xxx.Web.Public - not working (Redis) | Login #3150


User avatar
0
harry@ardimedia.com created
  • ABP Framework version: v5.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: see below
  • Steps to reproduce the issue:"

abp suite Create a new solution Template type: Application Template Project name: abp.test1 Output folder: C:\CODE\TEMP\abp.test1 UI Framework: Angular Mobile: None Database provider: Entity Framework Core Database management system: SQLServer Connection string: Server=localhost;Database=test1;Trusted_Connection=True Select Public web site Un-select CMS-Kit Un-select Separated tenant schema Un-select Separated Identity Serer Un-select Preivew version

Open Solution Open in IDE (with Visual Studio) Run abp.test1.DbMigrator (database test1 already created) Run apb.test1.Web.Public

Web browser opens with https://localhost:44304/

nothing is shown there are not message in the browser console log After disabling Redis, web site is shown

"Redis": { "IsEnabled": "false", "Configuration": "127.0.0.1" },

Now, Login does not work, getting:

An unhandled exception occurred while processing the request. InvalidOperationException: IDX20803: Unable to obtain configuration from: 'System.String'. Microsoft.IdentityModel.Protocols.ConfigurationManager<T>.GetConfigurationAsync(CancellationToken cancel)

Updating all NuGet packages to the latest version - does not solve the problem


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Open Solution Open in IDE (with Visual Studio) Run abp.test1.DbMigrator (database test1 already created) Run apb.test1.Web.Public

    Hi

    There is should have an API website, You need to run it first.

    Can you share your project structure?

  • User Avatar
    0
    harry@ardimedia.com created

    this is the project structure:

    and this is the error I get after clicking on Login:

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Please run the Abp.Test1.HttpApi.Host first.

  • User Avatar
    0
    harry@ardimedia.com created

    I tried to run Abp.Test1.HttpApi.Host first. But after the Login button pressed, there was no result, the web page was waiting for a response. I then deactivated Redis and now I do see the login page. Thankx for the feedback about running .HttpApi.Host first!

    When trying to login with the default admin account, I now get the following error:

  • User Avatar
    0
    harry@ardimedia.com created

    Problem solved... I have cleared my cookies, now it is working. Thankx for your support! Harry

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11