[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.8

ASP.NET:  Assembly ADODB not loaded

Asked by bryker in .NET, Microsoft Programming

Tags: assembly, file, its, load

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.FileNotFoundException: 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=b03f5f7f11d50a3a  (Fully-
   specified) LOG: Appbase = file:///C:/Inetpub/wwwroot/MyApp/RMXFetch 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\Framework\v1.0.3705\aspnet.config). LOG: Using machine configuration file from
   C:\WINNT\Microsoft.NET\Framework\v1.0.3705\config\machine.config. LOG: Post-policy reference: ADODB, Version=7.0.3300.0, Culture=neutral,
   PublicKeyToken=b03f5f7f11d50a3a LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
   Files/myapp_rmxfetch/0b4e8e6f/bc2f8f54/ADODB.DLL. LOG: Attempting download of new URL  
   file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/myapp_rmxfetch/0b4e8e6f/bc2f8f54/ADODB/ADODB.DLL. LOG:
   Attempting download of new URL file:///C:/Inetpub/wwwroot/LocationXpert/RMXFetch/bin/ADODB.DLL. LOG: Attempting download of new URL
   file:///C:/Inetpub/wwwroot/MyApp/RMXFetch/bin/ADODB/ADODB.DLL. LOG: Attempting download of new URL
   file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/locationxpert_rmxfetch/0b4e8e6f/bc2f8f54/ADODB.EXE. LOG: Attempting
   download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
   Files/myapp_rmxfetch/0b4e8e6f/bc2f8f54/ADODB/ADODB.EXE. LOG: Attempting download of new URL
   file:///C:/Inetpub/wwwroot/MyApp/RMXFetch/bin/ADODB.EXE. LOG: Attempting download of new URL
   file:///C:/Inetpub/wwwroot/MyApp/RMXFetch/bin/ADODB/ADODB.EXE.

   Stack Trace:

    [FileNotFoundException: File or assembly name ADODB, or one of its dependencies, was not found.]    RMXFetch.QueryReport.RefreshReport() +0    
   RMXFetch.QueryReport.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\RMXFetch\QueryReport.aspx.vb:234    
   System.Web.UI.Control.OnLoad(EventArgs e) +67    System.Web.UI.Control.LoadRecursive() +29    System.Web.UI.Page.ProcessRequestMain() +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-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web" publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect oldVersion="1.0.0.0-1.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.RegularExpressions" publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect oldVersion="1.0.0.0-1.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>
</configuration>

[+][-]06/05/03 12:15 PM, ID: 8660099Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: .NET, Microsoft Programming
Tags: assembly, file, its, load
Sign Up Now!
Solution Provided By: naveenkohli
Participating Experts: 1
Solution Grade: A
 
[+][-]06/05/03 12:22 PM, ID: 8660147Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/05/03 12:27 PM, ID: 8660191Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92