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 Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports\CRRedist2005_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

Advertisements

6 Responses to “Migration to ASP.NET 2.0 breaks Crystal Reports”

  1. phúc Says:

    vb.net 2005

  2. Natasha Says:

    Thanks very much for this post – it solved the described problem for me as well.

  3. kamalika Says:

    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()

  4. Prasad Pawar Says:

    Thank u very much. This solution is really work for me.

  5. ich Says:

    thanks. it solved my problem.

  6. bigman Says:

    nice tuto in here , good introduction , look at mine in my website righ here http://help.uk.cm.

    hear from you soon thanks


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: