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)
-
0
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.
-
0
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.
-
0
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??
-
0
@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 ?
-
0
@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?
-
0
IHostingEnvironment comes from Microsoft. What do you want to change?
-
0
After you ran the migrator tool did you start the project with the settings pointed to your Azure database to populate the data?