LoadUserProfile fails infrequently

G

Guest

From ASPNET, I am calling a secure web service using client certificates. Following the instructions in http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/secnetht13.asp I successfully created my application. However, once in awhile (I'd say about every 200 requests on average) the LoadUserProfile function fails with error code 87. This error is ERROR_INVALID_PARAMETER. According to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/policy/policy/loaduserprofile.asp... "The function fails and returns ERROR_INVALID_PARAMETER if the dwSize member of the structure is not set to sizeof(PROFILEINFO) or if the lpUserName member is NULL." I can assure you that both dwSize and lpUserName are set correctly everytime, even on the requests that fail. I am logging at all points of the code, and these values are correct at time of function call. This application resides on a server running many other applications so my only hunch is a conflict of some kind. At this point I am at a total loss on what to try and may just scrap the Enterprise Services approach and just load the cert from a file instead of the certificate store. Any direction is greatly appreciated. Thanks
Tony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top