473,569 Members | 2,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="*.someext ension" type="MyAssembl y.IHttpHandler,
MyAssembly, Version=1.0.0.0 , Culture=neutral ,
PublicKeyToken= 47922ba823051f3 f, 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="*.someext ension" type="MyAssembl y.IHttpHandler,
MyAssembly, Version=1.0.0.0 , Culture=neutral ,
PublicKeyToken= 47922ba823051f3 f, 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="*.someext ension" type="MyAssembl y.IHttpHandler,
MyAssembly, Version=1.0.0.0 , Culture=neutral ,
PublicKeyToken= 47922ba823051f3 f, Custom=null" />
</httpHandlers>
</system.web>


Jul 21 '05 #1
0 1704

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

Similar topics

0
353
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...
0
1253
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"...
1
1302
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 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....
1
2262
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="*"...
4
3319
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>
0
1160
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>
0
858
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 removed or are there services that rely on these entries being present? <add verb="GET,HEAD" path="*.dll.config"...
5
2000
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
5
1327
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 understand it, we can make the path "filename.*" and we can make it "abc*.*". But we cannot make it "files\*" or "files\*.rtf".
0
7698
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...
0
7924
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. ...
0
8122
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7673
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...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
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...
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
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...

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.