I've been working with the front end disabled.
If the return URL is an application URL i.e. /Application#/tenant/usersin the AccountController<ActionResult>.Login the return url only has "/Application" nothing past the hash.
How can we get the internal application working without the #, or how can we get c# to accept the string past the has in the parameters of that method?
I tested this in a plain demo from the Zero site and recreated this issue. If I copy the users URL, log out, paste, then log in, I am redirected to the dashboard.
After importing the migrations from Zero, I need to manually make the EF model and have it not update my database.
Running a working Zero install after my model changes and I got
System.InvalidOperationException: The model backing the 'DbContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).
I cannot chance migrating into my existing schema. I've had this before in other APB projects and added,
Database.SetInitializer<DbContext>(null);
into the DbContext constructor.
Now I am stuck with an error,
System.ApplicationException: Filter name MustHaveTenant not found
Do I need to create a custom DbInitializer that deals with these new Zero Filters?
Using the quick start guide I created a fresh database using the EF migrations. I then disabled multi tenancy,
Configuration.MultiTenancy.IsEnabled = false;
After running the app it errors out with a null reference trying to find a UserName on a null User object here,
if (!IsMultiTenancyEnabled)
{
return LoginInformations.User.UserName;
}
in the HeaderViewModel.cs file.
Any ideas on what's going on?