Solved

error trying to view crystal report over the web

Posted on 2007-03-20
12
3,800 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
  • 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

810 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