Solved

error trying to view crystal report over the web

Posted on 2007-03-20
12
3,808 Views
Last Modified: 2012-05-05
I am new to using crystal reports. I am running into the error. It run fine on test machine but not the web server.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
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: Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

Source Error:


Line 24:             Height="1027px" OnInit="CrystalReportViewer1_Init" ReportSourceID="CrystalReportSource1"
Line 25:             Width="901px" />
Line 26:         <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
Line 27:             <Report FileName="rport2.rpt">
Line 28:             </Report>
 

Source File: c:\Inetpub\wwwroot\report.aspx    Line: 26

Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 

Stack Trace:


[FileNotFoundException: Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.]
   CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +0

[TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]
   CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0
   CrystalDecisions.ReportSource.CachedReport.get_ReportDocument() +36
   CrystalDecisions.Web.CrystalReportSource.set_Report(Report value) +255
   ASP.report_aspx.__BuildControlCrystalReportSource1() in c:\Inetpub\wwwroot\report.aspx:26
   ASP.report_aspx.__BuildControlform1() in c:\Inetpub\wwwroot\report.aspx:21
   ASP.report_aspx.__BuildControlTree(report_aspx __ctrl) in c:\Inetpub\wwwroot\report.aspx:1
   ASP.report_aspx.FrameworkInitialize() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_s2pdh6_p.2.cs:0
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +40
   System.Web.UI.Page.ProcessRequest() +86
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.report_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_s2pdh6_p.2.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

 
0
Comment
Question by:riley00
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
12 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 18756744
What did you install on the web server?

What version of Crystal?  Edition?

mlmcc
0
 

Author Comment

by:riley00
ID: 18758564
I installed XI
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 18759216
Is the error copied?

In your code is the report name spelled wrong?

mlmcc
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 100

Expert Comment

by:mlmcc
ID: 18759223
Can you post the asp that calls the report?

mlmcc
0
 

Author Comment

by:riley00
ID: 18763190
Here is the asp that calls the report?

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="report.aspx.cs" Inherits="report" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
        rel="stylesheet" type="text/css" />
    <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
        rel="stylesheet" type="text/css" />
    <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
        rel="stylesheet" type="text/css" />
    <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
        rel="stylesheet" type="text/css" />
    <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
        rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True"
            Height="1027px" OnInit="CrystalReportViewer1_Init" ReportSourceID="facereport"
            Width="901px" />
        <CR:CrystalReportSource ID="facereport" runat="server">
            <Report FileName="rport2.rpt">
            </Report>
        </CR:CrystalReportSource>
        &nbsp; &nbsp;&nbsp;</div>
    </form>
</body>
</html>
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 18763913
Is the report really called rport2.rpt?

You may need to pass the full path with the report.

mlmcc
0
 

Author Comment

by:riley00
ID: 18763983
yes, that is the name. I will go and change the path. thanks. I will let you know.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 18764767
Just making sure since it is a file not found error that it wasn't typo that you were overlooking.

mlmcc
0
 

Author Comment

by:riley00
ID: 18764816
here is the new erro that I am getting

Server Error in '/face2face' Application.
--------------------------------------------------------------------------------

Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
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: Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

Source Error:


Line 26:             Height="1027px" OnInit="CrystalReportViewer1_Init" ReportSourceID="facereport"
Line 27:             Width="901px" />
Line 28:         <CR:CrystalReportSource ID="facereport" runat="server">
Line 29:             <Report FileName="inetpub\wwwroot\face2face\rport2.rpt">
Line 30:             </Report>
 

Source File: c:\Inetpub\wwwroot\face2face\report.aspx    Line: 28

Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 

Stack Trace:


[FileNotFoundException: Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.]
   CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +0

[TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]
   CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0
   CrystalDecisions.ReportSource.CachedReport.get_ReportDocument() +36
   CrystalDecisions.Web.CrystalReportSource.set_Report(Report value) +255
   ASP.report_aspx.__BuildControlfacereport() in c:\Inetpub\wwwroot\face2face\report.aspx:28
   ASP.report_aspx.__BuildControlform1() in c:\Inetpub\wwwroot\face2face\report.aspx:23
   ASP.report_aspx.__BuildControlTree(report_aspx __ctrl) in c:\Inetpub\wwwroot\face2face\report.aspx:1
   ASP.report_aspx.FrameworkInitialize() in c:\Inetpub\wwwroot\face2face\report.aspx.cs:912307
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +40
   System.Web.UI.Page.ProcessRequest() +86
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.report_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\face2face\3863e7fb\66437efd\App_Web_0gfq74wt.2.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

 
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 18765821
Looks like you are missing some of the Crystal dlls but you say rystal is instlled on the server.  Did you give permissions to the Crystal to ALL?

mlmcc
0
 

Author Comment

by:riley00
ID: 18766780
I had to add VS 2005 to my web server for it to have the correct crystal engine. thanks for all you help
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 18767874
Good catch.  

Glad i could help

mlmcc
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 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