473,563 Members | 2,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Handlers In Web.config?

What exactly are configuration section handlers in a web.config file?
How would you define them & what for are they used in web.config files?
Is it a must for web.config files to have handlers?

An example of handlers in a web.config file would be highly
appreciated.

Thanks,

Arpan

Sep 9 '06 #1
2 2502
Addendum to post #1 in this thread.....

A web server directory structure looks like this (the physical paths
are shown in brackets):

http://www.site.com (C:\www\site)
http://www.site.com/sales (C:\www\site\sa les)
http://www.site.com/hr (C:\www\site\sa les\hr)

The "sales" virtual directory has a web.config file with the following
settings:

<httpHandlers >
<add verb="PUT, POST", path="index.asp x"
type="System.We b.UI.PageHandle rFactory"/>
</httpHandlers>

Now if the "hr" directory is accessed using the following URL

http://www.site.com/hr

the "hr" directory WILL NOT inherit the settings of the web.config file
which exists in the "sales" virtual directory because configuration
information is processed by virtual directories & not by physical
paths......OK.. ..that's fine....

But if the "hr" directory is accessed using the following URL

http://www.site.com/sales/hr

then the "hr" directory in this case WILL inherit the settings of the
web.config file that exists in the "sales" virtual directory, am I
right?

Please correct me if I am wrong

Arpan

Arpan wrote:
What exactly are configuration section handlers in a web.config file?
How would you define them & what for are they used in web.config files?
Is it a must for web.config files to have handlers?

An example of handlers in a web.config file would be highly
appreciated.

Thanks,

Arpan
Sep 9 '06 #2
Anyone????

Arpan wrote:
Addendum to post #1 in this thread.....

A web server directory structure looks like this (the physical paths
are shown in brackets):

http://www.site.com (C:\www\site)
http://www.site.com/sales (C:\www\site\sa les)
http://www.site.com/hr (C:\www\site\sa les\hr)

The "sales" virtual directory has a web.config file with the following
settings:

<httpHandlers >
<add verb="PUT, POST", path="index.asp x"
type="System.We b.UI.PageHandle rFactory"/>
</httpHandlers>

Now if the "hr" directory is accessed using the following URL

http://www.site.com/hr

the "hr" directory WILL NOT inherit the settings of the web.config file
which exists in the "sales" virtual directory because configuration
information is processed by virtual directories & not by physical
paths......OK.. ..that's fine....

But if the "hr" directory is accessed using the following URL

http://www.site.com/sales/hr

then the "hr" directory in this case WILL inherit the settings of the
web.config file that exists in the "sales" virtual directory, am I
right?

Please correct me if I am wrong

Arpan

Arpan wrote:
What exactly are configuration section handlers in a web.config file?
How would you define them & what for are they used in web.config files?
Is it a must for web.config files to have handlers?

An example of handlers in a web.config file would be highly
appreciated.

Thanks,

Arpan
Sep 12 '06 #3

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

Similar topics

3
1939
by: Andreas Jung | last post by:
I am trying to write a custom logger with a custom handler: class MyHandler(StreamHandler): pass class Logger: def __init__(self): self._l = logging.getLogger('someident') self._l.addHandler(MyHandler('/path/to/logfile'))
3
5264
by: Jeff Shannon | last post by:
I'm having some difficulty getting my logging configuration set correctly. I'm using a config file (copied at end of post), with the intent of setting several loggers which write to a combination of a file, stderr (for debugging), and the NT Eventlog, but I don't seem to be getting the right combination of handlers called. The desired...
1
1925
by: R. Raghuraman | last post by:
Hi, Q1: Do the section handlers in .NET work with CMAB? The CMAB seems to say so, but I am not sure. Q2: I am having trouble using CMAB with the standard section handler - I've been able to use CMAB with the HashtableSectionHandler. However, when I try to replace this with DictionarySectionHandler, I get a null reference exception: See...
4
1908
by: Nick Gilbert | last post by:
Hi, I would like the ability to store the configuration settings for all versions of my site in a single web.config file by using different sections. Eg: <siteConfig> <machine name="XENON"> <site url="/blog/"> <mode value="live">
1
1378
by: bneron | last post by:
hello, I use the logging module include in Python 2.4 distribution, and I 'd like to have a logger witth several Handlers . I know how to do this by coding in python, but could I specify this directly in the logger configuration file? Thanks in advance! bertrand
3
1583
by: shapper | last post by:
Hello, I have been using Http handlers and I have two questions: 1. What does Property IsReusable really does and when should I use it? 2. And why should I add an httpHandler to my Web.Config? <configuration> <system.web>
4
1951
by: TampaWebDevelopment | last post by:
I have a server with about 50 web applications on it. I would like to enable ASP.NET Ajax on all of them, but I don't want to spend the time manually modifying each and every web.config. Can I simply add the ajax entries to the machine.config instead? And, if so, exactly what are the entries I will need to add? Thanks for your help!
2
5097
by: Smithers | last post by:
I have a Windows Forms application that implements a plug-in architecture whereby required assemblies are identified and loaded dynamically. Here are the relevant classes: A = application = Windows Forms class B = a singleton hosted within A. B is responsible for dynamically loading classes X, Y, and Z.
1
1788
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 context) { context.Response.Write("Unable to retrieve file"); context.Response.ContentType = "plain/text"; context.Response.Flush();
0
7659
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
7882
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
8103
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...
0
7945
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...
1
5481
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...
0
3634
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...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
916
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.