.net - How can I force the CredentialCache for a process to clear all entries? -
i have server process who's job monitor various web services. web services hosted on sharepoint farm, , end using ntlm authentication in underlying httpwebrequest methods.
all of initial connections work fine, , can see typical challenge/response traffic in fiddler.
after while, however, if sharepoint farm servers bounced (while monitoring service stays up) next time application tries connect same web services, http 401 unauthorized responses.
this happens once, , if monitoring service connects again, works , connections go through fine.
from can tell tracing through, initial connections getting challenged/authorized , ntlm tokens being cached in monitoring process each unique web service url. @ point sharepoint servers bounced, ntlm tokens no longer valid. however, process has hit 1 failure before tokens in cache thrown away, after challenge/response dance happens again , works.
so, question this: there way me force ntlm tokens removed cache can avoid 401 unauthorized responses?
i realize don't want challenge/response overhead every time make web service call. there clear starting point in periodic monitoring make sense "clear cache" , pay challenge/response penalty once, subsequent requests go through fine without 401 unauthorized error.
Comments
Post a Comment