Removing HttpHandler in SubWeb

M

Mark Olbert

I have a subweb (marked as an application in IIS) that I do >>not<< want to utilize an httpHandler
defined in the parent web.

According to the documentation, I should be able to do this by putting the following directive in
the subweb's web.config file:

<httpHandlers>
<remove verb="*" path="*.scef" />
</httpHandlers>

But that doesn't work unless you first make the parent web's application dll -- where the handler is
defined -- available to the subweb (I did this by copying the parent dll into the subweb's bin
directory...which is stupid, but it works).

I've seen reference to this being a known bug in ASP.NET.

I'd like confirmation that this is a known bug. I'd also appreciate hearing if there are any other
workarounds other than the one I stumbled across.

- Mark
 
J

John Saunders

Mark Olbert said:
I have a subweb (marked as an application in IIS) that I do >>not<< want to utilize an httpHandler
defined in the parent web.

According to the documentation, I should be able to do this by putting the following directive in
the subweb's web.config file:

<httpHandlers>
<remove verb="*" path="*.scef" />
</httpHandlers>

But that doesn't work unless you first make the parent web's application dll -- where the handler is
defined -- available to the subweb (I did this by copying the parent dll into the subweb's bin
directory...which is stupid, but it works).

I've seen reference to this being a known bug in ASP.NET.

I'd like confirmation that this is a known bug. I'd also appreciate hearing if there are any other
workarounds other than the one I stumbled across.

Yes, this is a known misfeature, and you've found the workaround.

The only other thing to add is that you only need an assembly with the same
name as the one in the superweb; you don't need a copy of the actual
assembly.
 
M

Mark Olbert

The only other thing to add is that you only need an assembly with the same
name as the one in the superweb; you don't need a copy of the actual
assembly.

That's important in this case 'cause the superweb's assembly is quite large.

Thanx for the info!

- Mark

p.s. to Microsoft -- Shame on you for shipping a product with this kind of bug in it, and further
shame on you for not fixing it after several years of presence in the market! Sheesh, it almost
looks like you're a monopoly or something, and thus see no need to be responsive to customer
problems.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top