473,671 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Clearing HTTPHandlers

Hi!

I have on my website a root web.config file, and also created a
subapplication "/publikationer". In my root web.config I've specified
an HTTP-handler for some requests, but this is mirrored in my
subapplication. Eventhough I <clear /> my HTTP-handlers it doesn't
seem to work, and it still gives me an error about an assembly not
found. It should not use this certain HTTP-handler in my
subapplication.

What should I do?

==== My root web.config ====
....
<httpHandlers >
<add verb="*" path="*.ventus" type="Ventus.Ve ntusHttpHandler ,Ventus"
/>
</httpHandlers>
....

==== Subapplication web.config ====
<httpHandlers >
<clear/>
</httpHandlers>

==== Error ===
File or assembly name Ventus, or one of its dependencies, was not
found.

Thanks in advance,
Patrick
Nov 17 '05 #1
1 1307
"Patrick Kristiansen" <pa*****@sixulo n.dk> wrote in message
news:45******** *************** *@posting.googl e.com...
Hi!

I have on my website a root web.config file, and also created a
subapplication "/publikationer". In my root web.config I've specified
an HTTP-handler for some requests, but this is mirrored in my
subapplication. Eventhough I <clear /> my HTTP-handlers it doesn't
seem to work, and it still gives me an error about an assembly not
found. It should not use this certain HTTP-handler in my
subapplication.

What should I do?


Microsoft has previously admitted that this is a deficiency in ASP.NET. The
answer is that you'l have to include that assembly where your subapplication
can find it, maybe in the bin directory.
--
John
Nov 17 '05 #2

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

Similar topics

0
1711
by: some guy with a computer | last post by:
I can not get a custom httpHandler to fire using machine.config and an assembly in the GAC. It will not work if I move the assembly to the GAC, even though I have it referenced correctly and add the assembly to the <compile> tag (all my other controls I can call from the GAC this way). It will not work if I have the handler specified where the rest are (*.cs, *.aspx.....etc, in machine.config)
2
1533
by: Luis | last post by:
Hi, I want to protected all files in my website, so I try to use httpHandlers, I put this in my WEB.CONFIG (at the end of page), but I can't protected the files type MDB, CSB, can someone help me? : <httpHandlers> <add verb="*" path="*.mdb" type="System.Web.HttpForbiddenHandler" /> <add verb="*" path="*.csv" type="System.Web.HttpForbiddenHandler" />
0
1257
by: Chance Hopkins | last post by:
Does anyone know how to get a custom httpHandler to fire for all applications in machine.config for an assembly in the GAC, without using seperate location tags? For instance, this works for a single domain: <location path="mydomain.com" allowOverride="false" > <system.web> <httpHandlers> <add verb="*" path="*.mycustomExtension" type="MyCustomClass,MyDLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=47922ba823051f3f, Custom=null"...
1
2267
by: TJoker .NET | last post by:
I have this web control that need to process some special urls requested by the browser. So I created a class implementing IHttpHandler to deal with it. The problem here is that to properly use the control, the developer has to include something like the following in his web.config: <httpHandlers> <add verb="*" path="MySpecialResource.ashx" type="MyRequestHandler, MyAssembly"/>
4
3327
by: Grant Harmeyer | last post by:
How would I set up an httpHandler so that it would only apply to certain child directories of the application? I.E: <httpHandlers> <add verb="*" path="/files/*/*/*/*.aspx" type="App.HttpHandlers.ThreeDeepPage, App" /> <add verb="*" path="/files/*/*/*.aspx" type="App.HttpHandlers.TwoDeepPage, App" /> </httpHandlers>
3
2124
by: MWells | last post by:
I'm having an issue getting my HttpHandlers and HttpModules to play together nicely. My HttpHandlers take special document types (defined by extension) and process them specially. I might have an HttpHandler installed to render Excel files as HTML, or to render TIFFs to JPEGs, etc. The HttpModules are used for Uri handling, so that a request for a resource like;
0
1719
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 this section now. Thank you. <!-- PREVENT SOURCE CODE DOWNLOAD This section sets the types of files that will not be downloaded. As well as entering a httphandler for a file type, you must also associate that file
0
1163
by: tshad | last post by:
I have 2 controls that I need to run that I got of the Web. I have been using ScrollKeeper for awhile and was trying to add FreeTextBox to my site. But for some reason it won't run if ScrollKeeper is there. Here is my Web.Config file: <configuration> <system.web> <customErrors mode="Off" /> <httpModules>
5
2005
by: Anonieko | last post by:
HttpHandlers - Learn Them. Use Them. Introduction There are many features in ASP.NET that are unfortunately underused. Sometimes a feature gets looked over because it's too complicated. Other times, like in the case of HttpHandlers, it's because they are poorly understood. For the longest time I understood the concept and
0
8473
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8390
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8911
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8597
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8667
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4402
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.