seperate nested ASP.NET application in IIS 6.0

From: Michael Porcelli (mporch_at_hotmail.com)
Date: 03/25/04


Date: Wed, 24 Mar 2004 16:39:52 -0800

Greetings,

I am encountering some difficulties setting up a separate nested ASP.NET
application. The problem seems to be caused by the .NET runtime attempting
to load an assembly referenced by the root application from locations
relative to the sub application. My intention is for the nested application
to be totally separate and isolated from the root application. I have no
need for the assembly referenced in the root application to be used by the
nested application and I do not want the .NET runtime to attempt to load the
assembly referenced by the root application when I am attempting to use the
nested application. The sub application contains no references to the type
being searched for by the .NET run time. Here is an illustration of this
scenario:

***
* Folder structure
*
/RootApp <-- IIS web server root
 |
  - /bin
 | |
 | - RootApp.dll
 | |
 | - CustomHandler.dll <-- contains CustomHandler.Dispatcher
 |
  - /SubApp <-- IIS AppRoot
 | |
 | - /bin
 | |
 | - SubApp.dll
 | |
 | - default.aspx
 | |
 | - global.asax
 | |
 | - web.config
 |
  - default.aspx
 |
  - global.asax
 |
  - web.config

***
* /RootApp/web.config
*
...
<httpHandlers>
    <add verb="*" path="*.custom" type="CustomHandler.Dispatcher,
CustomHandler" />
</httpHandlers>
...

***
* ASP.NET error message attempting http:// ... /SubApp/default.aspx
*
Server Error in '/SubApp' 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 modify your configuration file appropriately.

Parser Error Message: File or assembly name CustomHandleror one of its
dependencies, was not found.

Source Error:

Line 105: <httpHandlers>
Line 106: <add verb="*" path="*.custom" type="CustomHandler.Dispatcher,
CustomHandler" />
Line 107: </httpHandlers>

Source File: C:\web\RootApp\web.config Line: 106

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'CustomHandler' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = CustomHandler
 (Partial)
LOG: Appbase = file:///C:/web/RootApp/SubApp
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: CustomHandleror
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/SubApp/9df12f55/f32552ad/CustomHandler.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/SubApp/9df12f55/f32552ad/CustomHandler/CustomHandler.DLL.
LOG: Attempting download of new URL
file:///C:/web/RootApp/SubApp/bin/CustomHandler.DLL.
LOG: Attempting download of new URL
file:///C:/web/RootApp/SubApp/bin/CustomHandler/CustomHandler.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/SubApp/9df12f55/f32552ad/CustomHandler.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/SubApp/9df12f55/f32552ad/CustomHandler/CustomHandler.EXE.
LOG: Attempting download of new URL
file:///C:/web/RootApp/SubApp/bin/CustomHandler.EXE.
LOG: Attempting download of new URL
file:///C:/web/RootApp/SubApp/bin/CustomHandler/CustomHandler.EXE.

***

It is my understanding that if a new web application is configured with IIS
in the SubApp directory, it should execute separately from the containing
root app. It seems to be an error that the .NET runtime is attempting to
load ans assembly that is not even referenced by the application. I feel
like I am missing something. I appreciate any insight on this.

Thanks,
-m.



Relevant Pages

  • Re: seperate nested ASP.NET application in IIS 6.0
    ... Put a dummy copy of "CustomHandler" into ... > to be totally separate and isolated from the root application. ... > LOG: Post-policy reference: CustomHandleror ... Attempting download of new URL ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Version Conflict! :(
    ... There are numerous places you can have reference: ... Assembly Load Trace: The following information can be helpful to ... LOG: Using application configuration file: ... Attempting download of new URL ...
    (microsoft.public.dotnet.framework)
  • Re: ssk.exe surfsidekick
    ... you did not have load of 'virii' or 'viri' as there is no such terminolgy. ... It is HIGHLY suggested that you get the administrator password so you can logon in Safe Mode ... You can choose to go to each menu item and just download the needed files or you can ... needed for each scanner you want to use, you should reboot the PC into Safe Mode [F8 key ...
    (microsoft.public.windowsxp.general)
  • Re: Own assembly fails to load when vs2008 is not installed on target machine
    ... It can start the capture of a log of the DLLs ... c++ and try to load it. ... No application configuration file found. ... Attempting download of new URL ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: loading html pages in frames
    ... http://server/temp/data/report.html it still wants to download the file. ... >> default web site.(ie. To the default web a virtual directory call temp ... >> On the server when we click on the link we get a momentary downloading ... >> to load it but I get the same behaviour as trying to load from the ...
    (microsoft.public.inetserver.iis)