Solved

error trying to view crystal report over the web

Posted on 2007-03-20
12
3,805 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

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.

Question has a verified solution.

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

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 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