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

web.config, HTTP Module, and the GAC

I have a web.config in the root of my website, in the web.config I have
defined an HTTPModule that is to be loaded into any application under the
website. Also defined in the web config is a custom configuration section,
and the custom section points to a file, the file is in the same directory
as the web.config. The HTTPModule references an assembly that knows how to
read this custom configuration section. The HTTPModule and referenced
assemblies are in the GAC.

The problem:
When my application loads the HTTPModule tries to read the custom section
and is unable to find it and as such throws an error.

What I have tried:
1) Adding the custom config to the application directory
2) Adding the custom config to the app dir and declaring the custom
section in the app's web config
3) C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONF IG <-- modified the
web.config to define the custom section, copied the custom file to that dir.
Performed IISReset.
4) Adding the custom config to the app dir, declare the custom section in
the app's web config, and adding a reference to the HTTPModule and other
assemblies.

1, 2 and 3 did not solve my issue and 4 did work. However, 3 is not an
option as it makes no sense to reference an assembly that I wish to be able
to dynamically load.
I'd rather not place the files at the machine level to fix this, incase
there is something I may have missed in my testing, as the custom file needs
to be able to be different for each app.

Any ideas someone may have would be greatly appreciated.

Thanks
Wayne
Apr 21 '06 #1
1 2133
Any body have any ideas?
"Wayne Sepega" <Me******@community.nospam> wrote in message
news:e4**************@TK2MSFTNGP05.phx.gbl...
I have a web.config in the root of my website, in the web.config I have
defined an HTTPModule that is to be loaded into any application under the
website. Also defined in the web config is a custom configuration section,
and the custom section points to a file, the file is in the same directory
as the web.config. The HTTPModule references an assembly that knows how to
read this custom configuration section. The HTTPModule and referenced
assemblies are in the GAC.

The problem:
When my application loads the HTTPModule tries to read the custom section
and is unable to find it and as such throws an error.

What I have tried:
1) Adding the custom config to the application directory
2) Adding the custom config to the app dir and declaring the custom
section in the app's web config
3) C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONF IG <-- modified the
web.config to define the custom section, copied the custom file to that
dir. Performed IISReset.
4) Adding the custom config to the app dir, declare the custom section in
the app's web config, and adding a reference to the HTTPModule and other
assemblies.

1, 2 and 3 did not solve my issue and 4 did work. However, 3 is not an
option as it makes no sense to reference an assembly that I wish to be
able to dynamically load.
I'd rather not place the files at the machine level to fix this, incase
there is something I may have missed in my testing, as the custom file
needs to be able to be different for each app.

Any ideas someone may have would be greatly appreciated.

Thanks
Wayne

Apr 28 '06 #2

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

Similar topics

3
by: Christopher | last post by:
I am trying to find out if there is similar functionality as Perls Config::General module in PHP. I would like to do this project in PHP and need to read in a conf file that the Perl module uses. ...
0
by: Dan Gass | last post by:
config-py version 1.1 has been released and is available at SourceForge. Highlights of the changes are: 1) License changed from GPL to MIT (less restrictive) 2) Settings available as...
4
by: Fuzzyman | last post by:
There have been a couple of config file 'systems' announced recently, that focus on building more powerful and complex configuration files. ConfigObj is a module to enable you to much more *simply*...
0
by: Simon John | last post by:
I have a program that consists of one main module and lots of small sub-modules. In the main module I open a text file and grep for a language setting, this language setting will then be used as...
5
by: qqcq6s59 | last post by:
Hi all I am a newbie and I just saw a ongoing thread on Fileprocessing which talks abt config parser. I have writen many pyhton program to parse many kind of text files by using string module and...
20
by: tomerfiliba | last post by:
hey i've been seeing lots of config-file-readers for python. be it ConfigObj (http://www.voidspace.org.uk/python/configobj.html) or the like. seems like a trend to me. i came to this conclusion...
3
by: SevDer | last post by:
Hi All, I am recently experiencing a weird problem. I don't know what exactly is the cause of the problem but here is my scenario and symptoms. First of all here is my architecture 1. I have...
10
by: sandipm | last post by:
Hi, In my application, I have some configurable information which is used by different processes. currently I have stored configration in a conf.py file as name=value pairs, and I am importing...
3
by: Lowell Alleman | last post by:
Here is the situation: I wrote my own log handler class (derived from logging.Handler) and I want to be able to use it from a logging config file, that is, a config file loaded with the...
2
by: kj | last post by:
I'm sure this is a simple, but recurrent, problem for which I can't hit on a totally satisfactory solution. As an example, suppose that I want write a module X that performs some database...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.