Migration to ASP.NET 2.0 breaks Crystal Reports

Crystal Reports

If you have an asp.net application using Crystal Reports and are migrating from VS .NET 2003 and VS 2005, or deploying your asp.net website from your development machine to the web server, a common problem that may arise is the following:

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.

To solve this problem you must copy the following file on the server, and run the installer.

C:Program FilesMicrosoft Visual Studio 8SDKv2.0BootStrapperPackagesCrystalReportsCRRedist2005_x86.msi

This will put the missing packages on your web server thus be able to run crystal reports.

Reference: http://forums.asp.net/1218067/ShowPost.aspx

Categories

6 Responses

  1. Hi, I am using ASP.Net 2.0 with CR 10.2 that ships with VS2005….i ran the msi on the server, the report is also being shown but there is one problem……there is a button clicking which brings up the report…so when i click the button, it is prompting to connect to the web server like when we try to access a shared folder through Run….please help……

    my code —-
    mports CRD = CrystalDecisions.CrystalReports.Engine
    Imports System.Data
    Imports CrystalDecisions.Shared
    In Page Load—————————
    dt = Getdata.ClsRtnDataset(“select * from employee_details”).Tables(0)
    Dim myConnectionInfo As ConnectionInfo
    Dim myReportDocument As CRD.ReportDocument
    Dim crDatabase As CRD.Database
    Dim crTableLogOnInfo As TableLogOnInfo
    crTableLogOnInfo = New TableLogOnInfo
    myReportDocument = New CRD.ReportDocument()
    myConnectionInfo = New ConnectionInfo()
    myConnectionInfo.ServerName = “TESTINTRA02”
    myConnectionInfo.DatabaseName = “boc”
    myConnectionInfo.UserID = “sa”
    myConnectionInfo.Password = “P@ssw0rd”
    myReportDocument.Load(Server.MapPath(“CR1.rpt”))
    crDatabase = myReportDocument.Database
    For Each crTable As CRD.Table In crDatabase.Tables
    crTableLogOnInfo = crTable.LogOnInfo
    crTableLogOnInfo.ConnectionInfo = myConnectionInfo
    crTable.ApplyLogOnInfo(crTableLogOnInfo)
    Next
    CRViewer.ReportSource = myReportDocument
    ‘CRViewer.DataBind()

Leave a Reply

Your email address will not be published. Required fields are marked *