We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Color_Change Error

Thread ID:

Created:

Updated:

Platform:

Replies:

141844 Jan 7,2019 09:05 PM UTC Feb 21,2019 02:06 PM UTC ASP.NET MVC 7
loading
Tags: ReportViewer
Lance Harwell
Asked On January 7, 2019 09:05 PM UTC

I'm receiving the error below while loading my report into the viewer. Any insights?

_reportLoaded:Sf_Exception - System.Exception: An error occurred during local report processing. There is an error on line 0 of custom code: BC30451: 'Color_Change' is not declared. It may be inaccessible due to its protection level. at Syncfusion.RDL.Data.ReportModel.ProcessReport() at Syncfusion.EJ.ReportViewer.Internal.ReportViewerLayoutModel.LoadReport() at Syncfusion.EJ.ReportViewer.Internal.ReportViewerInternalHelper.ReportLoad() at Syncfusion.EJ.ReportViewer.Internal.ReportViewerInternalHelper.ProcessReport()

Mageshyadav M [Syncfusion]
Replied On January 8, 2019 05:31 AM UTC

Hi Lance, 

We are unable to reproduce the mentioned exception at our end. So can you please share the issue reproducible RDL file, index.cshtml client file and ReportAPIController class file to validate the mentioned problem at our end. Also share us the release version you are using. 

Regards, 
Mageshyadav.M 


Lance Harwell
Replied On January 8, 2019 02:13 PM UTC

I am attaching the .cshtml and the controller. I'm calling a remote SSRS so providing the RDL could be a challenge.

Attachment: Files_90701eb1.zip

Lance Harwell
Replied On January 8, 2019 02:19 PM UTC

I'm running release 16.1450.0.24. I've just determined that "Color_Change" is custom code in the report itself. This report runs in other instances but this is the only one that seems to have any issues.

Lance Harwell
Replied On January 8, 2019 02:38 PM UTC

I've updated the zip from earlier to include the report definition.

Attachment: Files_710e5e7.zip

Mageshyadav M [Syncfusion]
Replied On January 9, 2019 07:32 AM UTC

Hi Lance, 
 
Thanks for sharing the report. We have checked your report in that you are getting the value for Set_Color method from Color_Change method in code modules. But in our previous version nested methods code modules are not working. We have already fixed this issue in our updated source and this changes will be reflected in 2018 Volume 4 SP1 release which can be expected to be rolled out by end of January 2019. 
 
Regards, 
Mageshyadav.M 


Lance Harwell
Replied On February 21, 2019 03:25 AM UTC

I have now updated to version 16.4450.0.52 and the error I was getting has gone away. I'm no longer getting any errors and the viewer itself loads; however, the report never loads into the viewer. I only get the spinning loading icon that never goes away.

Mageshyadav M [Syncfusion]
Replied On February 21, 2019 02:06 PM UTC

Hi Lance, 
 
Can you please confirm whether the mentioned issue occurred in your shared report in the previous update (or) you are using modified report. If you are using modified report, can you please share the report and also share the console error details, if exist. It will be helpful for us to determine the issue cause or provide solution at earliest. 
 
Regards, 
Mageshyadav.M 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;