Getting "The request failed with HTTP status 403: Error" ??

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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...
    >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"
    >
    [snip]
    > 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
    Is the server running Windows XP? If so, you might be running into the limit
    of 10 concurrent connections.

    Regards,
    Sami



    Sami Vaaraniemi Guest

  5. #4

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139