I've used Jmeter before to load test my ASP.NET 4 site with Forms Authentication and all worked fine.
Since then several HttpHandlers have been added, which is what I'm trying to load test. If a load test it with 1 thread everything works fine. If i load test with 2 threads, i get a null reference exception thrown when calling Membership.GetUser()
. I've debugged this locally and can see that HttpContext.Current.User
is null as well, however calling Membership.GetUser("userName")
returns the user.
I know that the application can handle more than 2 users, I've just used another load testing application (Web Performance Load Tester) and it didn't error.
Can anyone point me in the right direction please?
Thanks
edit:
Just to clarify, I am testing this after I've authenticated