Hello,
I was wondering how I can reference assemblies from web.config files
residing in subdirectories without having to create a new project for each
web.config-containing subdirectory?
I would like to use an HttpModule, but only for files in a particular
directory, so I add a web.config file containing this:
<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<system.web>
<httpModules>
<add name="MessageAu thenticatorModu le"
type="Din.Messa geAuthenticator ,localhost"/>
</httpModules>
</system.web>
</configuration>
to the proper subdirectory. The problem is that the localhost.dll cannot be
found for some reason, even though the web.config file should be part of the
main web project. I really don't want to have to register anything in the
GAC.
Another question: if I have to resort to creating another web project with
its root located at the subdirectory mentioned above, does the web.config
file still inherit values from the main web project? If not, which I suspect
is the case, then creating a separate project is not much of an alternative.
Thank you,
--
Lucas Fletcher lu***@dealersin notions.com http://dealersinnotions.com 2 2929
Some additional information:
The subdirectory was a web application, which explains why it was looking in
its own bin directory.
However: Now that I have removed the application at the subdir (so now it's
just a plain virtual directory) the web.config file is not being read at
all.
I also tried using the <location> tag within the root's web.config, but
still no go...
"Lucas Fletcher" <lu***@dealersi nnotions.com> wrote in message
news:#i******** *****@TK2MSFTNG P09.phx.gbl... Hello,
I was wondering how I can reference assemblies from web.config files residing in subdirectories without having to create a new project for each web.config-containing subdirectory?
I would like to use an HttpModule, but only for files in a particular directory, so I add a web.config file containing this: <?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<system.web>
<httpModules>
<add name="MessageAu thenticatorModu le" type="Din.Messa geAuthenticator ,localhost"/>
</httpModules>
</system.web>
</configuration>
to the proper subdirectory. The problem is that the localhost.dll cannot
be found for some reason, even though the web.config file should be part of
the main web project. I really don't want to have to register anything in the GAC.
Another question: if I have to resort to creating another web project with its root located at the subdirectory mentioned above, does the web.config file still inherit values from the main web project? If not, which I
suspect is the case, then creating a separate project is not much of an
alternative. Thank you,
-- Lucas Fletcher lu***@dealersin notions.com http://dealersinnotions.com
Lucas,
I don't really have a pointer, but it looks like you're at a point where you
could use anything...
I once complained to Microsoft about the following. I had an ASP.NET web
application installed in the root of a web site. Its web.config <add>ed an
HttpModule, AModule. I then created a subapplication. That was a problem:
1) The subapplication would not start, since it couldn't find AModule.
2) The subapplication couldn't <remove> AModule, since it wasn't actually in
the modules list
I eventually had to put a copy of AModule in the bin directory of the
subapplication so that it could <remove> it...
I had similar fun with bad <add> entries not failing. The problem was that
it hadn't gotten that far - it was failing on the <add> entry from the
parent application before it got around to realizing that the <add> in the
child application had invalid attributes.
Good Luck with this. You may have to enter an incident with Microsoft to
reach a resolution.
--
John Saunders
Internet Engineer jo***********@s urfcontrol.com
"Lucas Fletcher" <lu***@dealersi nnotions.com> wrote in message
news:ev******** ******@tk2msftn gp13.phx.gbl... If anyone cares:
Further investigation yields that the subdir's web.config file is being
read to some degree. It does raise an error when containing bad xml. (Also I notice the JIT recompiling when first viewing a page under it, after it
has been edited.) But if I change the add element's name or type attributes to garbage,
<add name="garbage" "garbage,garbag e"/>
no errors are raised (whereas if this were in the root web.config it
would). This is very puzzling to me. It must be something I am doing wrong,
because I would imagine that many people have successfully done this before, since
I haven't found any other postings on it.
Any pointers would be much appreciated...
"Lucas Fletcher" <lu***@dealersi nnotions.com> wrote in message news:eP******** ******@TK2MSFTN GP12.phx.gbl... Some additional information:
The subdirectory was a web application, which explains why it was
looking in its own bin directory.
However: Now that I have removed the application at the subdir (so now it's just a plain virtual directory) the web.config file is not being read at all.
I also tried using the <location> tag within the root's web.config, but still no go...
"Lucas Fletcher" <lu***@dealersi nnotions.com> wrote in message news:#i******** *****@TK2MSFTNG P09.phx.gbl... Hello,
I was wondering how I can reference assemblies from web.config files residing in subdirectories without having to create a new project for each web.config-containing subdirectory?
I would like to use an HttpModule, but only for files in a particular directory, so I add a web.config file containing this: <?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<system.web>
<httpModules>
<add name="MessageAu thenticatorModu le" type="Din.Messa geAuthenticator ,localhost"/>
</httpModules>
</system.web>
</configuration>
to the proper subdirectory. The problem is that the localhost.dll
cannot be found for some reason, even though the web.config file should be part
of the main web project. I really don't want to have to register anything in the GAC.
Another question: if I have to resort to creating another web project with its root located at the subdirectory mentioned above, does the web.config file still inherit values from the main web project? If not, which I suspect is the case, then creating a separate project is not much of an alternative. Thank you,
-- Lucas Fletcher lu***@dealersin notions.com http://dealersinnotions.com
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Florian Lindner |
last post by:
Hello,
how can I get all subdirectories of a given directory. os.listdir(dir)
doesn't differentiate between directories and files, os.walk seems to me a
bit overkill since it also descends in the subdirs.
Thx,
Florian
|
by: Petri J. Riipinen |
last post by:
Hi,
I'm writing a largish (>60 projects) solution with VS.NET 2003 using VB.NET
as my implementation language. I'm using NUnit and NUnit VS.NET-addin to
implement unit tests for my code.
Currently I have a single UnitTests-project that contains unit tests for all
other projects. This way I can embed all unit testing into a single assembly
which I can use during the development but exclude from a setup that I
create from other...
|
by: Vera |
last post by:
I have two assemblies that each consist of several classes.
Each object instantiated from those classes can have one or more child- and/or parentobjects that are also instantiated from those classes. Most relationships exist within one assembly, but relationships between assemblies may sometimes occur. For each relationship, I have to make sure that an object from Class1 knows that it can have an object from Class2 as one of its children....
|
by: WM Chung |
last post by:
Hi all,
I meet a problem in building my .Net Solution and I would like to seek help.
After I have added a dll to reference in one of my project in my solution,
when I re-build the solution, I meet the following error :
------ Rebuild All started: Project: OIDCOMMON, Configuration: Debug .NET
------
Preparing resources...
|
by: Edward Diener |
last post by:
I have a class Y in assembly B which is derived from a class Z in assembly
C. So I correctly add a reference to assembly C in assembly B, build
assembly B and everything builds fine. Now I create an assembly A which
refers to class Y in assembly B. So I add a reference in assembly A to
assembly B, and attempt to build. I get an error message, C3264, saying that
it could not find the type Z, and that it is in assembly C to which I have
no...
| |
by: Edward Yang |
last post by:
In my test, I have two web applications app1 and app2, and I configure
them as follows in IIS:
$/comboapps
|--web.config
|--bin
| app1.dll
| app2.dll
|--app1
| form1.aspx
|
by: Richard Lewis Haggard |
last post by:
We are having a lot of trouble with problems relating to failures relating
to 'The located assembly's manifest definition with name 'xxx' does not
match the assembly reference" but none of us here really understand how this
could be an issue. The assemblies that the system is complaining about are
ones that we build here and we're not changing version numbers on anything.
The errors come and go with no apparent rhyme or reason.
We do not...
|
by: Vipul Pathak |
last post by:
Hi Every one,
I am working on deployment of a library. When the library installs on a
user's machine, I want that the installed assemblies should get listed in
the "Add Reference" (AddRef) dialog box of the user's Visual Studio .NET.
I tried to make some entries into registry so that the assemblies can be
shown in the "AddRef" dialog. I succeeded in showing them for VS 2005 and VS
2003 for .NET project types.
|
by: zqiang320 |
last post by:
Hello:
I execute make ,then get error:
$ make
Making all in libsbml/src
make: Entering directory `/home/internet/mydoc/test_pj/libsbml/src'
........
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -o test test.o
libsbml/src/libsbml.la -lsbml -lstdc++ -lm
|
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...
|
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...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |