Base solution for your next web application
Open Closed

Unable to login from the Public Website (Bonus from 6 in 1) #8784


User avatar
0
joynext created

Running the public project was successful, now I am trying to access the main application. I have it running through cmd, however after an attempt of logging in, it does redirect to the application or back to the public website. It displays an error (see attached photo). Please help with this issue. Thank you.


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

    What is the zero version you are using?

    Please provide steps to reproduce the problem.

  • User Avatar
    0
    joynext created

    • Run Web.Host project using CMD
    • SET ASPNETCORE_ENVIRONMENT=Development > SET ASPNETCORE_URLS=http://*:22742 > dotnet run
    • Run Web.Public project (IIS Express) using Visual Studio
    • Public website is displayed. Click login. Login page is displayed. Enter credentials > Login. Error is displayed.
  • User Avatar
    0
    maliming created
    Support Team

    After you change the url and port of the api you should change the url configuration in appsettings.json.

    "App": {
    "WebSiteRootAddress": "http://localhost:45776/",
    "AdminWebSiteRootAddress": "http://localhost:4200/"
    }