Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

error trying to view crystal report over the web

Posted on 2007-03-20
12
Medium Priority
?
3,822 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 101

Accepted Solution

by:
mlmcc earned 1500 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 101

Expert Comment

by:mlmcc
ID: 18759216
Is the error copied?

In your code is the report name spelled wrong?

mlmcc
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 101

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 101

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 101

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 101

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 101

Expert Comment

by:mlmcc
ID: 18767874
Good catch.  

Glad i could help

mlmcc
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

618 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