Error 405(Method not allowed) error in using webclient.uploadfile method 
Author Message
 Error 405(Method not allowed) error in using webclient.uploadfile method
Hello
I am getting 405 (Method Not allowed) error while calling upload file method
of webclient class on DOTnet framewrok.I have checked file permission and
other setting on IIS and they all are OK.
Please let me know the solution of this problem?

Thanks
sandeep



Tue, 11 Jan 2005 02:59:21 GMT  
 Error 405(Method not allowed) error in using webclient.uploadfile method
Hi,

You may check the following similar post for some possible reasons:
http://groups.google.com/groups?q=%22www.myserver.com%22+and+post+and...
d+UploadFile&hl=zh-CN&lr=&ie=UTF-8&oe=UTF-8&selm=%23rRmohF8BHA.2256%40tkmsft
ngp02&rnum=1

Regards,
Elan Zhou
This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net?  http://www.gotdotnet.com



Fri, 14 Jan 2005 20:30:55 GMT  
 Error 405(Method not allowed) error in using webclient.uploadfile method
Thanks Elan for the help .

I am able to upload the file to my web directory using "PUT" instead of
"POST"

Only problem is that header of the request is also written on file.for
example if my file name is "1.txt" and content of the file is

"elan" then file which is uploaded on the server has content like this

-----------------------8c405c905b24bd0

Content-Disposition: form-data; name="file"; filename="1.txt"

Content-Type: application/octet-stream

elan

-----------------------8c405c905b24bd0

Please help me in solving this problem also since I could not find any thing
in webclient class to get rid of these headers.

Thanks in advance

Sandeep garg


Quote:
> Hi,

> You may check the following similar post for some possible reasons:

http://groups.google.com/groups?q=%22www.myserver.com%22+and+post+and...
d+UploadFile&hl=zh-CN&lr=&ie=UTF-8&oe=UTF-8&selm=%23rRmohF8BHA.2256%40tkmsft
Quote:
> ngp02&rnum=1

> Regards,
> Elan Zhou
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Got .Net?  http://www.gotdotnet.com



Sun, 16 Jan 2005 01:23:43 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. HTTP Error 405 405 Method Not Allowed

2. HTTP Error 405 405 Method Not Allowed

3. 405 error, Method Not Allowed

4. 405 Method Not Allowed

5. 405 Method Not Allowed on Netscape 4.0???

6. Error 405 by uploadfile methode

7. Error:HTTP Error 405

8. Request method not allowed when using https??

9. Error 405 when Webclass is run on Submit

10. HTTP 405 Error! Please Help :-)

11. Public Method in a class calling a private method in same class yields ByRef error

12. Error message 405

 

 
Powered by phpBB® Forum Software