cancel
Showing results for 
Search instead for 
Did you mean: 

CrystalReport Error: CrystalImageHandler does not exist

former_member782567
Discoverer
0 Kudos

Hello,

I migrated an Asp, netapplication with Visual studio 2019 and the framework .Net 4.8 , the application used Crystal Report as a reporting tool.

Indeed, when viewing a report with CrystalReportViewer, an error is generated and the report is not displayed properly, bellow the error:

"The file '/CrystalImageHandler.aspx' does not exist."

Do you have any idea on the source of this error?

Thank you for your reply

former_member763929
Participant
0 Kudos

Thank you for visiting SAP Community to get answers to your questions. Since this is your first question, I recommend that you familiarize yourself with Community Q&A , as the overview provides tips for preparing questions that draw responses from our members.

Should you wish, you can revise your question by selecting Actions, then Edit.

By adding a picture to your Profile you encourage readers to respond.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member782567
Discoverer
0 Kudos

The error is resolved, here is how it was done for those who may encounter the same problem

Go to the location C:\Program Files (x86)\Business Objects\Common\3.5 and opy the folder crystalreportviewers115 to the root directory of the project.

And then update the web.config file like tis way:

<configuration>
	<configSections>
		<sectionGroup name="businessObjects">
			<sectionGroup name="crystalReports">
				<section name="rptBuildProvider" type="CrystalDecisions.Shared.RptBuildProviderHandler, CrystalDecisions.Shared, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, Custom=null" />
				<section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler" />
			</sectionGroup>
		</sectionGroup>
	</configSections>

	<businessObjects>
		<crystalReports>
			<rptBuildProvider>
				<add embedRptInResource="true" />
			</rptBuildProvider>
			<crystalReportViewer>
				<add key="ResourceUri" value="/gspm/crystalreportviewers115" />
			</crystalReportViewer>
		</crystalReports>
	</businessObjects>
	
	<system.webServer>
		<validation validateIntegratedModeConfiguration="false"/>
		<handlers>
			<add name="CrystalImageHandler.aspx" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
		</handlers>
	</system.webServer>
	
</configuration>

Wishing good work