Base solution for your next web application
Open Closed

clean install, no users #5112


User avatar
0
kythor created

I installed the latest version, hosted on Azure. Ran "Update-Database", and then tried to login. But when launching the angular app, i get "Internal server error". When using the webhost, swagger ui, and authorize button, I can enter credentials, but cannot login with the admin account.

When I look into the database, there are no records (in table AbpUserAccounts or AbpUsers) in the newly created database. The table "__efmigrationshistory" does hold the migrations information, so it has done something. Am i missing something, do I need to do more than Update-Database with this new version?


7 Answer(s)
  • User Avatar
    0
    kythor created

    Now I created a new DB on Azure and used the Migrator tool to generate the tables and admin user. This works good.

    But I'm still stuck on the "Internal server error" when trying to run the Angular app. it fails on "AbpUserConfiguration/GetAll" When querying the auditlogs through visual studio, this error is not in there, so maybe it cant even connect to the api.

  • User Avatar
    0
    kythor created

    hmmm, it works when i run the Host and Angular app locally, using localhost urls in appconfig.

    but why is it not working using FQDN on azure? It used to work in previous version... I must be missing something here.

  • User Avatar
    0
    kythor created

    if I try to go to "http://webhosturl/AbpUserConfiguration/GetAll" it gives Internal server error.

    when i do this locally, it works without a problem... web.config is available and cors config is good too, what else could be the problem??

  • User Avatar
    0
    ismcagdas created
    Support Team

    @Kythor,

    Sorry for our late response. There might be a problem on database connection.

    Could you check "wwwroot/App_Data/Logs.txt" file for error details ?

  • User Avatar
    0
    kythor created

    @ismcagdas, no my bad, i forgot that the app is using appsettings.production.json, which wasnt up to date with my information.

    Just wondering, in Startup.cs you have this:

    public Startup(IHostingEnvironment env)
            {
                _hostingEnvironment = env;
                _appConfiguration = env.GetAppConfiguration();
            }
    

    where does "env" come from? can i change this?

  • User Avatar
    0
    aaron created
    Support Team

    IHostingEnvironment comes from Microsoft. What do you want to change?

  • User Avatar
    0
    BobIngham created

    After you ran the migrator tool did you start the project with the settings pointed to your Azure database to populate the data?