Click here to Skip to main content
15,910,661 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionIsUserInRole too slow - ASP.NET Pin
sharp_k9-Feb-12 3:17
sharp_k9-Feb-12 3:17 
AnswerRe: IsUserInRole too slow - ASP.NET Pin
OriginalGriff9-Feb-12 3:44
mveOriginalGriff9-Feb-12 3:44 
AnswerRe: IsUserInRole too slow - ASP.NET Pin
DaveAuld9-Feb-12 4:09
professionalDaveAuld9-Feb-12 4:09 
GeneralRe: IsUserInRole too slow - ASP.NET Pin
sharp_k9-Feb-12 5:04
sharp_k9-Feb-12 5:04 
GeneralRe: IsUserInRole too slow - ASP.NET Pin
DaveAuld9-Feb-12 6:38
professionalDaveAuld9-Feb-12 6:38 
GeneralRe: IsUserInRole too slow - ASP.NET Pin
sharp_k9-Feb-12 7:05
sharp_k9-Feb-12 7:05 
GeneralRe: IsUserInRole too slow - ASP.NET Pin
sharp_k9-Feb-12 7:11
sharp_k9-Feb-12 7:11 
GeneralRe: IsUserInRole too slow - ASP.NET Pin
DaveAuld9-Feb-12 7:53
professionalDaveAuld9-Feb-12 7:53 
Ok, so have you tried to profile your code and the Database.

Sounds like you have some severe latency, probably in the database on disk.

a) How many users in the user list?
b) How many roles in the roles list?
c) What sort of database are you using?
d) Is the application and the database running on the same PC? Or is it distributed? What sort of connection is between them?
e) Is their anything else that is slow in the application?
f) Are you overriding any of the base methods and trying to role your own?

These are some of the question you should be asking yourself.

Next thing to do would be create a fresh vanilla application, add a couple of users and and a couple of roles and then run the IsInRole and IsUserInRole and see what difference you get.
Dave
Find Me On: Web|Facebook|Twitter|LinkedIn

Folding Stats: Team CodeProject


Generalanswers inside Pin
sharp_k9-Feb-12 8:29
sharp_k9-Feb-12 8:29 
QuestionAbout Gridview Pin
Amit_9-Feb-12 1:56
Amit_9-Feb-12 1:56 
AnswerRe: About Gridview Pin
Abhinav S9-Feb-12 20:38
Abhinav S9-Feb-12 20:38 
QuestionHow to secure a .ASHX-Request? Pin
softwarejaeger8-Feb-12 1:25
softwarejaeger8-Feb-12 1:25 
QuestionWCF Service Pin
Satish_S8-Feb-12 1:22
Satish_S8-Feb-12 1:22 
AnswerRe: WCF Service Pin
Wes Aday8-Feb-12 3:05
professionalWes Aday8-Feb-12 3:05 
Questionweb mobile application Pin
tek 20097-Feb-12 22:45
tek 20097-Feb-12 22:45 
AnswerRe: web mobile application Pin
David Mujica8-Feb-12 3:33
David Mujica8-Feb-12 3:33 
GeneralRe: web mobile application Pin
tek 20098-Feb-12 7:30
tek 20098-Feb-12 7:30 
GeneralRe: web mobile application Pin
Bernhard Hiller8-Feb-12 20:42
Bernhard Hiller8-Feb-12 20:42 
GeneralRe: web mobile application Pin
tek 20099-Feb-12 0:26
tek 20099-Feb-12 0:26 
QuestionjQuery Autocomplete Failed Pin
awedaonline7-Feb-12 20:20
awedaonline7-Feb-12 20:20 
GeneralRe: jQuery Autocomplete Failed Pin
Bryian Tan8-Feb-12 6:21
professionalBryian Tan8-Feb-12 6:21 
GeneralRe: jQuery Autocomplete Failed Pin
awedaonline8-Feb-12 22:02
awedaonline8-Feb-12 22:02 
AnswerRe: jQuery Autocomplete Failed Pin
jkirkerx8-Feb-12 12:49
professionaljkirkerx8-Feb-12 12:49 
GeneralRe: jQuery Autocomplete Failed Pin
awedaonline8-Feb-12 22:03
awedaonline8-Feb-12 22:03 
GeneralRe: jQuery Autocomplete Failed Pin
jkirkerx9-Feb-12 7:00
professionaljkirkerx9-Feb-12 7:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.