Membership.ValidateUser is Slow

人走茶凉 提交于 2019-12-06 03:13:53

The issue was to do with permissions on the database box This article helped: https://elgg.leeds.ac.uk/webteam/weblog/15385.html

Our Database guy added the App Pool Identity and the Domain machine identity to the database box and .NET root directories granting read/write access.

When the servers were re-imaged the UNC paths for those directories were not on the C: drive so they didn't inherit the "normal" ACL rights

When this was corrected the timings went way down, But it's still a bit slow for what I want (averaging about 4 seconds for Membership.ValidateUser(username, password); and Roles.IsUserInRole(username, item.Role); with a load of 10,000 per hour)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!