HTTP Error 405 on POST

HTTP Error 405 on POST

am 14.11.2005 20:09:27 von Stellar Guy

Hello all,

I'm having a problem with IIS wherein it returns an error 405 (Resource not
allowed). I'm afraid I'm rather short on specifics at the moment because a)
I don't know IIS, and b) the web pages in question were written by another
group within the company. I'm just the one who's supposed to install it and
get it working.

Here's what I know: The system is Windows 2000 Server SP4, with all the
latest updates, running IIS 5.0. There is a line in the IIS log as follows:

2005-11-14 18:43:07 127.0.0.1 - 127.0.0.1 80 POST /gemreports/ - 405
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+ 2.0.50727)

So it appears that the HTML is trying to POST something, and IIS objects.

We have this same HTML running successfully on a larger system using Windows
2003 Server SP1, running IIS 6.0 and also ISA server. We had some
configuration problems on that computer, but they were mostly related to
getting ISA server set up; we didn't see the 405 error at all. I have
compared the settings of the two IIS servers, and although there are some
differences due to the versions they seem equivalent.

I've read numerous articles all over the web about error 405. Most don't
suggest any specific fix, and the ones that do didn't fix my problem.

If you have any suggestions of things to look for, or settings to check, I'm
all ears. If there is other information you need in order to narrow this
down, just let me know how to get it and I'll look it up.

Thanks for any assistance.
--
Stellar Guy

Re: HTTP Error 405 on POST

am 15.11.2005 02:38:08 von someone

Your failure on IIS5 is by-design.

POST to default document does not work on IIS5. It does work on IIS6.

405 mostly comes about when you try to POST against a URL that is not
considered dynamic by IIS. Obviously, there are many ways to get into this
state, so there are a variety of fixes, depending on what is incorrect. Here
are some possibilities:
1. POST action is against a HTML page
2. Misconfigured Application Mapping such that POST action is considered
static resource instead of dynamic
3. POST action is against a default document (which may/not resolve to a
dynamic resource)

You probably want to read this blog entry about IIS6 Request Processing. It
shows why it works against IIS6:
http://blogs.msdn.com/david.wang/archive/2005/10/14/HOWTO_II S_6_Request_Processing_Basics_Part_1.aspx

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Stellar Guy" wrote in message
news:uQyKw7U6FHA.2600@tk2msftngp13.phx.gbl...
Hello all,

I'm having a problem with IIS wherein it returns an error 405 (Resource not
allowed). I'm afraid I'm rather short on specifics at the moment because a)
I don't know IIS, and b) the web pages in question were written by another
group within the company. I'm just the one who's supposed to install it and
get it working.

Here's what I know: The system is Windows 2000 Server SP4, with all the
latest updates, running IIS 5.0. There is a line in the IIS log as follows:

2005-11-14 18:43:07 127.0.0.1 - 127.0.0.1 80 POST /gemreports/ - 405
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+ 2.0.50727)

So it appears that the HTML is trying to POST something, and IIS objects.

We have this same HTML running successfully on a larger system using Windows
2003 Server SP1, running IIS 6.0 and also ISA server. We had some
configuration problems on that computer, but they were mostly related to
getting ISA server set up; we didn't see the 405 error at all. I have
compared the settings of the two IIS servers, and although there are some
differences due to the versions they seem equivalent.

I've read numerous articles all over the web about error 405. Most don't
suggest any specific fix, and the ones that do didn't fix my problem.

If you have any suggestions of things to look for, or settings to check, I'm
all ears. If there is other information you need in order to narrow this
down, just let me know how to get it and I'll look it up.

Thanks for any assistance.
--
Stellar Guy

Re: HTTP Error 405 on POST

am 18.11.2005 15:34:07 von Stellar Guy

I wiped the computer and installed Windows Server 2003, which includes IIS
6.0. Then I reinstalled the application in question, but I'm still getting
error 405.

As I mentioned earlier, this does work on a different computer which is
running IIS 6.0, so I'm pretty sure it ought to work. I've been comparing
settings again. There is a list of extensions and the HTTP operations to
allow for each -- I added the obvious ones to the new computer, but that
didn't cure it. I'll try adding some of the non-obvious extensions (like
..vsproj), but I'm not expecting any change there.

What else should I look for?

Thanks.
--
Stellar Guy


"David Wang [Msft]" wrote in message
news:ebbiyVY6FHA.744@TK2MSFTNGP10.phx.gbl...
> Your failure on IIS5 is by-design.
>
> POST to default document does not work on IIS5. It does work on IIS6.
>
> 405 mostly comes about when you try to POST against a URL that is not
> considered dynamic by IIS. Obviously, there are many ways to get into this
> state, so there are a variety of fixes, depending on what is incorrect.
> Here
> are some possibilities:
> 1. POST action is against a HTML page
> 2. Misconfigured Application Mapping such that POST action is considered
> static resource instead of dynamic
> 3. POST action is against a default document (which may/not resolve to a
> dynamic resource)
>
> You probably want to read this blog entry about IIS6 Request Processing.
> It
> shows why it works against IIS6:
> http://blogs.msdn.com/david.wang/archive/2005/10/14/HOWTO_II S_6_Request_Processing_Basics_Part_1.aspx
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> //
> "Stellar Guy" wrote in message
> news:uQyKw7U6FHA.2600@tk2msftngp13.phx.gbl...
> Hello all,
>
> I'm having a problem with IIS wherein it returns an error 405 (Resource
> not
> allowed). I'm afraid I'm rather short on specifics at the moment because
> a)
> I don't know IIS, and b) the web pages in question were written by another
> group within the company. I'm just the one who's supposed to install it
> and
> get it working.
>
> Here's what I know: The system is Windows 2000 Server SP4, with all the
> latest updates, running IIS 5.0. There is a line in the IIS log as
> follows:
>
> 2005-11-14 18:43:07 127.0.0.1 - 127.0.0.1 80 POST /gemreports/ - 405
> Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+ 2.0.50727)
>
> So it appears that the HTML is trying to POST something, and IIS objects.
>
> We have this same HTML running successfully on a larger system using
> Windows
> 2003 Server SP1, running IIS 6.0 and also ISA server. We had some
> configuration problems on that computer, but they were mostly related to
> getting ISA server set up; we didn't see the 405 error at all. I have
> compared the settings of the two IIS servers, and although there are some
> differences due to the versions they seem equivalent.
>
> I've read numerous articles all over the web about error 405. Most don't
> suggest any specific fix, and the ones that do didn't fix my problem.
>
> If you have any suggestions of things to look for, or settings to check,
> I'm
> all ears. If there is other information you need in order to narrow this
> down, just let me know how to get it and I'll look it up.
>
> Thanks for any assistance.
> --
> Stellar Guy
>
>
>

Re: HTTP Error 405 on POST

am 19.11.2005 03:14:51 von someone

I have nothing else to provide because I have already given all the
necessary information and explanation of what is going on.

You are basically saying that a POST to a default document returns 405,
which tells me to look at the default document that actually executed and
make sure it is considered "dynamic content" by IIS.

Default Document is a list containing both static and dynamic content by
default, so make sure you are actually targeting the right default document.
Also, make sure that the dynamic content is actually enabled to execute.

If we are talking about IIS6, this is basically a user configuration issue.
Given default settings, you should not have to change anything in IIS for
this to work.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Stellar Guy" wrote in message
news:OD0%23l0E7FHA.3588@TK2MSFTNGP15.phx.gbl...
I wiped the computer and installed Windows Server 2003, which includes IIS
6.0. Then I reinstalled the application in question, but I'm still getting
error 405.

As I mentioned earlier, this does work on a different computer which is
running IIS 6.0, so I'm pretty sure it ought to work. I've been comparing
settings again. There is a list of extensions and the HTTP operations to
allow for each -- I added the obvious ones to the new computer, but that
didn't cure it. I'll try adding some of the non-obvious extensions (like
..vsproj), but I'm not expecting any change there.

What else should I look for?

Thanks.
--
Stellar Guy


"David Wang [Msft]" wrote in message
news:ebbiyVY6FHA.744@TK2MSFTNGP10.phx.gbl...
> Your failure on IIS5 is by-design.
>
> POST to default document does not work on IIS5. It does work on IIS6.
>
> 405 mostly comes about when you try to POST against a URL that is not
> considered dynamic by IIS. Obviously, there are many ways to get into this
> state, so there are a variety of fixes, depending on what is incorrect.
> Here
> are some possibilities:
> 1. POST action is against a HTML page
> 2. Misconfigured Application Mapping such that POST action is considered
> static resource instead of dynamic
> 3. POST action is against a default document (which may/not resolve to a
> dynamic resource)
>
> You probably want to read this blog entry about IIS6 Request Processing.
> It
> shows why it works against IIS6:
>
http://blogs.msdn.com/david.wang/archive/2005/10/14/HOWTO_II S_6_Request_Processing_Basics_Part_1.aspx
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> //
> "Stellar Guy" wrote in message
> news:uQyKw7U6FHA.2600@tk2msftngp13.phx.gbl...
> Hello all,
>
> I'm having a problem with IIS wherein it returns an error 405 (Resource
> not
> allowed). I'm afraid I'm rather short on specifics at the moment because
> a)
> I don't know IIS, and b) the web pages in question were written by another
> group within the company. I'm just the one who's supposed to install it
> and
> get it working.
>
> Here's what I know: The system is Windows 2000 Server SP4, with all the
> latest updates, running IIS 5.0. There is a line in the IIS log as
> follows:
>
> 2005-11-14 18:43:07 127.0.0.1 - 127.0.0.1 80 POST /gemreports/ - 405
> Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+ 2.0.50727)
>
> So it appears that the HTML is trying to POST something, and IIS objects.
>
> We have this same HTML running successfully on a larger system using
> Windows
> 2003 Server SP1, running IIS 6.0 and also ISA server. We had some
> configuration problems on that computer, but they were mostly related to
> getting ISA server set up; we didn't see the 405 error at all. I have
> compared the settings of the two IIS servers, and although there are some
> differences due to the versions they seem equivalent.
>
> I've read numerous articles all over the web about error 405. Most don't
> suggest any specific fix, and the ones that do didn't fix my problem.
>
> If you have any suggestions of things to look for, or settings to check,
> I'm
> all ears. If there is other information you need in order to narrow this
> down, just let me know how to get it and I'll look it up.
>
> Thanks for any assistance.
> --
> Stellar Guy
>
>
>