473,406 Members | 2,390 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,406 software developers and data experts.

httpHandlers using machine.config and GAC

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)

It DOES work if I put the assembly in the bin and add the handler to the
web.config or inside a specific <location path="mydomain.com"> tag in the
machine.config.
Can anyone tell me how to get it to fire with the assembly in the GAC and a
global add for all locations in the machine.config?

My main concern is not being able to put it in the GAC right now.

Thanks.

----------------------------------------------------------

THIS WORKS with assembly in bin (not with assembly in GAC):
[web.config]
<system.web>
<httpHandlers>
<add verb="GET" path="*.someextension" type="MyAssembly.IHttpHandler,
MyAssembly, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=47922ba823051f3f, Custom=null" />
</httpHandlers>
</system.web>

THIS WORKS with assembly in bin (not with assembly in GAC):
[machine.config]
<location path="mydomain.com">
<system.web>
<httpHandlers>
<add verb="GET" path="*.someextension" type="MyAssembly.IHttpHandler,
MyAssembly, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=47922ba823051f3f, Custom=null" />
</httpHandlers>
</system.web>
</location>

THIS DOESN"T WORK with assembly in bin or GAC:
[machine.config]
<system.web>
<httpHandlers>
<add verb="GET" path="*.someextension" type="MyAssembly.IHttpHandler,
MyAssembly, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=47922ba823051f3f, Custom=null" />
</httpHandlers>
</system.web>


Jul 21 '05 #1
0 1682

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

Similar topics

0
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...
0
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...
1
by: Patrick Kristiansen | last post by:
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...
1
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...
4
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"...
0
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...
0
by: dloughran | last post by:
Can anyone explain why the following two entries exist in the .NET 1.1 machine.config file? Are they not a potential security risk being associated with the StaticFileHandler? Can they be safely...
5
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....
5
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
Hi; We return files that are stored in our database using an httpHandler as follows: <httpHandlers> <add verb="*" path="report-view.*" type="ReportView"/> </httpHandlers> Now as I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.