Solved

Crystal Reports and ASP.NET configuration issue

Posted on 2004-10-29
22,908 Views
Last Modified: 2011-08-18
I have developed an ASP.NET app that works just fine on MY developement box, but now am trying to get it up on the custmers server.  The .NET Framewrok 1.1 is installed on the customer web server.  I have addedd the Crystal Reports related DLLs that are in MY /bin folder to the site on the custeomer server, and now get tis error message:

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 CrystalDecisions.CrystalReports.Engine, or one of its dependencies, was not found.

Source Error:


Line 24:     <compilation defaultLanguage="vb" debug="true">
Line 25:             <assemblies>
Line 26:                   <add assembly="CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
Line 27:                   <add assembly="CrystalDecisions.ReportSource, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
Line 28:                   <add assembly="CrystalDecisions.Shared, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
 

Source File: C:\Inetpub\wwwroot\IDEALSolutionWeb\web.config    Line: 26

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


=== Pre-bind state information ===
LOG: DisplayName = CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
 (Fully-specified)
LOG: Appbase = file:///C:/Inetpub/wwwroot/IDEALSolutionWeb
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/72a04f5a/5a27de96/CrystalDecisions.CrystalReports.Engine.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/72a04f5a/5a27de96/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/IDEALSolutionWeb/bin/CrystalDecisions.CrystalReports.Engine.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/IDEALSolutionWeb/bin/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/72a04f5a/5a27de96/CrystalDecisions.CrystalReports.Engine.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/72a04f5a/5a27de96/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.EXE.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/IDEALSolutionWeb/bin/CrystalDecisions.CrystalReports.Engine.EXE.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/IDEALSolutionWeb/bin/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.EXE.

 


--------------------------------------------------------------------------------
 

Line 26:                   <add assembly="CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
is HIGHLIGHTED.

clearly this is a configuarion issue, so WHAT AM I MISSING?

AW

0
Question by:Arthur_Wood
    15 Comments
     
    LVL 17

    Expert Comment

    by:AerosSaga
    do you have copy local set to true under the references you added?
    0
     
    LVL 17

    Expert Comment

    by:AerosSaga
    0
     
    LVL 44

    Author Comment

    by:Arthur_Wood
    AerosSaga>> Yes, Local copy is set to True, and the relevant DLLS:

    (this is from the web.config file)

    <compilation defaultLanguage="vb" debug="true">
                <assemblies>
                      <add assembly="CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                      <add assembly="CrystalDecisions.ReportSource, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                      <add assembly="CrystalDecisions.Shared, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                      <add assembly="CrystalDecisions.Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                </assemblies>
          </compilation>

    to wit:

    CrystalDecisions.CrystalReports.Engine.DLL
    CrystalDecisions.ReportSource.dll
    CrystalDecisions.Shared.dll
    CrystalDecisions.Web.dll

    are all present in the /BIN folder of the web site.

    AW
    0
     
    LVL 17

    Expert Comment

    by:AerosSaga
    please ensure you completed your deployment this way:

    http://dotnetjunkies.com/WebLog/richard.dudley/archive/2004/05/25/14449.aspx
    0
     
    LVL 44

    Author Comment

    by:Arthur_Wood
    with regard to the BusinessObject URL, notice that ALL of the config file entries refer to the 9.1.5000.0 version.  That does NOT appear to be relevant.

    And the App was started and complete built with VS 2003.

    AW
    0
     
    LVL 17

    Accepted Solution

    by:
    0
     
    LVL 44

    Author Comment

    by:Arthur_Wood
    that last URL is the same as the dotnetjunkies item.  and from their page:

    An alternative solution to try is directly copying the following DLLs to your application's BIN folder on the server:

    crystaldecisions.crystalreports.engine.dll.
    crystaldecisions.reportsource.dll
    crystaldecisions.shared.dll
    crystaldecisions.web.dll

    I have not tried this, but the idea was posted in a forum message, and the author reported success.  If you do copy the DLLs to the application folder, I think you'll have to copy them for all applications on the server.  A deployment package installs the DLLs in the Global Assembly Cache, where they are available for all applications running on the server.


    The app is the only one that will EVER be on the Server, so the need to install in the GAC is non-existant, at least for the foreseeable future.

    and as I said, the four relevant DLLS are presnt in the /BIN folder.

    AW

    0
     
    LVL 28

    Assisted Solution

    by:mmarinov
    Hi Arthur_Wood,

    the received message is because some part of your application is trying to find the dll that contains CrystalDecisions.CrystalReports.Engine in the GAC
    try to copy these files into the GAC and see what will be the result

    Regards!
    B..M
    0
     
    LVL 44

    Author Comment

    by:Arthur_Wood
    why is it not looking in the local /bin folder first?

    I have a more general question.  I have taken the Crystal Decision white paper on Crystal Reports and .NET, and followed the steps for 'deploying an ASP.NET Web Application".  I the  built the WebSetup project - now what?  What do I actually send to the Customer, to be 'installed' on the Customer's web server?

    I understand the the WebSeup deployment will the add the necessary files to the GAC.

    what do I do next?

    AW
    0
     
    LVL 28

    Expert Comment

    by:mmarinov
    try this lines

    <compilation defaultLanguage="vb" debug="true">
    <assemblies>
    <add assembly="CrystalDecisions.CrystalReports.Engine"/>
    <add assembly="CrystalDecisions.ReportSource"/>
    <add assembly="CrystalDecisions.Shared"/>

    about the installation - see this :
    http://www.15seconds.com/issue/030806.htm

    Regards
    B..M
    0
     
    LVL 44

    Author Comment

    by:Arthur_Wood
    I found the msi and other pieces, and have zipped them up and sent them to the customer.  We will take a shot at this on Monday.

    AW
    0
     
    LVL 28

    Expert Comment

    by:mmarinov
    Good luck
    Regards
    B..M
    0
     
    LVL 33

    Expert Comment

    by:Mike Eghtebas
    0
     
    LVL 44

    Author Comment

    by:Arthur_Wood
    Mike, I saw that.  ANd posted my congrats to Alan on the first page.

    mmarinov and AerosSaga>> the problem may be the following:

    The customer is a VERY Secure US ARMY site (at Ft Detrick, MD - yes, That Ft Detrick), and it seems that even though I sent them a ZIPPED file with all of the DLLs to be copied to the /BIN directory, the admin informed me that the only files he finds in the /BIN directory (after unzipping) are the ones WITHOUT the .dll extension.  My guess at the moment is that they have some VERY powerful sniffer software that looked inside the .ZIP file, saw that there were .DLL files, which were then percieved as being potentiall mischievous, and thus deleted.

    I will try renaming the files as .dl_, then zipping those files, renaming the .ZIP file as .zi_ and sending that to them on Monday.  Then he should be able to re-name the .ZI_ (.ZIP is blocked by their email server), unzip the .dl_ files to the /Bin directory, then rename each file from whatever.dl_ to whatever.dll....hopefully that will resolve this problem.

    Let you know on Monday.

    AW
    0
     
    LVL 44

    Author Comment

    by:Arthur_Wood
    it appears that the security on the box that was blocking the adding to the DLLs from the ZIP file that had sent was the issue, as we have now gotten past the Config error.  Thanks to all involved.  I will be awarding points shortly.

    AW
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    877 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now