Issue with assembly added in web.config between 2.0 and 1.1 app

G

Guest

I have a server where the main web application (root) is now migrated to 2.0.

It's web.config has a line where it adds the system.data.oracleclient in the
configuration and assembiles section.

There is a sub web application, configured as its own application that is
still under 1.1.

The 1.1 app won't run because it gets an error shown below. Apparently it
is picking up the settings from the root app's web.config (.NET 2.0) and
can't find the 2.0 system.data.oracleclient. The 2.0 app doesn't have any
issue.

How do i correct this so both will work?

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

Source Error:


Line 488: <add assembly="System.DirectoryServices, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 489: <add assembly="System.Configuration.Install, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 490: <add assembly="System.Data.OracleClient, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
Line 491: <!-- CUSTOM ERROR MESSAGES
Line 492: Set customErrors mode="Off" or "RemoteOnly" to enable
custom error messages, "Off" to disable.


Source File: c:\inetpub\wwwroot\web.config Line: 490

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


=== Pre-bind state information ===
LOG: DisplayName = System.Data.OracleClient, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089
(Fully-specified)
LOG: Appbase = file:///c:/inetpub/wwwroot/WU
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(c:\winnt\microsoft.net\framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: System.Data.OracleClient, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089
LOG: Attempting download of new URL
file:///c:/winnt/microsoft.net/framework/v1.1.4322/Temporary ASP.NET
Files/wu/e2c6cfa7/13521107/System.Data.OracleClient.DLL.
LOG: Attempting download of new URL
file:///c:/winnt/microsoft.net/framework/v1.1.4322/Temporary ASP.NET
Files/wu/e2c6cfa7/13521107/System.Data.OracleClient/System.Data.OracleClient.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/WU/bin/System.Data.OracleClient.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/WU/bin/System.Data.OracleClient/System.Data.OracleClient.DLL.
LOG: Attempting download of new URL
file:///c:/winnt/microsoft.net/framework/v1.1.4322/Temporary ASP.NET
Files/wu/e2c6cfa7/13521107/System.Data.OracleClient.EXE.
LOG: Attempting download of new URL
file:///c:/winnt/microsoft.net/framework/v1.1.4322/Temporary ASP.NET
Files/wu/e2c6cfa7/13521107/System.Data.OracleClient/System.Data.OracleClient.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/WU/bin/System.Data.OracleClient.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/WU/bin/System.Data.OracleClient/System.Data.OracleClient.EXE.
 
S

Steven Cheng[MSFT]

Hi Robert,

Thanks for your posting. Regarding on the configuration problem, it is
caused by the fixed runtime configuration collection behavior of ASP.NET.
ASP.NET will always parse and collect configuration from Up to down
(machine--> site--->parent web---> web app...) So I'm afraid we can not
prevent the configuration inheritance of our concrete web application when
there exists a different version 's web.config file at super level....
As for your scenario, we'll recommend that you upgrate the 1.1 web
application to 2.0 and for separate asp.net 1.1 application, we'd better
host them in a separate IIS site which is configured with ASP.NET 1.1

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)




--------------------
| Thread-Topic: Issue with assembly added in web.config between 2.0 and 1.1
app
| thread-index: AcXrEUNK0vZzfmPvT/+nCRdxNsl5Dg==
| X-WBNR-Posting-Host: 67.180.214.235
| From: =?Utf-8?B?Um9iZXJ0?= <[email protected]>
| Subject: Issue with assembly added in web.config between 2.0 and 1.1 app
| Date: Wed, 16 Nov 2005 16:53:02 -0800
| Lines: 81
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:358790
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I have a server where the main web application (root) is now migrated to
2.0.
|
| It's web.config has a line where it adds the system.data.oracleclient in
the
| configuration and assembiles section.
|
| There is a sub web application, configured as its own application that is
| still under 1.1.
|
| The 1.1 app won't run because it gets an error shown below. Apparently
it
| is picking up the settings from the root app's web.config (.NET 2.0) and
| can't find the 2.0 system.data.oracleclient. The 2.0 app doesn't have
any
| issue.
|
| How do i correct this so both will work?
|
| Parser Error Message: File or assembly name System.Data.OracleClient, or
one
| of its dependencies, was not found.
|
| Source Error:
|
|
| Line 488: <add assembly="System.DirectoryServices, Version=2.0.0.0,
| Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
| Line 489: <add assembly="System.Configuration.Install,
Version=2.0.0.0,
| Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
| Line 490: <add assembly="System.Data.OracleClient, Version=2.0.0.0,
| Culture=neutral,
PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
| Line 491: <!-- CUSTOM ERROR MESSAGES
| Line 492: Set customErrors mode="Off" or "RemoteOnly" to enable
| custom error messages, "Off" to disable.
|
|
| Source File: c:\inetpub\wwwroot\web.config Line: 490
|
| Assembly Load Trace: The following information can be helpful to
determine
| why the assembly 'System.Data.OracleClient' could not be loaded.
|
|
| === Pre-bind state information ===
| LOG: DisplayName = System.Data.OracleClient, Version=2.0.0.0,
| Culture=neutral, PublicKeyToken=b77a5c561934e089
| (Fully-specified)
| LOG: Appbase = file:///c:/inetpub/wwwroot/WU
| LOG: Initial PrivatePath = bin
| Calling assembly : (Unknown).
| ===
|
| LOG: Publisher policy file is not found.
| LOG: No redirect found in host configuration file
| (c:\winnt\microsoft.net\framework\v1.1.4322\aspnet.config).
| LOG: Using machine configuration file from
| C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
| LOG: Post-policy reference: System.Data.OracleClient, Version=2.0.0.0,
| Culture=neutral, PublicKeyToken=b77a5c561934e089
| LOG: Attempting download of new URL
| file:///c:/winnt/microsoft.net/framework/v1.1.4322/Temporary ASP.NET
| Files/wu/e2c6cfa7/13521107/System.Data.OracleClient.DLL.
| LOG: Attempting download of new URL
| file:///c:/winnt/microsoft.net/framework/v1.1.4322/Temporary ASP.NET
|
Files/wu/e2c6cfa7/13521107/System.Data.OracleClient/System.Data.OracleClient
..DLL.
| LOG: Attempting download of new URL
| file:///c:/inetpub/wwwroot/WU/bin/System.Data.OracleClient.DLL.
| LOG: Attempting download of new URL
|
file:///c:/inetpub/wwwroot/WU/bin/System.Data.OracleClient/System.Data.Oracl
eClient.DLL.
| LOG: Attempting download of new URL
| file:///c:/winnt/microsoft.net/framework/v1.1.4322/Temporary ASP.NET
| Files/wu/e2c6cfa7/13521107/System.Data.OracleClient.EXE.
| LOG: Attempting download of new URL
| file:///c:/winnt/microsoft.net/framework/v1.1.4322/Temporary ASP.NET
|
Files/wu/e2c6cfa7/13521107/System.Data.OracleClient/System.Data.OracleClient
..EXE.
| LOG: Attempting download of new URL
| file:///c:/inetpub/wwwroot/WU/bin/System.Data.OracleClient.EXE.
| LOG: Attempting download of new URL
|
file:///c:/inetpub/wwwroot/WU/bin/System.Data.OracleClient/System.Data.Oracl
eClient.EXE.
|
|
|
|
----------------------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top