473,756 Members | 9,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Got 403 error after the first call to a web service

The web service is called by a program running on pocket pc. When to
call the web service, the first call is still ok, but for the second
or later calls, it will throw "403 Forbidden" WebException. When to
test it using the web interface on pocket IE, everything is fine.

Before there was no such problem, it only happened within a week or
so. I suspect it's caused by the server's firewall settings, but how
come the first call is ok? This is quite wired.

Is there anyone who can help or met this problem before?

Aug 13 '07 #1
6 3368
"alho" <xi**********@g mail.comwrote in message
news:11******** **************@ i13g2000prf.goo glegroups.com.. .
The web service is called by a program running on pocket pc. When to
call the web service, the first call is still ok, but for the second
or later calls, it will throw "403 Forbidden" WebException. When to
test it using the web interface on pocket IE, everything is fine.

Before there was no such problem, it only happened within a week or
so. I suspect it's caused by the server's firewall settings, but how
come the first call is ok? This is quite wired.

Is there anyone who can help or met this problem before?
Is the second call exactly like the first call?
--
John Saunders [MVP]

Aug 13 '07 #2
On Aug 13, 10:28 pm, "John Saunders [MVP]" <john.saunder s at
trizetto.comwro te:
"alho" <xiaolong....@g mail.comwrote in message

news:11******** **************@ i13g2000prf.goo glegroups.com.. .
The web service is called by a program running on pocket pc. When to
call the web service, the first call is still ok, but for the second
or later calls, it will throw "403 Forbidden" WebException. When to
test it using the web interface on pocket IE, everything is fine.
Before there was no such problem, it only happened within a week or
so. I suspect it's caused by the server's firewall settings, but how
come the first call is ok? This is quite wired.
Is there anyone who can help or met this problem before?

Is the second call exactly like the first call?
--
John Saunders [MVP]
Yes, first I got this error at the second call, later when I test it,
I repeated the first call twice in a try catch, and the second line
got this exception too. So the second call always goes wrong no matter
the same or not.

Aug 14 '07 #3
"alho" <xi**********@g mail.comwrote in message
news:11******** *************@z 24g2000prh.goog legroups.com...
On Aug 13, 10:28 pm, "John Saunders [MVP]" <john.saunder s at
trizetto.comwro te:
>"alho" <xiaolong....@g mail.comwrote in message

news:11******* *************** @i13g2000prf.go oglegroups.com. ..
The web service is called by a program running on pocket pc. When to
call the web service, the first call is still ok, but for the second
or later calls, it will throw "403 Forbidden" WebException. When to
test it using the web interface on pocket IE, everything is fine.
Before there was no such problem, it only happened within a week or
so. I suspect it's caused by the server's firewall settings, but how
come the first call is ok? This is quite wired.
Is there anyone who can help or met this problem before?

Is the second call exactly like the first call?
--
John Saunders [MVP]

Yes, first I got this error at the second call, later when I test it,
I repeated the first call twice in a try catch, and the second line
got this exception too. So the second call always goes wrong no matter
the same or not.
I would try to determine whether the service itself is getting called, both
the first and second times. In particular, I'd try to find out whether an
exception is being thrown by the service.

The only difference I know about between the first and second calls is that
on the second call, the service is already running. This should not increase
the likelihood of a 403 error. So, I have several questions:

* Is this a normal, ASP.NET "ASMX" web service?
* Is there anything unusual about the service itself, or about the client?
* Does the problem happen when you call the service from two separate
clients, one time apiece? This is to distinguish between a single client
having a problem calling twice, and the service having a problem being
called twice.
* Can you reproduce the problem with a simple "Hello, World" service? This
is to determine whether the issue has to do with the "contents" of the
server, or only with the "structure" .
* Can you reproduce the problem with a trivial client? This is to determine
whether the issue is with the client or with the service.

Sorry for all the questions, but this problem doesn't make sense based on
the information given, so I'm looking for more information.
--
John Saunders [MVP]

Aug 14 '07 #4
On Aug 14, 7:37 pm, "John Saunders [MVP]" <john.saunder s at
trizetto.comwro te:
"alho" <xiaolong....@g mail.comwrote in message

news:11******** *************@z 24g2000prh.goog legroups.com...


On Aug 13, 10:28 pm, "John Saunders [MVP]" <john.saunder s at
trizetto.comwro te:
"alho" <xiaolong....@g mail.comwrote in message
>news:11******* *************** @i13g2000prf.go oglegroups.com. ..
The web service is called by a program running on pocket pc. When to
call the web service, the first call is still ok, but for the second
or later calls, it will throw "403 Forbidden" WebException. When to
test it using the web interface on pocket IE, everything is fine.
Before there was no such problem, it only happened within a week or
so. I suspect it's caused by the server's firewall settings, but how
come the first call is ok? This is quite wired.
Is there anyone who can help or met this problem before?
Is the second call exactly like the first call?
--
John Saunders [MVP]
Yes, first I got this error at the second call, later when I test it,
I repeated the first call twice in a try catch, and the second line
got this exception too. So the second call always goes wrong no matter
the same or not.

I would try to determine whether the service itself is getting called, both
the first and second times. In particular, I'd try to find out whether an
exception is being thrown by the service.

The only difference I know about between the first and second calls is that
on the second call, the service is already running. This should not increase
the likelihood of a 403 error. So, I have several questions:

* Is this a normal, ASP.NET "ASMX" web service?
* Is there anything unusual about the service itself, or about the client?
* Does the problem happen when you call the service from two separate
clients, one time apiece? This is to distinguish between a single client
having a problem calling twice, and the service having a problem being
called twice.
* Can you reproduce the problem with a simple "Hello, World" service? This
is to determine whether the issue has to do with the "contents" of the
server, or only with the "structure" .
* Can you reproduce the problem with a trivial client? This is to determine
whether the issue is with the client or with the service.

Sorry for all the questions, but this problem doesn't make sense based on
the information given, so I'm looking for more information.
--
John Saunders [MVP]- Hide quoted text -

- Show quoted text -
Thank you for the attention and the questions.

* It's a normal ASP.NET "ASMX" web service.
* The service itself is fine. Actually before everything was ok. The
client is a PocketPC program.
* It happens in a single client, when calling the service twice.
* It has nothing to do with the content I think, I used complex and
simple web methods to test, got the same result.
* I've done testing using a window application on a PC, it works well
without the problem. But when I did the same testing using a PocketPC
application, the error will occur. The test program is just a textbox
to display result and a button to call a web method. On the PocketPC,
when I click on the button for more than one time, it will throw the
(403) Forbidden exception, but on a PC there is no exception.

This happens on both device and emulator.

Aug 15 '07 #5
"alho" <xi**********@g mail.comwrote in message
news:11******** **************@ j4g2000prf.goog legroups.com...
>
Thank you for the attention and the questions.

* It's a normal ASP.NET "ASMX" web service.
* The service itself is fine. Actually before everything was ok. The
client is a PocketPC program.
* It happens in a single client, when calling the service twice.
* It has nothing to do with the content I think, I used complex and
simple web methods to test, got the same result.
* I've done testing using a window application on a PC, it works well
without the problem. But when I did the same testing using a PocketPC
application, the error will occur. The test program is just a textbox
to display result and a button to call a web method. On the PocketPC,
when I click on the button for more than one time, it will throw the
(403) Forbidden exception, but on a PC there is no exception.

This happens on both device and emulator.
Sorry, but I still can't make sense out of this. I hope that you've been
able to solve the problem on your own.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer

Sep 7 '07 #6
This sounds very similar to a problem I was having. In my case, the
service ALWAYS worked fine on the first call, but never worked the
second time. I too was receiving 403 errors the second time I
submitted the request.

I don't know what version of .Net your have on your desktop, but I
found that I never had problems when the app was run against .Net 1.1,
but I always got the errors when running on .Net 2.0.

With the help of MS tech support, we finally got our issue resolved.
Here is a link to the thread:

http://groups.google.com/group/micro...80c57d255f71/#

Sep 14 '07 #7

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

Similar topics

6
4752
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
0
1401
by: Nawanat | last post by:
Dear All, I’m developing software using Microsoft Visual C++ 6.0 and having a problem with Remote Procedure Call (RPC). Since RPC is used as a tool to communicate between applications over networks as servers and clients, I have developed a real-time database server and also several client application programs. Both clients and servers communicate between each other through the RPC functions and services. At the beginning of a test...
0
731
by: Francois Guerin | last post by:
I have an application calling a web service on a different machine. The application code runs under a local user account on the application server. The account (identical username/password) is created on the web service server. The web service uses Windows integrated security and ACLs are set on the web service to allow the remote application to use it. The problem is that everytime IIS' is recycled, I get an "unauthorized" error on the...
4
6211
by: jf li | last post by:
I have a Asp.net web application and a Asp.net Web service application. The Web application is using HtmlInputFile to get a 50M size of file selected by end user, read the data of this file and pass the data to the web service. I already modified both web.config files and changed maxRequestLength to 60000(kb). When I debug the upload process, it seems the Web application can get the 50M file and read the data without problem, but when the...
7
3094
by: Jorgen Haukland, Norway | last post by:
Hi, I have created a Java webservice which runs in IBM WebSphere appserver. I take the WSDL-file and create a VS.NET WinForm application and calls the service running on my PC and everything works fine. So I deploy the webservice on a remote machine (Linux box) and I get an error when calling the service. BUT: I can retrieve the WSDL and make a webreference in my VS.NET project, so obviously I (or more correct: My VS.NET project) am...
10
19157
by: Jim Underwood | last post by:
I am having a problem with my web page timng out while retrieving a long runnign report (90-120 seconds. I have tried modifying several settings in various places and cannot get it to run for more than 90 seconds. I am running VS.Net and the app is ASP.Net, written using VB.Net. The app calls an asp.Net web service to retrieve the report. Both the web site and the web service are running locally on my PC. I have tried modifying the...
4
6811
by: Jason Richmeier | last post by:
I am sure this has been asked at least once before but I could not find anything when searching. If I set the value of the ExitCode property to 1066 for a windows service, the text "A service specific error occured: 0." How do I (if it is possible) change the value of the zero to something custom (like a "look in the event log for further information" message)? Thank you,
3
4427
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On the other machine I get the error upon instantiating the service client. I add the reference by choosing Add Service Reference from the project menu, and pointing to the remote wsdl file. I can't seem to find what the difference between the two...
0
2500
by: Rod | last post by:
This is my first WCF service and it is running on my development machine (XP Pro SP2) under IIS, I am using wsHttpBinding. (I will eventually put it onto a Windows 2003 Server running under IIS on the server as an Intranet application). The strange is I've stepped through the code in the WCF service, it makes the call to the SQL Server database, it retrieves the data and puts it into the DataTable object, and then I close the connection and...
0
9292
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9901
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9878
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9728
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8733
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7282
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3827
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3392
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2694
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.