473,659 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS ignores web.config in subfolder

I have a ASP.Net application with web.config files in subfolders. This works
fine with the Visual Studio development server. But after publication to an
IIS6 webserver a config file inside a subsubfolder is completely ignored,
regardless of the settings it defines.
Any ideas what could cause this?
Nov 13 '06 #1
3 6425
It is not the complete web.config which is ignored but rather the
HttpHandlers I define in this web.config.

"Ralf Ziller" <no****@none.de schrieb im Newsbeitrag
news:Ov******** ********@TK2MSF TNGP02.phx.gbl. ..
>I have a ASP.Net application with web.config files in subfolders. This
works fine with the Visual Studio development server. But after publication
to an IIS6 webserver a config file inside a subsubfolder is completely
ignored, regardless of the settings it defines.
Any ideas what could cause this?

Nov 13 '06 #2
From
http://msdn.microsoft.com/library/de...erssection.asp :

"Please note that Microsoft Internet Information Services (IIS) has its own
concept of mapping extensions to ISAPIs. For the settings for a given
extension in this section to take effect, the extension must be mapped in
IIS to ASP.NET ISAPI. For nonstandard extensions (something other than
..aspx, .asmx, .asax, and so on), the user must configure IIS."

If it still doesn't work I would move this to the main config file just to
see if it looks like a problem with configuration inheritance or a more
general likely IIS problem.

--
Patrice

"Ralf Ziller" <no****@none.de a écrit dans le message de news:
uV************* *@TK2MSFTNGP03. phx.gbl...
It is not the complete web.config which is ignored but rather the
HttpHandlers I define in this web.config.

"Ralf Ziller" <no****@none.de schrieb im Newsbeitrag
news:Ov******** ********@TK2MSF TNGP02.phx.gbl. ..
>>I have a ASP.Net application with web.config files in subfolders. This
works fine with the Visual Studio development server. But after
publication to an IIS6 webserver a config file inside a subsubfolder is
completely ignored, regardless of the settings it defines.
Any ideas what could cause this?


Nov 13 '06 #3
Thank you, that was exactly the problem...

"Patrice" <sc****@chez.co mschrieb im Newsbeitrag
news:uW******** ******@TK2MSFTN GP04.phx.gbl...
From
http://msdn.microsoft.com/library/de...erssection.asp :

"Please note that Microsoft Internet Information Services (IIS) has its
own concept of mapping extensions to ISAPIs. For the settings for a given
extension in this section to take effect, the extension must be mapped in
IIS to ASP.NET ISAPI. For nonstandard extensions (something other than
.aspx, .asmx, .asax, and so on), the user must configure IIS."

If it still doesn't work I would move this to the main config file just to
see if it looks like a problem with configuration inheritance or a more
general likely IIS problem.

--
Patrice
Nov 13 '06 #4

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

Similar topics

0
1517
by: Joe Abou Jaoude | last post by:
I have an application that support multiple cultures. the main folder is english, and the subfolder "French" is french. I don't want to create a web config in the subfolder french to specify the culture, so I m using the location element in the web.config in the main folder. I have the folowing in web config file: <location path="MyWebApp/French/"> <system.web> <globalization culture="fr-FR" uiCulture="fr-FR" >
1
1556
by: Peter Avalos | last post by:
I am trying to configure a set of access rules for a subfolder in my project. The folder is a subfolder in the application folder and cannot read the dll file in the application's bin folder. How do I propertly tell the compiler in the Web.config file used in the sub folder where to find the application's dll? I tried the following to no avail: <compilation defaultLanguage="vb" debug="true"> <assemblies> <add assembly="D:\My Web...
2
1464
by: John Spiegel | last post by:
Hi all, I'm working through examples on configuring ASP.NET (all on local machine). The first exercise deals with the customErrors in the config files. The machine.config file has a customErrors mode set to RemoteOnly and the application's web.config has it set to On with a redirect for a 404 error. This works fine. However, when I add a subfolder to the application and place a web.config file in there (from the IDE so I'm not just...
2
1202
by: gemel | last post by:
In the web.config folder at the root of my VS project I have the following section: <customErrors mode="On"> <error statusCode="404" redirect "404.aspx" /> </customErrors mode> When access to a non-existent page is made from any aspx file in the root then this 404.aspx page is execited as required.
9
6395
by: Benny Ng | last post by:
Hi,all, How to let the sub-directory to avoid the authentication control from Root's webconfig? I heard that we can add a new web.config to the sub-directory. And then we can slove the problem. Virtual directory is £ºhttp://localhost/main Sub-directory is : http://localhost/main/reminder
5
3669
by: Jason Chan | last post by:
I have a subfolder in a webapp How can the aspx in the subfolder access the web.config in the webapp. I.e. I stored the connectionstring in the \webapp\web.config how the \webapp\subfolder\default.aspx extract the connection? ConfigurationSettings.AppSettings return empty string Do I have to copy the web.config to the subfolder?
1
1227
by: Abraham Andres Luna | last post by:
hello everyone, i set up a folder to have integrated windows authentication through iis. in order for this to work with asp.net, i have to set the identity.impersonate=true in the web.config for that folder. my questions is, why doesn't the subfolders inherit the impersonate setting. when i try to access a page in a subfolder i am prompted for login info. i guess the answer would be to have a web.config in every subfolder, but i
1
1972
by: interuser | last post by:
Hi. I have some values in web.config of a subfolder: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="remoteFile" value="/TEST/ACCBALEXP.TXT" /> <add key="UseSqlLogging" value="False" /> </appSettings>
1
3034
by: mattgarvin | last post by:
Hello, my company hosts many websites, and we want to add a Feedback Form (like "Contact Us") that can be re-used on all of them just by "dropping in" a new directory containing the code. My boss told me to make it as modular as possible, and to make it a control we can just drag on to a page. Then he went on vacation for a week. :) I have been reading about web.config files, and thought I could utilize one to contain the few items...
0
8850
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
8746
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...
1
8523
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
8626
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
6178
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
5649
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
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
2
1737
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.