Ask a Question related to ASP.NET Web Services, Design and Development.
-
cmay #1
Getting "The request failed with HTTP status 403: Error" ??
I have a webservice that returns PDF generated reports. This service works
fine retuning various reports, but some reports quickly fail with the error:
"The request failed with HTTP status 403: Error"
Normally, the 403 would make me think of an authorization problem, but this
is not the case, as I am using the exact same authentication for the
webservice calls. In addition, I can remove this as a possability because
the server receives the call and begins to process it. In fact, if I request
a small report, it completes the process and returns the PDF. But when I
give it parameters to return a fairly large report, this 403 error is thrown.
In fact, if I debug the webservice, I can actually watch it walk through all
the steps successfully (albiet it takes a while to complete), without any
errors, but the client quickly generates the 403: Error message.
The next thing I could think of was that this was some kind of timeout
problem, between the webserver that is requesting the PDFs and the webservice
which is suppose to serve them up. To that end, I tried manipulating the
provided "Timeout" parameter of the webservice proxy class (the one that
calls the webservice). I turned it way down and quickly got a timeout error.
Then I turned it way up (10 minutes) and I go back to getting the 403: Error
message, after 60 seconds. Is there some 60 second timeout somewhere that I
am missing?
The problem is, I have no idea where this error is coming from. I have
try/catch blocks all over my webservice, and no exceptions are being thrown
from my code to produce this error. I don't believe this error is being
thrown from my code, so I have to figure out where else it could be coming
from.
Can anyone point me in the right direction?
Here is the error info:
ex.Message = The request failed with HTTP status 403: Error
Stack Trace = 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
walshgroup.web.users.sqlreporter.CrystalReportsBro ker.GetFrontEndReport(String[] sKeys, String[] sValues)
at walshgroup.web.users.zzz.Page_Load(Object sender, EventArgs e)
cmay Guest
-
web server gets "The Request Failed with HTTP Status 400: Bad Requ
On the development server we don't get this issue. Security is a concern on the live server. What do I do to make the production server run the... -
Webservice problem: "The Request failed with http status 401"
Okay, I'm writing a plugin for Outlook 2003 using C# and the .Net framework. In this plugin I'm opening a windows form that should fetsch some data... -
The request failed with HTTP status 401: Unauthorized.
I have a web service that has been working before but now I am getting: The request failed with HTTP status 401: Unauthorized. This is to the... -
The request failed with HTTP status 403: Access Forbidden
I was doing a load testing on web application and got this error from my web service when I increased trxs. anyone knows anything about this? Is... -
request failed HTTP status 417
I wrote a web service and a seperate client program that works fine on the local machine. When I deploy the service to an internet host and try to... -
erymuzuan #2
Re: Getting "The request failed with HTTP status 403: Error" ??
It's gonna be hard to really come up with a solution to your problem,
but I would normally rely on somekind of web services diagnosing tool
such as SOAPScope( you can download a trial edition). to see what's
going on.
BTW, it is always posiible to properly architect a long running web
services. one way is not to rely on HTTP request/responce, use MEP
instead.. WSE 2.0 provides a sound MEP implementation. and of course
there must be something could be done to the current webMethod too
[WebMethod]
public GetReportResponse GetReport(GetReportrequest GetReportRequest)
{
//
GetReportResponse response = new GetReportResponse();
string reportName = Guid.NewGuid.ToString() +."pdf"
response.Reportpath = reportName;
// create the report asyncrously
CreateReportAsyn(GetReportRequest);
return response;
}
HTH
regards
erymuzuan
cmay wrote:> I have a webservice that returns PDF generated reports. This service works
> fine retuning various reports, but some reports quickly fail with the error:
> "The request failed with HTTP status 403: Error"
>
> Normally, the 403 would make me think of an authorization problem, but this
> is not the case, as I am using the exact same authentication for the
> webservice calls. In addition, I can remove this as a possability because
> the server receives the call and begins to process it. In fact, if I request
> a small report, it completes the process and returns the PDF. But when I
> give it parameters to return a fairly large report, this 403 error is thrown.
>
> In fact, if I debug the webservice, I can actually watch it walk through all
> the steps successfully (albiet it takes a while to complete), without any
> errors, but the client quickly generates the 403: Error message.
>
> The next thing I could think of was that this was some kind of timeout
> problem, between the webserver that is requesting the PDFs and the webservice
> which is suppose to serve them up. To that end, I tried manipulating the
> provided "Timeout" parameter of the webservice proxy class (the one that
> calls the webservice). I turned it way down and quickly got a timeout error.
> Then I turned it way up (10 minutes) and I go back to getting the 403: Error
> message, after 60 seconds. Is there some 60 second timeout somewhere that I
> am missing?
>
> The problem is, I have no idea where this error is coming from. I have
> try/catch blocks all over my webservice, and no exceptions are being thrown
> from my code to produce this error. I don't believe this error is being
> thrown from my code, so I have to figure out where else it could be coming
> from.
>
> Can anyone point me in the right direction?
> Here is the error info:
>
> ex.Message = The request failed with HTTP status 403: Error
>
> Stack Trace = 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
> walshgroup.web.users.sqlreporter.CrystalReportsBro ker.GetFrontEndReport(String[] sKeys, String[] sValues)
> at walshgroup.web.users.zzz.Page_Load(Object sender, EventArgs e)
>erymuzuan Guest
-
Sami Vaaraniemi #3
Re: Getting "The request failed with HTTP status 403: Error" ??
"cmay" <cmay@discussions.microsoft.com> wrote in message
news:BFFE5D36-9908-40F1-A14A-11DE9D31CCB3@microsoft.com...[snip]>I have a webservice that returns PDF generated reports. This service works
> fine retuning various reports, but some reports quickly fail with the
> error:
> "The request failed with HTTP status 403: Error"
>Is the server running Windows XP? If so, you might be running into the limit> The problem is, I have no idea where this error is coming from. I have
> try/catch blocks all over my webservice, and no exceptions are being
> thrown
> from my code to produce this error. I don't believe this error is being
> thrown from my code, so I have to figure out where else it could be coming
> from.
>
> Can anyone point me in the right direction?
> Here is the error info:
>
> ex.Message = The request failed with HTTP status 403: Error
of 10 concurrent connections.
Regards,
Sami
Sami Vaaraniemi Guest
-
cmay #4
Re: Getting "The request failed with HTTP status 403: Error" ??
Hey guys,
Thanks for the reply trying to help.
I have tracked the problem to a piece of hardware on our network, a
McAfee e500 WebSheild. Its supposed to scan traffic for viruses and
stuff, but apparently it is getting in the middle of our HTTP traffic,
and cutting the connection after 60 seconds.
If I setup my laptop as the webserver on our internal network, it works
fine.
Thanks again!
Chris
cmay Guest



Reply With Quote

