472,811 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Error 405 - Method Not Allowed

I am trying to use the webclient class in VB.Net ... in particular I want to
upload a file to the web server using:

dim responseArray As Byte() = myWebClient.UploadFile(uri,"POST",filename)

When I try this I get Error 405 - Method Not Allowed diagnostic message. I
have searched the help files in .Net and cannot find reference to this
error. Can someone point in the direction of a place where I can learn more
about this error ... and how to get around it?

Thanks very much.
Nov 20 '05 #1
3 4035
* "Steve Young" <yo***@indiana.edu> scripsit:
I am trying to use the webclient class in VB.Net ... in particular I want to
upload a file to the web server using:

dim responseArray As Byte() = myWebClient.UploadFile(uri,"POST",filename)

When I try this I get Error 405 - Method Not Allowed diagnostic message. I
have searched the help files in .Net and cannot find reference to this
error. Can someone point in the direction of a place where I can learn more
about this error ... and how to get around it?


Maybe your webserver doesn't allow the "POST" method?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

Well, yes ... but where can I learn more about what the "POST" method is ...
and what other methods there are ... etc. Also, I tried using localhost as
the web server (I have IIS installed) and I still get the same message. How
do I allow POST method on my own machine?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
* "Steve Young" <yo***@indiana.edu> scripsit:
I am trying to use the webclient class in VB.Net ... in particular I want to upload a file to the web server using:

dim responseArray As Byte() = myWebClient.UploadFile(uri,"POST",filename)
When I try this I get Error 405 - Method Not Allowed diagnostic message. I have searched the help files in .Net and cannot find reference to this
error. Can someone point in the direction of a place where I can learn more about this error ... and how to get around it?


Maybe your webserver doesn't allow the "POST" method?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #3
"Steve Young" <yo***@indiana.edu> wrote in
news:bu*********@enews4.newsguy.com:
Well, yes ... but where can I learn more about what the "POST" method is
... and what other methods there are ... etc. Also, I tried using
localhost as the web server (I have IIS installed) and I still get the
same message. How do I allow POST method on my own machine?


POST and GET are the two primary ones.

In the IIS config for each application you can configure which ones are
allowed.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 20 '05 #4

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

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
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...
3
by: Steve - DND | last post by:
I was wondering if anyone can point me to some articles or practices they use for dealing with errors in their applications; particularly in an n-tier design. I am trying to find one way to...
0
by: Roman | last post by:
I'm trying to create the form which would allow data entry to the Client table, as well as modification and deletion of existing data rows. For some reason the DataGrid part of functionality stops...
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 =...
3
by: moralbarometer | last post by:
Please i intend to make an XML document from a string using tranformer as shown below. It returns an error which trace is given below as well. please help. public org.w3c.dom.Node getTextXML()...
11
by: markryde | last post by:
Hello, Followed here is a simplified code example of something which I try to implement; in essence , I want to assign a value to a return value of a method is C. I know, of course, that in this...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?

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.