473,386 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

HTTP status 405: Method not allowed

Yes, I've seen many posts about this type of error, and none of the
solutions people applied worked for me. So please read this one
carefully and help me if you can.

I have a web service application installed in a Windows 2000 SP4 Domain
control server. It is running IIS 5.0. I can access the WS from its own
web page, and, when I access it from the server where it is installed,
I can run its methods.

However, I cannot access this WS from an ASP.NET web application. The
error I get is:

The request failed with HTTP status 405: Method not allowed.
: : :
Exception Details: System.Net.WebException: The request failed with
HTTP status 405: Method not allowed.

yes, the stack trace tells me that it crashes on the first WS method
the web site tries to hit.

The WS has been setup to accept 1) Anonymous Access, 2) Integrated
Windows Authentication.
In the code to access this WS I am passing the credentials to access
the WS......and if the credentials are incorrect (e.g. typo) I get the
"401: Access Denied" error.

The domain control server, had already IIS installed when I installed
the .NET 1.1 Framework. But when I looked at the users I cannot find
the ASPNET user anywhere. I also tried running "aspnet_regiis -i" then
"iisreset", and no luck, still the same 405 error.

Without the ASPNET user, I tested this server by running the simple
Hello World asp.net application; it ran find. I even tested it with a
more complex application that queries the local SQL server db and it
worked fine. So I guess I do not need the ASPNET user, or do I?

Please I've been pulling my hair for 2 days already on this issue, and
do not know how to solve it.

Nov 23 '05 #1
5 50710
Hi:

Make sure you have not disabled the SOAP protocol bindings in
[machine|web].config
When you test the web service using its own help page, the binding used is
HTTP-POST (.NET 1.1) or HTTP-GET (.NET 1.0).
When you use a proxy, the SOAP protocol binding is used.

<webServices>
<protocols>
<add name="HttpSoap" /> <----------- This line should _not_ be
commented.
<!-- <add name="HttpPost"/> -->
<!-- <add name="HttpGet"/> -->
<add name="HttpPostLocalhost" />
<add name="Documentation" />
</protocols>
</webServices>

Thanks,
Mujtaba.

"rk325" <ro************@softwareservices.net> wrote in message
news:11********************@c13g2000cwb.googlegrou ps.com...
Yes, I've seen many posts about this type of error, and none of the
solutions people applied worked for me. So please read this one
carefully and help me if you can.

I have a web service application installed in a Windows 2000 SP4 Domain
control server. It is running IIS 5.0. I can access the WS from its own
web page, and, when I access it from the server where it is installed,
I can run its methods.

However, I cannot access this WS from an ASP.NET web application. The
error I get is:

The request failed with HTTP status 405: Method not allowed.
: : :
Exception Details: System.Net.WebException: The request failed with
HTTP status 405: Method not allowed.

yes, the stack trace tells me that it crashes on the first WS method
the web site tries to hit.

The WS has been setup to accept 1) Anonymous Access, 2) Integrated
Windows Authentication.
In the code to access this WS I am passing the credentials to access
the WS......and if the credentials are incorrect (e.g. typo) I get the
"401: Access Denied" error.

The domain control server, had already IIS installed when I installed
the .NET 1.1 Framework. But when I looked at the users I cannot find
the ASPNET user anywhere. I also tried running "aspnet_regiis -i" then
"iisreset", and no luck, still the same 405 error.

Without the ASPNET user, I tested this server by running the simple
Hello World asp.net application; it ran find. I even tested it with a
more complex application that queries the local SQL server db and it
worked fine. So I guess I do not need the ASPNET user, or do I?

Please I've been pulling my hair for 2 days already on this issue, and
do not know how to solve it.

Nov 23 '05 #2
Thanks Mujtaba.
I looked at the machine.config file and the line you mention above is
uncommented. There are no similar lines in web.config just in case.
I'm still getting the same 405 error.

Nov 23 '05 #3
Try tracing the request at the web service (trace.axd feature). You can
see the XML on the wire if you add a SOAP trace utility (available on
gotdotnet) to your web.config on the service side. Also, try tracing the
method call itself by opening the web service project and running it under
debug. Set a break point in the method you are calling. This may be a
problem with something the web method itself is trying to do that it
doesn't have permissions to do.

How did you build the client? Did you try refreshing your proxy code?

Some clues: HTTP 405 is not a valid SOAP exception. Is it possible that
the server itself is not properly configured? What happens when you run
the .NET configuration utililities found in control panel?

Dan
--------------------
From: "rk325" <ro************@softwareservices.net>
Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es,
microsoft.public.dotnet.framework.webservices
Subject: HTTP status 405: Method not allowed
Date: 15 Dec 2004 11:03:50 -0800
Organization: http://groups.google.com
Lines: 39
Message-ID: <11********************@c13g2000cwb.googlegroups.c om>
NNTP-Posting-Host: 68.216.171.58
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1103137435 3971 127.0.0.1 (15 Dec 2004 19:03:55
GMT)
X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: Wed, 15 Dec 2004 19:03:55 +0000 (UTC)
User-Agent: G2/0.2
Complaints-To: gr**********@google.com
Injection-Info: c13g2000cwb.googlegroups.com; posting-host=68.216.171.58;
posting-account=Wrg09g0AAACwvkCCMBaEoK07BSZc_Kbd
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!news-out.cwi
x.com!newsfeed.cwix.com!news.maxwell.syr.edu!postn ews.google.com!c13g2000cwb
.googlegroups.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8118
microsoft.public.dotnet.framework.aspnet.webservic es:27225
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Yes, I've seen many posts about this type of error, and none of the
solutions people applied worked for me. So please read this one
carefully and help me if you can.

I have a web service application installed in a Windows 2000 SP4 Domain
control server. It is running IIS 5.0. I can access the WS from its own
web page, and, when I access it from the server where it is installed,
I can run its methods.

However, I cannot access this WS from an ASP.NET web application. The
error I get is:

The request failed with HTTP status 405: Method not allowed.
: : :
Exception Details: System.Net.WebException: The request failed with
HTTP status 405: Method not allowed.

yes, the stack trace tells me that it crashes on the first WS method
the web site tries to hit.

The WS has been setup to accept 1) Anonymous Access, 2) Integrated
Windows Authentication.
In the code to access this WS I am passing the credentials to access
the WS......and if the credentials are incorrect (e.g. typo) I get the
"401: Access Denied" error.

The domain control server, had already IIS installed when I installed
the .NET 1.1 Framework. But when I looked at the users I cannot find
the ASPNET user anywhere. I also tried running "aspnet_regiis -i" then
"iisreset", and no luck, still the same 405 error.

Without the ASPNET user, I tested this server by running the simple
Hello World asp.net application; it ran find. I even tested it with a
more complex application that queries the local SQL server db and it
worked fine. So I guess I do not need the ASPNET user, or do I?

Please I've been pulling my hair for 2 days already on this issue, and
do not know how to solve it.
Nov 23 '05 #4
I've been tracking this problem down to its roots on one of my services. I have 3 other services running and none of them are having this problem. The major difference between the others and the problem child is the working services are returning strings and the non working one is returning a serialized object of my creation. I have tested the service via it's asmx test page and it returns the expected reults. When I run it trought the asp.net portal I created, it returns with the 405 error. Any Thoughts
Feb 17 '06 #5
atlas
1
Did you ever find a resolution to this issue? I am having the same problem.
Jul 10 '06 #6

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

Similar topics

1
by: qwejohn | last post by:
Hello, I had posted this question in the twisted mailing list but did not got a solution ; I hope that the python Gurus of this forum can help me a bit. I am trying the exmaple in the python...
1
by: | last post by:
A friend of mine has a website that is ASP. I know nothing about ASP. He switched hosting and now his "contact us" form does not work. When you hit submit it gives an error "Error 405 Method not...
5
by: RK | last post by:
I am getting the "HTTP /1.1 405 - method not allowed" error when I am sending XML string over Msxml2.XMLHTTP object. I am sending data in POST, also passing querystring variable and here is the...
2
by: genc ymeri | last post by:
I'm uploading a text through http server but I keep getting the below error. Is the below error coming from my code or from the http server ???? Any help/tip will be very much appreciated. Thank...
1
by: Kenneth Myhra | last post by:
Hi all, while trying to convert a C++ ISAPI-filter, used to authorize file requests, to .NET we have gotten into a problem with the 'PUT' verb. First I will explain how we do this. We are...
2
by: GlennLanier | last post by:
Hello, I've searched the forums and can't find an answer -- if it i there, kindly point me in that direction. I would like to simulate a browser POSTing a FORM and be able to pars the response....
0
by: John | last post by:
Hi, I am getting this error message The remote server returned an error: (405) Method Not Allowed. while trying to execute the following code: Dim myReq As HttpWebRequest =...
0
by: =?Utf-8?B?bGlzc2JwcA==?= | last post by:
I recently made a change to my application to secure web service communication via SSL over port 443. It appears that most of the users are not having any sort of issue with the change, however...
2
Manikgisl
by: Manikgisl | last post by:
we are trying to upload a file using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Net;
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.