473,394 Members | 1,671 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,394 software developers and data experts.

HTTP error 405 for 'PUT' verb

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 implementing the IHttpModule, and
mapping up the file-types in IIS to aspnet_isapi.dll by using Application
mappings, so that our IHttpModule will be triggered when the specific
file-type(s) is requested. You can get to these settings by displaying the
properties for a [virtual folder]/[web application] and clicking the
'Configuration' button on the 'Virtual Directory' tab. The weird thing is
that as long as the file types are not mapped up to the aspnet_isapi.dll we
do not receive an error and the files are uploaded. But as soon as we set
the Application mapping we can no longer upload files, and we receive the
HTTP error 405 'method not allowed'. So my question is how do I get around
this so that I can upload files while they are mapped to the
aspnet_isapi.dll? It is *not* an option to remove these mappings as they are
necessary for our IHttpModule implementation to work.

Regards,
Kenneth Myhra
Nov 18 '05 #1
1 3155
asp.net does not have support for the put verb, so you will have to write a
module to implement the put verb, as the asp.net filter replaced the front
page extension (or whatever you were using) that implemented "put".

rather than using asp.net, you could write a ISAPI C++ filter that loaded a
..net module to perform the filter (could even load the ihttpmodule). this
would be rather trival.

-- bruce (sqlwork.com)

"Kenneth Myhra" <ke**********@hotmail.com> wrote in message
news:u5**************@tk2msftngp13.phx.gbl...
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 implementing the IHttpModule, and
mapping up the file-types in IIS to aspnet_isapi.dll by using Application
mappings, so that our IHttpModule will be triggered when the specific
file-type(s) is requested. You can get to these settings by displaying the
properties for a [virtual folder]/[web application] and clicking the
'Configuration' button on the 'Virtual Directory' tab. The weird thing is
that as long as the file types are not mapped up to the aspnet_isapi.dll we do not receive an error and the files are uploaded. But as soon as we set
the Application mapping we can no longer upload files, and we receive the
HTTP error 405 'method not allowed'. So my question is how do I get around
this so that I can upload files while they are mapped to the
aspnet_isapi.dll? It is *not* an option to remove these mappings as they are necessary for our IHttpModule implementation to work.

Regards,
Kenneth Myhra

Nov 18 '05 #2

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

Similar topics

5
by: Chris Hughes | last post by:
I have an environment with many thousands of client machines uploading data files several times each day to a web server via HTTP PUT. To avoid disk I/O (for performance), I am implementing a...
1
by: Frank S | last post by:
I'm trying to write a custom handler for .rtf files on our website. Using the book "Essential ASP.Net C#" as a guide, I wrote the following and compiled to a dll (assembly named "rtf_cl": ...
0
by: Peter Kron | last post by:
I'm trying to support WebDAV using an HttpHandler, so that I can persist data in a database rather than flat files. I've been stymied by the fact that PUT requests were not getting through to the...
0
by: yma | last post by:
Hi, I have a web.config file that contains <httpHandlers> section that causes "cannot load file..." error. If I delete this section, it is OK. Why did vb.net add this section? It does not add...
1
by: Cory Koski | last post by:
Hi all, I'm currently trying to build a component I can use in traditional ASP that utilizes the .NET webservice. I'm using VB.NET to create my class, and I am registering the class for COM...
6
by: =?Utf-8?B?cHJhZGVlcF9UUA==?= | last post by:
I am trying to create a simple HTTP handler in ASP.net 2.0. I am using VS 2005. I am trying to handle a custom extension file givein in the URL. I have also created the following entry in the...
3
by: PJ6 | last post by:
I have this little tidbit in system.web in my web.config file, to allow the handling of requests ending in ".res": <httpHandlers> <remove verb="*" path="*.res"/> <add verb="*" path="*.res"...
1
by: hb | last post by:
I have created an HTTP Handler. For simplicity of testing, it is: public class FetchItem : IHttpHandler { public bool IsReusable { get { return true; } } public void ProcessRequest(HttpContext...
4
by: MonkeyHater | last post by:
This program is a random sentence generator. I have it running.. more or less. When it complies I will get some correct sentences and I will get some sentences that don't even contain real words....
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.