Groups | Blog | Home
all groups > dotnet web services > may 2006 >

dotnet web services : Issue Regarding 401 error by web service


Rosi
5/25/2006 12:54:01 PM
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)

at
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

at
MS.IT.OperationsServices.CommercialService.ServiceAgents.CommercialService.VLKeyDistributionServiceWebServiceAgent.Ping(String
requestXml) in
D:\PASD_Rosi\Activation\application\CWS\TAP\CommercialService.ServiceAgents.CommercialService\VLKeyDistributionServiceWebServiceAgent.cs:line 583

--- End of inner exception stack trace ---

at
MS.IT.OperationsServices.CommercialService.ServiceAgents.CommercialService.VLKeyDistributionServiceWebServiceAgent.Ping(String
requestXml) in
D:\PASD_Rosi\Activation\application\CWS\TAP\CommercialService.ServiceAgents.CommercialService\VLKeyDistributionServiceWebServiceAgent.cs:line 591

at
MS.IT.OperationsServices.CommercialService.Test.VLCWSTestClient.Form1.CallServiceAgent()
in
D:\PASD_Rosi\Activation\application\CWS\TAP\CommercialService.Test.VLCWSTestClient\Form1.cs:line 865

at
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
Gaurav Vaish (EduJini.IN)
5/26/2006 12:00:00 AM
[quoted text, click to view]

401 is Authentication Required error.
You need to first authenticate.

See the following article
http://support.microsoft.com/default.aspx?scid=kb;en-us;811318


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://www.edujini.in
-------------------

AddThis Social Bookmark Button