Hi there,
On a site with around 2000 users, I am seeing a very slow startup when debugging. I tracked the issue down to this in Fill in User.vb:
StockLocationID = Base.ChkLong(reader("AccessUserStockLocationID"))
The column AccessUserStockLocationID is nullable in the database (and contains null for all users). When the app starts it's firing hundreds of queries (looks like one for each user) against this table. ChkLong then crashes saying that DBNull.Value can't be cast to a long. Shouldn't Fill or ChkLong check for DBNull.Value instead of raising an exception when casting fails?
I manually updated all users and set AccessUserStockLocationID to 0 and then the problem goes away.
Thanks,
Imar