473,569 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"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.Http Exception: 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.Http MethodNotAllowe dHandler.Proces sRequest(HttpCo ntext context)

System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on+IExecutionSt e
p.Execute()
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously) +87
Nov 18 '05 #1
4 4212
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.Http Exception: 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.Http MethodNotAllowe dHandler.Proces sRequest(HttpCo ntext
context)

System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on+IExecutionSt e p.Execute()
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously) +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
jo*********@gmx .net

Nov 18 '05 #2
Joerg,

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

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

Cheers anyway

Ollie
"Joerg Jooss" <jo*********@gm x.net> wrote in message
news:eK******** *****@TK2MSFTNG P09.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.Http Exception: 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.Http MethodNotAllowe dHandler.Proces sRequest(HttpCo ntext
context)

System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on+IExecutionSt e
p.Execute()
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously) +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
jo*********@gmx .net

Nov 18 '05 #3
correction, I had already added this line to the web.config so this is no
the answer

Ollie

"Ollie" <ol**********@h otmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Joerg,

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

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

Cheers anyway

Ollie
"Joerg Jooss" <jo*********@gm x.net> wrote in message
news:eK******** *****@TK2MSFTNG P09.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.Http Exception: 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.Http MethodNotAllowe dHandler.Proces sRequest(HttpCo ntext
context)

System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on+IExecutionSt e
p.Execute()
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously) +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
jo*********@gmx .net


Nov 18 '05 #4
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" <ol**********@h otmail.com> wrote in message
news:Oe******** ******@TK2MSFTN GP11.phx.gbl...
correction, I had already added this line to the web.config so this is no
the answer

Ollie

"Ollie" <ol**********@h otmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Joerg,

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

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

Cheers anyway

Ollie
"Joerg Jooss" <jo*********@gm x.net> wrote in message
news:eK******** *****@TK2MSFTNG P09.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.Http Exception: 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.Http MethodNotAllowe dHandler.Proces sRequest(HttpCo ntext
> > context)
> >
> >
>

System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on+IExecutionSt e
> > p.Execute()
> > System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
> > Boolean&
> > completedSynchr onously) +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
> jo*********@gmx .net
>



Nov 18 '05 #5

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

Similar topics

1
1605
by: DotNetJunkies User | last post by:
I developed a Windows Service that uses the Oracle Client software. When I dump the "path" statement in the Service program it is not the same as the System Administrative screen path. The Service path is not reflecting the Oracle Directory. What to do? --- Posted using Wimdows.net NntpNews Component -
2
1706
by: clusardi2k | last post by:
vbscript and/or javascript is most likely what I want to use! >From a SGI and a Linux box with a known PID, how do I determine if that process is running on a Windows computer? Please explain to me how to do this with vbscript and/or with javascript! Which language is better? Speed is a very important limitation, so which language is faster...
3
2691
by: Arpi Jakab | last post by:
I have a main project that depends on projects A and B. The main project's additional include directories list is: ...\ProjectA\Dist\Include ...\ProjectB\Dist\Include Each of the include directories contain a file named "cppfile1.h". In my main project I #include "cppfile1.h". I rely on the order of paths in additional include...
2
5663
by: edsuslen | last post by:
I am migrating working code (HTTPRequest with Authentication) from vb to vb.net vb: Set objXMLHTTPServer = New MSXML2.XMLHTTP30 objXMLHTTPServer.Open strMethod, strGetRequest, False, "UserId", "Password" objXMLHTTPServer.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" ....
4
23738
by: jeanclaude.hernandez | last post by:
Hello, how can I get the "path to executable" of a windows service from a c# application ? I have tried the ServiceContoller class, ServiceBase class with no results... Thanks,
1
1645
by: Jim | last post by:
I run the following code Application.ImportXML _ DataSource:="C:\TEMP\Audit\BatchData\BatchHeader.xml", _ ImportOptions:=acAppendData And get the error 'Path not found: 'C:\TEMP\Audit\BatchData\BatchHeader.xml.' Even though the file referenced is clearly there. Anybody had this
3
8121
by: gazelle04 | last post by:
I wanted to create a subfolder in a directory and I used the MkDir statement but it gives me an error like "Path/File access error" Here are the codes: MkDir "\\BC123456\Attachments\" & Me.UniversityID.Value BC123456 = shared computer Attachments = shared folder Me.UniversityID = is a text box on the form with a number format
94
30234
by: Samuel R. Neff | last post by:
When is it appropriate to use "volatile" keyword? The docs simply state: " The volatile modifier is usually used for a field that is accessed by multiple threads without using the lock Statement (C# Reference) statement to serialize access. " But when is it better to use "volatile" instead of "lock" ?
1
14023
by: ChollaPete | last post by:
This code: <form action="processScan.php" method="get"> <p> <?php print "Scan name: <input type=\"file\" name=\"tScanFileName\" value= \"{$scanFileName}\"><br>"; addHiddenCarryons(); ?> <input type="submit">
0
7612
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...
0
8120
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...
1
7672
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...
0
6283
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...
1
5512
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...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2113
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
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
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...

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.