Solved

error trying to view crystal report over the web

Posted on 2007-03-20
12
3,795 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
 
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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. …
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

706 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

12 Experts available now in Live!

Get 1:1 Help Now