Cyberactiva - webmaster tutorials, programming and videogames tricks

webmaster menu webmaster menu webmaster menu webmaster menu webmaster menu webmaster menu webmaster menu webmaster menu
  

Issue Regarding 401 error by web service

Issue Regarding 401 error by web service
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.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
MS.IT.OperationsServices.CommercialService.ServiceAgents.CommercialService.VLKeyDistributionWebServiceWse.Ping(String
requestXml) in
D:\PASD_Rosi\Activation\application\CWS\TAP\CommercialService.ServiceAgents.CommercialService\Web References\VDistributionWebService\Reference.cs:line 48
MS.IT.OperationsServices.CommercialService.ServiceAgents.CommercialService.VLKeyDistributionServiceWebServiceAgent.Ping(String
D:\PASD_Rosi\Activation\application\CWS\TAP\CommercialService.ServiceAgents.CommercialService\VLKeyDistributionServiceWebServiceAgent.cs:line 583

--- End of inner exception stack trace ---
D:\PASD_Rosi\Activation\application\CWS\TAP\CommercialService.ServiceAgents.CommercialService\VLKeyDistributionServiceWebServiceAgent.cs:line 591
MS.IT.OperationsServices.CommercialService.Test.VLCWSTestClient.Form1.CallServiceAgent()
in
D:\PASD_Rosi\Activation\application\CWS\TAP\CommercialService.Test.VLCWSTestClient\Form1.cs:line 865
MS.IT.OperationsServices.CommercialService.Test.VLCWSTestClient.Form1.btnCallKeyDistributionWebService_Click(Object
sender, EventArgs e) in
D:\PASD_Rosi\Activation\application\CWS\TAP\CommercialService.Test.VLCWSTestClient\Form1.cs:line 680

Thanks & Regards

Rosi Reddy. R


Register for freeMembers Area
Web MarketingLast Web Marketing
Web MarketingLast Programming Tips
Web MarketingLast News


Web Marketing Links and links exchange .