Hi,
I am having web service with number of methods. We are using integrated
windows authentication for this web service. This service is working fine
with integrated windows authentication.
If I call this service after two minutes of idle time, for first request I
will get 401 error as below. But later subsequent requests are working fine.
This error is coming only, if web service is idle for more than 2 mins. This
behavior is happening only in some of the machines. I am feeling this as
strange behavior. Any ideas would be greatly appreciated.
System.ApplicationException:
URL=http://localhost/CAWSSSTap/VDistributionWebService.asmx
---> System.Net.WebException: The request failed with HTTP status 401:
Unauthorized.
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
at
MS.IT.OperationsServices.CommercialService.Service Agents.CommercialService.VLKeyDistributionWebServi ceWse.Ping(String
requestXml) in
D:\PASD_Rosi\Activation\application\CWS\TAP\Commer cialService.ServiceAgents.CommercialService\Web References\VDistributionWebService\Reference.cs:li ne 48
at
MS.IT.OperationsServices.CommercialService.Service Agents.CommercialService.VLKeyDistributionServiceW ebServiceAgent.Ping(String
requestXml) in
D:\PASD_Rosi\Activation\application\CWS\TAP\Commer cialService.ServiceAgents.CommercialService\VLKeyD istributionServiceWebServiceAgent.cs:line 583
--- End of inner exception stack trace ---
at
MS.IT.OperationsServices.CommercialService.Service Agents.CommercialService.VLKeyDistributionServiceW ebServiceAgent.Ping(String
requestXml) in
D:\PASD_Rosi\Activation\application\CWS\TAP\Commer cialService.ServiceAgents.CommercialService\VLKeyD istributionServiceWebServiceAgent.cs:line 591
at
MS.IT.OperationsServices.CommercialService.Test.VL CWSTestClient.Form1.CallServiceAgent()
in
D:\PASD_Rosi\Activation\application\CWS\TAP\Commer cialService.Test.VLCWSTestClient\Form1.cs:line 865
at
MS.IT.OperationsServices.CommercialService.Test.VL CWSTestClient.Form1.btnCallKeyDistributionWebServi ce_Click(Object
sender, EventArgs e) in
D:\PASD_Rosi\Activation\application\CWS\TAP\Commer cialService.Test.VLCWSTestClient\Form1.cs:line 680
Thanks & Regards
Rosi Reddy. R