Can't log in into Project Tracker. User Id not found

Can't log in into Project Tracker. User Id not found

Old forum URL: forums.lhotka.net/forums/t/12825.aspx


Tony posted on Monday, February 02, 2015

- First the PTracker.mdf and pTracker.ldf were missing and I had to copy them from the zip file

- Got No connection could be made because the target machine actively refused it 127.0.0.1. Change the connection string from (LocalDb)\v11.0 to my sql server instance

-  then I am getting "The provided anti-forgery token was meant for user "manager", but the current user is """.. So I commented out the [ValidateAntiForgeryToken] from the login method

- Now I am getting "UserId not found" error.

The login process is querying the aspnet-MvcUI-20131107034738.AspNetUsers table which is empty.

Why am I encountering so many issues? What am I missing?

RockfordLhotka replied on Monday, February 09, 2015

For what little it is worth, this is why I've been shifting the sample apps away from using actual databases. There are so many variations on the versions and ways people configure SQL Server that just getting the apps to work requires that you understand your database version/edition/configuration and adapt to whatever you have in your environment.

It used to be so simple, but over the years Microsoft has added a lot of complexity to the whole environment around data - I guess this ensures that SQL Server experts have good job security :)

Copyright (c) Marimer LLC