473,608 Members | 2,689 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom Configuration at Application Directory Level

In reading MSDN docs on creating custom Configuration sections, I found this
page:

http://msdn.microsoft.com/library/de...ionhandler.asp

At the very bottom, it says:

Configuration File
This element can be used in the application configuration file, machine
configuration file (Machine.config ), and Web.config files that are not at the
application directory level.

What do they mean by "Web.config files that are not at the application
directory level." I thought this was the whole point of custom web.config
sections. If I have a web service running in

http://myserver/MyWebService/myEndpoint.asmx

Does this mean I can't define a custom configuration section in a web config
at:

http://myserver/MyWebService/web.config
Thanks in advance,
Mike
Nov 19 '05 #1
5 2269
Hi, rdcpro.

You can have web.config files, which determine
how the Application responds, in subdirectories
of the Application.

You could have different web.config files in *every*
subdirectory of the Application if you so wished or needed.

OTOH, you can only have one global.asax for the Application.


Juan T. Llibre
ASP.NET MVP
===========
"rdcpro" <rd****@communi ty.nospam> wrote in message
news:61******** *************** ***********@mic rosoft.com...
In reading MSDN docs on creating custom Configuration sections, I found
this
page:

http://msdn.microsoft.com/library/de...ionhandler.asp

At the very bottom, it says:

Configuration File
This element can be used in the application configuration file, machine
configuration file (Machine.config ), and Web.config files that are not at
the
application directory level.

What do they mean by "Web.config files that are not at the application
directory level." I thought this was the whole point of custom web.config
sections. If I have a web service running in

http://myserver/MyWebService/myEndpoint.asmx

Does this mean I can't define a custom configuration section in a web
config
at:

http://myserver/MyWebService/web.config
Thanks in advance,
Mike

Nov 19 '05 #2
On Mon, 24 Jan 2005 16:39:03 -0800, rdcpro <rd****@communi ty.nospam> wrote:
In reading MSDN docs on creating custom Configuration sections, I found
this
page:

http://msdn.microsoft.com/library/de...ionhandler.asp

At the very bottom, it says:

Configuration File
This element can be used in the application configuration file, machine
configuration file (Machine.config ), and Web.config files that are not
at the
application directory level.

What do they mean by "Web.config files that are not at the application
directory level." I thought this was the whole point of custom
web.config
sections. If I have a web service running in

http://myserver/MyWebService/myEndpoint.asmx

Does this mean I can't define a custom configuration section in a web
config
at:

http://myserver/MyWebService/web.config
Thanks in advance,
Mike


I think they mean 'application configuration file' can be web.config, as
it's the app config file for a web app. Then, in addition, you can use it
in web.config files in subdirectories of a web app. A little confusing,
but they're trying to cover web and windows apps in one sentence (page).

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 19 '05 #3
Hi Mike,

The
=============== ==
Configuration File
This element can be used in the application configuration file, machine
configuration file (Machine.config ), and Web.config files that are not at
the application directory level.

=============== ==

in the MSDN reference is focus on asp.net configuration scenario. Every
asp.net web application (in IIS) will be hosted in an Virutual dir which is
configured as "Applicatio n". And this virtual dir is called the root
directory of the asp.net web application.( there may exists many hierarchy
of sub dirs under it). And we can put web.config file in both root dir or
sub dir( roor dir's web.config is not optional). However, not all those
xml config element are allowed to used in the sub dir's web.config, some
are only allowed to appear once for each asp.net web application (in the
root dir's web.config). That's why each config element in MSDN 's schema
reference will have the above notes.

=============== ==
Configuration File
This element can be used in the application configuration file, machine
configuration file (Machine.config ), and Web.config files that are not at
the application directory level.

=============== ==

this means that this element can be used not only in asp.net application's
root dir's web.config but also in subdir's web.config file.

If there is still anything unclear, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #4
Ok, thanks! I see that I read it wrong. I thought it was saying you couldn't
do this at the root level, only in subdirs! Doh.

Thanks to all who responded.

Mike

"Steven Cheng[MSFT]" wrote:
Hi Mike,

The
=============== ==
Configuration File
This element can be used in the application configuration file, machine
configuration file (Machine.config ), and Web.config files that are not at
the application directory level.

=============== ==

in the MSDN reference is focus on asp.net configuration scenario. Every
asp.net web application (in IIS) will be hosted in an Virutual dir which is
configured as "Applicatio n". And this virtual dir is called the root
directory of the asp.net web application.( there may exists many hierarchy
of sub dirs under it). And we can put web.config file in both root dir or
sub dir( roor dir's web.config is not optional). However, not all those
xml config element are allowed to used in the sub dir's web.config, some
are only allowed to appear once for each asp.net web application (in the
root dir's web.config). That's why each config element in MSDN 's schema
reference will have the above notes.

=============== ==
Configuration File
This element can be used in the application configuration file, machine
configuration file (Machine.config ), and Web.config files that are not at
the application directory level.

=============== ==

this means that this element can be used not only in asp.net application's
root dir's web.config but also in subdir's web.config file.

If there is still anything unclear, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #5
You're welcome Mike,

Have a good day!

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #6

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

Similar topics

8
3748
by: Geopsaros | last post by:
Hi! I have created a custom trace Listener class, called "DBTraceListener" it works fine when i add it manually in code : (eg. Trace.listeners.add(new DBTraceListener("myDBListener", TraceLevel.Verbose, getDBConnection) ) What I'm trying to achieve now is to add this listener via the MyApplication.exe.config file
3
4896
by: Damian | last post by:
Hi everyone I'm having an issue with one of our applications. I'm getting the following error when attempting to log in to the site: Server Error in 'xxxxxxxxxxxxxxxx' Application. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The current
5
1606
by: Arsalan Ahmad | last post by:
Hi all, I am developing a simple one page application in ASP.NET which takes an input in a text box and print in a label. But when i uploaded it to the website i get the following error: Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
6
391
by: chokk | last post by:
All, I am getting the following error when I try to run a form page. Can someone tell me what this is about and show me how to fix it. Thnaks. Server Error in '/' Application -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and...
2
2096
by: BentleyInc | last post by:
I wrote a DownloadRequestHandler to be used in http://server/DownloadDir and I've made the correct IIS settings for DownloadDir. Currently I'm having problem loading up some dependent assemblies. Here's my web.config in the physical directory of DownloadDir. Class myDownloadRequestHandler loads myRequestHandlers successfully but it then complains it couldn't load myLogging. myLogg.dll does exist in c:\inetpub\wwwroot\bin\. Any ideas why...
5
2519
by: Graham | last post by:
I have created a custom MembershipProvider called "LassieMembershipProvider" that derives from "MembershipProvider". This providor is located in a Businesslogic layer dll called "Enlighten.LinkMad.Businesslogic". In one of my frontend websites I use this type to authenticate a user who is trying to login. The following excerpt is from the web.config of the particular site showing the reference to the custom provider, allowing .Net to do...
3
302
by: Dirk | last post by:
Hi, I started with asp.net 2.0. I defined directory inetpub/wwwroot/aspnet as an application in IIS and the directory security is set to "anonymous access" (even when unchecked i get the error). When starting a simple file like: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
0
2104
by: Atul Thombre | last post by:
Hello, I am developing a custom membership provider. For that I built a prototype that uses a SQL Server 2005 database as a backend store. I implemented the class System.Web.Security.MembershipProvider and implemented few necessary methods. The methods use SQL for interacting with the SQL Server database. I put all this code in a class library. I also created a simple Website using Visual Studio 2005 and configured the Web.config to...
0
1617
by: =?Utf-8?B?UGhpbGlw?= | last post by:
I have a web.config custom configuration section using asp.net 2.0 configuration APIs. My custom configuration section inherits from System.Configuration.ConfigurationSection. I have a IIS root level web.config and an application level web.config, with the application web.config inheriting from the root level web.config. I am receiving the following message when compiling the web application... "....Section or group name...
0
8050
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
8472
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...
0
8464
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8324
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
6000
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
3954
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...
1
2464
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
1574
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1318
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.