Skip to Content
avatar image
Former Member

Getting an error after upgrading version of CR for VS in QA environment

I have upgraded our ASP.Net application from 13.0.19 to 13.0.22 and I now get an error in the QA environment. No errors occur on the development workstation or development servers. The error causes the following:

Exception:
Source: CrystalDecisions.CrystalReports.Engine Message: Load report failed. InnerException: Access is denied. BaseException: Access is denied. HResult: -2146232832

Stack:
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() at
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) at
CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) at
CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport() at
CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type) at
CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(Object dataSet) at
NITSSWeb.ReportView.Page_Init(Object sender, EventArgs e)

The Web.Config file adds the following assemblies:

<system.web>

<compilationdebug="true"strict="false"explicit="true"targetFramework="4.6.1">

<assemblies>

<addassembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.3500.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

<addassembly="CrystalDecisions.ReportSource, Version=13.0.3500.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

<addassembly="CrystalDecisions.Shared, Version=13.0.3500.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

<addassembly="CrystalDecisions.Web, Version=13.0.3500.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

<addassembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.3500.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

and

<system.webServer>

<validationvalidateIntegratedModeConfiguration="false"/>

<handlers>

<addname="CrystalImageHandler.aspx_GET"verb="GET"path="CrystalImageHandler.aspx"type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.3500.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"preCondition="integratedMode"/>

The CR references are included in the bin directory and referenced as shown in the attachment.

cr-reference.png (14.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 26 at 01:45 PM

    Hi Paul,

    Did you read all of the info on the download WIKI page for SP 21 upgrade?

    https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

    Did you install the MSI by right clicking on it and select Run As Administrator? It's a must, even if you are the admin you still need to do this.

    The MSI installs the CR assemblies into the GAC which is where your references should be using as well, don't browse to the files on your DEV PC, always use the .NET Tab and what is in the GAC which is here: C:\Windows\assembly, now the app will always use it from that location on the App Server with full permissions.

    Check your app server for possibly loading a web.config file from some other location, it may still be trying to find to old versions.

    Search for them or use ProcessMonitor or Fiddler to see where it's loading from.

    Don

    Add comment
    10|10000 characters needed characters exceeded