I have 2 ASP.NET (C#) applications (A and B) running on the same
server (IIS6, but the problems is also present in IIS5).
Each application has its own Web.Config file. The only difference
between the web config files is the following
<system.web>
<httpHandlers>
<add verb="GET" path="cachedimageservice.axd"
type="MsdnMag.CachedImageService,DynamicImage" />
</httpHandlers>
</system.web>
When I run application A, which does not contain the above handler, I
get an error: "File or assembly name DynamicImage, or one of its
dependencies, was not found."
It is as if the handler declaration is machine wide and not limited to
application B. What is going on?
Finally, if I add the DynamicImage.dll to application A's bin
directory the error goes away... Application A does NOT make use of
this dll
Any clues? 5 1577
application a must have a reference to the dll. when the page is compiled
(first hit) the compiler will need the dll to complete the compile.
-- bruce (sqlwork.com)
"Alberto" <al**********@gmail.com> wrote in message
news:70**************************@posting.google.c om...
| I have 2 ASP.NET (C#) applications (A and B) running on the same
| server (IIS6, but the problems is also present in IIS5).
|
| Each application has its own Web.Config file. The only difference
| between the web config files is the following
|
| <system.web>
| <httpHandlers>
| <add verb="GET" path="cachedimageservice.axd"
| type="MsdnMag.CachedImageService,DynamicImage" />
| </httpHandlers>
| </system.web>
|
| When I run application A, which does not contain the above handler, I
| get an error: "File or assembly name DynamicImage, or one of its
| dependencies, was not found."
|
| It is as if the handler declaration is machine wide and not limited to
| application B. What is going on?
|
| Finally, if I add the DynamicImage.dll to application A's bin
| directory the error goes away... Application A does NOT make use of
| this dll
|
| Any clues?
Check to see if Application A's directory is declared,
in IIS, as an IIS Virtual Directory or as an IIS Application.
Also, if you could post what the physical
directory structure looks like, it would help
pin down the problem.
Is it:
/root/A/B
or
/root/B/A
or
/root
/A
/B
i.e., is either B or A a subdirectory of the other one,
or are both subdirectories of the root directory ?
Juan T. Llibre
===========
"Alberto" <al**********@gmail.com> wrote in message
news:70**************************@posting.google.c om... I have 2 ASP.NET (C#) applications (A and B) running on the same server (IIS6, but the problems is also present in IIS5).
Each application has its own Web.Config file. The only difference between the web config files is the following
<system.web> <httpHandlers> <add verb="GET" path="cachedimageservice.axd" type="MsdnMag.CachedImageService,DynamicImage" /> </httpHandlers> </system.web>
When I run application A, which does not contain the above handler, I get an error: "File or assembly name DynamicImage, or one of its dependencies, was not found."
It is as if the handler declaration is machine wide and not limited to application B. What is going on?
Finally, if I add the DynamicImage.dll to application A's bin directory the error goes away... Application A does NOT make use of this dll
Any clues?
"Alberto" <al**********@gmail.com> wrote in message
news:70**************************@posting.google.c om... I have 2 ASP.NET (C#) applications (A and B) running on the same server (IIS6, but the problems is also present in IIS5).
Each application has its own Web.Config file. The only difference between the web config files is the following
<system.web> <httpHandlers> <add verb="GET" path="cachedimageservice.axd" type="MsdnMag.CachedImageService,DynamicImage" /> </httpHandlers> </system.web>
When I run application A, which does not contain the above handler, I get an error: "File or assembly name DynamicImage, or one of its dependencies, was not found."
It is as if the handler declaration is machine wide and not limited to application B. What is going on?
Finally, if I add the DynamicImage.dll to application A's bin directory the error goes away... Application A does NOT make use of this dll
Any clues?
"Alberto" <al**********@gmail.com> wrote in message
news:70**************************@posting.google.c om... I have 2 ASP.NET (C#) applications (A and B) running on the same server (IIS6, but the problems is also present in IIS5).
Each application has its own Web.Config file. The only difference between the web config files is the following
<system.web> <httpHandlers> <add verb="GET" path="cachedimageservice.axd" type="MsdnMag.CachedImageService,DynamicImage" /> </httpHandlers> </system.web>
When I run application A, which does not contain the above handler, I get an error: "File or assembly name DynamicImage, or one of its dependencies, was not found."
It is as if the handler declaration is machine wide and not limited to application B. What is going on?
Finally, if I add the DynamicImage.dll to application A's bin directory the error goes away... Application A does NOT make use of this dll
Any clues?
Is Application A under application B virtually? If so, then this is a known
bug, and you've already found the workaround - put the DLL into the bin
folder of application A. You can then use <remove> in the application A
web.config to get rid of the handler.
John Saunders
I think I have solved the problem...
As I mentioned I had 2 applications A and B. However, application A
was the default application when you reached http://site --> http://site/A. Application B was reachable from a link in application
A or from http://B
Looking at IIS Manager at http://site one sees A and B as a virtual
directory under it... so apparently I was wrong!
In any case, I did the following which solved the problem.
I added a file default.aspx at http://site which contains a simple
<%Response.Redirect("A")%>. Each application then has its own
webconfig file.
Is this the best way to do this?
Thanks
Alberto
"Juan T. Llibre [MVP]" <no***********@nowhere.com> wrote in message news:<eK**************@TK2MSFTNGP14.phx.gbl>... What's happening is that neither of your config files in A *or* B are executing.
If you make A an IIS virtual directory, the web.config in /A will execute.
If you make B an IIS virtual directory, the web.config in /B will execute.
Right now, both A and B are running either off of the web.config in /root, if there is one, or off of machine.config.
Try either...and let us know. Juan T. Llibre =========== "Alberto" <al**********@gmail.com> wrote in message news:70*************************@posting.google.co m... Thanks for your replies, but I think I am still really puzzled. The structure of the dir is
/root /A /B
and neither A not B are virtual directories. So how can this happen? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Daniel Billingsley |
last post by:
Ok, I wanted to ask this separate from nospam's ridiculous thread in hopes
it could get some honest attention.
VB6 had a some simple and fast mechanisms for retrieving values from basic
text...
|
by: moondaddy |
last post by:
I'm running a wpf windows app and want to add the appSettings element to the
config file. when I do, the app wont start up and I get the following
error:
{"The type initializer for...
|
by: Bill E. |
last post by:
In IIS, I have two web applications configured as follows:
Website 1 (fixed IP)
Application A
page1.aspx
web.config
Application B
page1.aspx
web.config
|
by: =?Utf-8?B?TUNN?= |
last post by:
When creating a new VB Web Application Project with VS2008, there are several
settings (compiler settings, option strict, etc) that appear both in the
web.config file and "My Project". I'm...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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...
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |