473,385 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.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

May 25 '06 #1
1 1680
> 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.


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

See the following article
http://support.microsoft.com/default...b;en-us;811318
--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://www.edujini.in
-------------------
May 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Frodo | last post by:
I have a problem establishing a link between Visual Studio.NET 2003 and SQL Server 2000. Both are installed on a Windows Server 2003, standard version. Visual Studio.NET Issues...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
0
by: Kevin Spencer | last post by:
Hi all, I am working on a service that uploads METAR weather information to the National Weather Service FTP site. The service I'm authoring is hosted on a Windows 200 server, and the NWS FTP...
0
by: Charles Leonard | last post by:
I need opinions regarding Web Service Namespace usage and/or suggestions regarding how to handle deployment. Our web service application will exist in two different domains and is likely to...
10
by: amirmira | last post by:
I have a Windows Service developed in VB.NET that attempts to connect to a database as soon as the service starts. I have no problem when I start the service manually - but when I restart the...
0
by: Charles Leonard | last post by:
I am having yet another issue with Windows Server 2003. This time, the web service (a file import web service) appears to run except for one odd message: "ActiveX component can't create object". ...
4
by: Paul | last post by:
Hi, I've been struggling with this today, I'm developing a DotNet2.0 website in C# that needs to call a long running data query. Obviously this is a good candidate for an Asynchronous call, so...
5
by: Tony | last post by:
Hi all, Here's the link to the issue we were seeing on our ASP.NET system when modifying, adding and deleting directories in framework 2.0....
1
by: WebServiceSecurity | last post by:
The issue involves the following technologies: - 1. .NET 2.0 Framework 2. WSE2.0 (WS-Security) 3. X.509 certificates 4. BEA Weblogic 8.1.5
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.