I am trying to move an app that's working perfectly from my PC (the development machine) to a test web server (Win2K Server, .NET Framework, IIS 5.0).
I'm getting the following error when I try to invoke an ASP.NET page in the app. Forgive me for this verbosity, but I'm not sure how much of this is important for you to know:
==========================
==========
==========
==========
==========
=====
Server Error in '/MyApp/RMXFetch' Application.
File or assembly name ADODB, or one of its dependencies, was not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundExce
ption: File or assembly name ADODB, or one of its dependencies, was not found.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location
of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'ADODB' could not be loaded.
=== Pre-bind state information === LOG: DisplayName = ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d
50a3a (Fully-
specified) LOG: Appbase = file:///C:/Inetpub/wwwroot
/MyApp/RMX
Fetch LOG: Initial PrivatePath = bin Calling assembly : RMXFetch,
Version=1.0.1250.34476, Culture=neutral, PublicKeyToken=null. === LOG: Publisher policy file is not found. LOG: No redirect found in host
configuration file (C:\WINNT\Microsoft.NET\Fr
amework\v1
.0.3705\as
pnet.confi
g). LOG: Using machine configuration file from
C:\WINNT\Microsoft.NET\Fra
mework\v1.
0.3705\con
fig\machin
e.config. LOG: Post-policy reference: ADODB, Version=7.0.3300.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d
50a3a LOG: Attempting download of new URL file:///C:/WINNT/Microsoft
.NET/Frame
work/v1.0.
3705/Tempo
rary ASP.NET
Files/myapp_rmxfetch/0b4e8
e6f/bc2f8f
54/ADODB.D
LL. LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft
.NET/Frame
work/v1.0.
3705/Tempo
rary ASP.NET Files/myapp_rmxfetch/0b4e8
e6f/bc2f8f
54/ADODB/A
DODB.DLL. LOG:
Attempting download of new URL file:///C:/Inetpub/wwwroot
/LocationX
pert/RMXFe
tch/bin/AD
ODB.DLL. LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot
/MyApp/RMX
Fetch/bin/
ADODB/ADOD
B.DLL. LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft
.NET/Frame
work/v1.0.
3705/Tempo
rary ASP.NET Files/locationxpert_rmxfet
ch/0b4e8e6
f/bc2f8f54
/ADODB.EXE
. LOG: Attempting
download of new URL file:///C:/WINNT/Microsoft
.NET/Frame
work/v1.0.
3705/Tempo
rary ASP.NET
Files/myapp_rmxfetch/0b4e8
e6f/bc2f8f
54/ADODB/A
DODB.EXE. LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot
/MyApp/RMX
Fetch/bin/
ADODB.EXE.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot
/MyApp/RMX
Fetch/bin/
ADODB/ADOD
B.EXE.
Stack Trace:
[FileNotFoundException: File or assembly name ADODB, or one of its dependencies, was not found.] RMXFetch.QueryReport.Refre
shReport()
+0
RMXFetch.QueryReport.Page_
Load(Objec
t sender, EventArgs e) in C:\Inetpub\wwwroot\RMXFetc
h\QueryRep
ort.aspx.v
b:234
System.Web.UI.Control.OnLo
ad(EventAr
gs e) +67 System.Web.UI.Control.Load
Recursive(
) +29 System.Web.UI.Page.Process
RequestMai
n() +724
Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET Version:1.0.3705.0
==========================
==========
==========
==========
==========
=====
Now, MDAC is definitely installed properly on this target machine. There's even an app already using ADO just fine.
So, I know it's there...how come ASP.NET doesn't know about it, or has trouble loading it?
By the way, this target PC's aspnet.config file is EXACTLY the same as on my development machine. I've altered neither file.
Help!...and thanks.
P.S. I'll throw in the contents of the aspnet.config file here:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microso
ft-com:asm
.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web" publicKeyToken="b03f5f7f11
d50a3a" culture=""/>
<bindingRedirect oldVersion="1.0.0.0-1.6553
5.65535.65
535" newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.RegularEx
pressions"
publicKeyToken="b03f5f7f11
d50a3a" culture=""/>
<bindingRedirect oldVersion="1.0.0.0-1.6553
5.65535.65
535" newVersion="1.0.3300.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>