"Path 'POST' is forbidden"

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

  1. #1

    Default "Path 'POST' is forbidden"

    I have wrriten a reverse proxy for a client of mine, this reverse proxy
    takes the url takes it attempt to access a *.XXXX and returns the the
    contents of an aspx web page from another internal server, the user then
    clicks on a button on the page that then posts data to the reverse proxy and
    it routes to the correct page by creating a web request and setting the
    method to post. (the reverse proxy is written using the IHttpHandler
    interface in .Net).

    This all works in development and UAT but fails in production giving the
    following error (see below) all servers are windows 2003 server with IIS6.0.
    I realise this must be a configuration issue, the configs are the same for
    production, dev & UAT machines.

    Anyone got any suggestions?

    Cheers

    Ollie


    Path 'POST' is forbidden.
    Description: An unhandled exception occurred during the execution of the
    current web request. Please review the stack trace for more information
    about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: Path 'POST' is forbidden.

    Source Error:

    An unhandled exception was generated during the execution of the current web
    request. Information regarding the origin and location of the exception can
    be identified using the exception stack trace below.

    Stack Trace:

    [HttpException (0x80004005): Path 'POST' is forbidden.]
    System.Web.HttpMethodNotAllowedHandler.ProcessRequ est(HttpContext context)

    System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionSte
    p.Execute()
    System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
    completedSynchronously) +87


    Ollie Guest

  2. Similar Questions and Discussions

    1. how to show apache "forbidden" message
      I setup a new coldfusion server w/ apache... i need to have it so that if the user changes the url to just a directory they shouldn't be able to...
    2. ERROR 403 "Forbidden"
      Hello ... thankX for help! Situation: New user ... Installed Contribute 3, connected to my web site. Created a new home page index file and...
    3. Modify>Alter Path> "Inset Path" and "Expand Stroke" ERRONEOUS??
      Sometimes I have tried to make some custom paths, for example letter 'A' converted to paths (Times New Roman font), and when I tried to use command...
    4. #25169 [Opn->Bgs]: Why do I get a "Forbidden/You don't have permission to access / on this server"
      ID: 25169 Updated by: sniper@php.net Reported By: anjp2003 at indiatimes dot com -Status: Open +Status: ...
    5. #25169 [NEW]: Why do I get a "Forbidden/You don't have permission to access / on this server"
      From: anjp2003 at indiatimes dot com Operating system: Linux PHP version: 4.3.1 PHP Bug Type: Apache related Bug...
  3. #2

    Default Re: "Path 'POST' is forbidden"

    Ollie wrote:
    > I have wrriten a reverse proxy for a client of mine, this reverse
    > proxy takes the url takes it attempt to access a *.XXXX and returns
    > the the contents of an aspx web page from another internal server,
    > the user then clicks on a button on the page that then posts data to
    > the reverse proxy and it routes to the correct page by creating a web
    > request and setting the method to post. (the reverse proxy is written
    > using the IHttpHandler interface in .Net).
    >
    > This all works in development and UAT but fails in production giving
    > the following error (see below) all servers are windows 2003 server
    > with IIS6.0. I realise this must be a configuration issue, the
    > configs are the same for production, dev & UAT machines.
    >
    > Anyone got any suggestions?
    >
    > Cheers
    >
    > Ollie
    >
    >
    > Path 'POST' is forbidden.
    > Description: An unhandled exception occurred during the execution of
    > the current web request. Please review the stack trace for more
    > information about the error and where it originated in the code.
    >
    > Exception Details: System.Web.HttpException: Path 'POST' is forbidden.
    >
    > Source Error:
    >
    > An unhandled exception was generated during the execution of the
    > current web request. Information regarding the origin and location of
    > the exception can be identified using the exception stack trace below.
    >
    > Stack Trace:
    >
    > [HttpException (0x80004005): Path 'POST' is forbidden.]
    > System.Web.HttpMethodNotAllowedHandler.ProcessRequ est(HttpContext
    > context)
    >
    >
    System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionSte
    > p.Execute()
    > System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
    > completedSynchronously) +87
    It seems that in your web.config you're missing your handler's entry in the
    <httpHandlers> section or it's does not say <add verb="*" ...> or <add
    verb="GET,HEAD,POST" ...>.

    Cheers,
    --
    Joerg Jooss
    [email]joerg.jooss@gmx.net[/email]

    Joerg Jooss Guest

  4. #3

    Default Re: "Path 'POST' is forbidden"

    Joerg,

    I have added the HttpHandler in the definition to the web config....

    <add verb="*" path="uat.XXXXX" type="HttpHandlers.XXXXX, HttpHandlers"/>

    Cheers anyway

    Ollie


    "Joerg Jooss" <joerg.jooss@gmx.net> wrote in message
    news:eKfsD5QgEHA.712@TK2MSFTNGP09.phx.gbl...
    > Ollie wrote:
    > > I have wrriten a reverse proxy for a client of mine, this reverse
    > > proxy takes the url takes it attempt to access a *.XXXX and returns
    > > the the contents of an aspx web page from another internal server,
    > > the user then clicks on a button on the page that then posts data to
    > > the reverse proxy and it routes to the correct page by creating a web
    > > request and setting the method to post. (the reverse proxy is written
    > > using the IHttpHandler interface in .Net).
    > >
    > > This all works in development and UAT but fails in production giving
    > > the following error (see below) all servers are windows 2003 server
    > > with IIS6.0. I realise this must be a configuration issue, the
    > > configs are the same for production, dev & UAT machines.
    > >
    > > Anyone got any suggestions?
    > >
    > > Cheers
    > >
    > > Ollie
    > >
    > >
    > > Path 'POST' is forbidden.
    > > Description: An unhandled exception occurred during the execution of
    > > the current web request. Please review the stack trace for more
    > > information about the error and where it originated in the code.
    > >
    > > Exception Details: System.Web.HttpException: Path 'POST' is forbidden.
    > >
    > > Source Error:
    > >
    > > An unhandled exception was generated during the execution of the
    > > current web request. Information regarding the origin and location of
    > > the exception can be identified using the exception stack trace below.
    > >
    > > Stack Trace:
    > >
    > > [HttpException (0x80004005): Path 'POST' is forbidden.]
    > > System.Web.HttpMethodNotAllowedHandler.ProcessRequ est(HttpContext
    > > context)
    > >
    > >
    >
    System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionSte
    > > p.Execute()
    > > System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
    > > completedSynchronously) +87
    >
    > It seems that in your web.config you're missing your handler's entry in
    the
    > <httpHandlers> section or it's does not say <add verb="*" ...> or <add
    > verb="GET,HEAD,POST" ...>.
    >
    > Cheers,
    > --
    > Joerg Jooss
    > [email]joerg.jooss@gmx.net[/email]
    >

    Ollie Guest

  5. #4

    Default Re: "Path 'POST' is forbidden"

    correction, I had already added this line to the web.config so this is no
    the answer

    Ollie



    "Ollie" <ollie_riches@hotmail.com> wrote in message
    news:%23GtodcRgEHA.2908@TK2MSFTNGP10.phx.gbl...
    > Joerg,
    >
    > I have added the HttpHandler in the definition to the web config....
    >
    > <add verb="*" path="uat.XXXXX" type="HttpHandlers.XXXXX, HttpHandlers"/>
    >
    > Cheers anyway
    >
    > Ollie
    >
    >
    > "Joerg Jooss" <joerg.jooss@gmx.net> wrote in message
    > news:eKfsD5QgEHA.712@TK2MSFTNGP09.phx.gbl...
    > > Ollie wrote:
    > > > I have wrriten a reverse proxy for a client of mine, this reverse
    > > > proxy takes the url takes it attempt to access a *.XXXX and returns
    > > > the the contents of an aspx web page from another internal server,
    > > > the user then clicks on a button on the page that then posts data to
    > > > the reverse proxy and it routes to the correct page by creating a web
    > > > request and setting the method to post. (the reverse proxy is written
    > > > using the IHttpHandler interface in .Net).
    > > >
    > > > This all works in development and UAT but fails in production giving
    > > > the following error (see below) all servers are windows 2003 server
    > > > with IIS6.0. I realise this must be a configuration issue, the
    > > > configs are the same for production, dev & UAT machines.
    > > >
    > > > Anyone got any suggestions?
    > > >
    > > > Cheers
    > > >
    > > > Ollie
    > > >
    > > >
    > > > Path 'POST' is forbidden.
    > > > Description: An unhandled exception occurred during the execution of
    > > > the current web request. Please review the stack trace for more
    > > > information about the error and where it originated in the code.
    > > >
    > > > Exception Details: System.Web.HttpException: Path 'POST' is forbidden.
    > > >
    > > > Source Error:
    > > >
    > > > An unhandled exception was generated during the execution of the
    > > > current web request. Information regarding the origin and location of
    > > > the exception can be identified using the exception stack trace below.
    > > >
    > > > Stack Trace:
    > > >
    > > > [HttpException (0x80004005): Path 'POST' is forbidden.]
    > > > System.Web.HttpMethodNotAllowedHandler.ProcessRequ est(HttpContext
    > > > context)
    > > >
    > > >
    > >
    >
    System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionSte
    > > > p.Execute()
    > > > System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
    > > > completedSynchronously) +87
    > >
    > > It seems that in your web.config you're missing your handler's entry in
    > the
    > > <httpHandlers> section or it's does not say <add verb="*" ...> or <add
    > > verb="GET,HEAD,POST" ...>.
    > >
    > > Cheers,
    > > --
    > > Joerg Jooss
    > > [email]joerg.jooss@gmx.net[/email]
    > >
    >
    >

    Ollie Guest

  6. #5

    Default Re: "Path 'POST' is forbidden"

    Of course it isn't. Asp.Net will not let you handle POST requests when you
    specify a single path in your handler definition. If you want to handle POST
    requests you have to use wildcard extension mapping. I can't think of a
    reason why would they ever do this but hey, it's Microsoft. There's nothing
    you can do about this AFAIK, short of re-writing the Asp.Net runtime.

    Oh and this is a Asp.Net problem, not CLR problem, not IIS problem and
    definitely not IIS Security problem.

    Jerry

    "Ollie" <ollie_riches@hotmail.com> wrote in message
    news:OeeK4YSgEHA.3916@TK2MSFTNGP11.phx.gbl...
    > correction, I had already added this line to the web.config so this is no
    > the answer
    >
    > Ollie
    >
    >
    >
    > "Ollie" <ollie_riches@hotmail.com> wrote in message
    > news:%23GtodcRgEHA.2908@TK2MSFTNGP10.phx.gbl...
    >> Joerg,
    >>
    >> I have added the HttpHandler in the definition to the web config....
    >>
    >> <add verb="*" path="uat.XXXXX" type="HttpHandlers.XXXXX, HttpHandlers"/>
    >>
    >> Cheers anyway
    >>
    >> Ollie
    >>
    >>
    >> "Joerg Jooss" <joerg.jooss@gmx.net> wrote in message
    >> news:eKfsD5QgEHA.712@TK2MSFTNGP09.phx.gbl...
    >> > Ollie wrote:
    >> > > I have wrriten a reverse proxy for a client of mine, this reverse
    >> > > proxy takes the url takes it attempt to access a *.XXXX and returns
    >> > > the the contents of an aspx web page from another internal server,
    >> > > the user then clicks on a button on the page that then posts data to
    >> > > the reverse proxy and it routes to the correct page by creating a web
    >> > > request and setting the method to post. (the reverse proxy is written
    >> > > using the IHttpHandler interface in .Net).
    >> > >
    >> > > This all works in development and UAT but fails in production giving
    >> > > the following error (see below) all servers are windows 2003 server
    >> > > with IIS6.0. I realise this must be a configuration issue, the
    >> > > configs are the same for production, dev & UAT machines.
    >> > >
    >> > > Anyone got any suggestions?
    >> > >
    >> > > Cheers
    >> > >
    >> > > Ollie
    >> > >
    >> > >
    >> > > Path 'POST' is forbidden.
    >> > > Description: An unhandled exception occurred during the execution of
    >> > > the current web request. Please review the stack trace for more
    >> > > information about the error and where it originated in the code.
    >> > >
    >> > > Exception Details: System.Web.HttpException: Path 'POST' is
    >> > > forbidden.
    >> > >
    >> > > Source Error:
    >> > >
    >> > > An unhandled exception was generated during the execution of the
    >> > > current web request. Information regarding the origin and location of
    >> > > the exception can be identified using the exception stack trace
    >> > > below.
    >> > >
    >> > > Stack Trace:
    >> > >
    >> > > [HttpException (0x80004005): Path 'POST' is forbidden.]
    >> > > System.Web.HttpMethodNotAllowedHandler.ProcessRequ est(HttpContext
    >> > > context)
    >> > >
    >> > >
    >> >
    >>
    > System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionSte
    >> > > p.Execute()
    >> > > System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
    >> > > Boolean&
    >> > > completedSynchronously) +87
    >> >
    >> > It seems that in your web.config you're missing your handler's entry in
    >> the
    >> > <httpHandlers> section or it's does not say <add verb="*" ...> or <add
    >> > verb="GET,HEAD,POST" ...>.
    >> >
    >> > Cheers,
    >> > --
    >> > Joerg Jooss
    >> > [email]joerg.jooss@gmx.net[/email]
    >> >
    >>
    >>
    >
    >

    Jerry Pisk 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