For Programmers: Free Programming Magazines  


Home > Archive > Microsoft Webservices > February 2006 > Authenticate fails efter 2 min









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Authenticate fails efter 2 min
Thomas Petersson

2006-02-09, 7:58 am

I have written a WebService using .NET 1.1 that requires authentiction. The
client code (.NET service app) creates a proxy object, and sets
obj.PreAuthenticate = true, and
obj.Credentials = new NetworkCredential(<username>,<password> )

Then the object is used like:
if (obj.Check(id)) ....

This works perfectly in the lab, but on the production server, HP, Win 2003
server, it only works while the service is kept busy. After 2 min idle time,
the next call to obj.Check() fails with "Unauthorized" exception. Tracing
has verified that the credentials have not changed. Everything is the same,
just some timeout hits us.

Does anyone have a clue to this behavior?

-Thomas


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com