if not , please try to provide detailed information about your issue and steps to reproduce the issue.
you said that error is unhelpful. but you did not post the error.
if you post the error then it will be helpful for us to understand the issue in better way.
it is also possible that you are not passing the value properly causing the error.
so try to provide the detailed information.
we will try to provide you further suggestions to solve the issue.
Regards
Deepak
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
An unexpected error occurred in Report Processing.
Exception has been thrown by the target of an invocation.
The type initializer for 'System.Diagnostics.Activity' threw an exception.
Operation could destabilize the runtime.
this is the parameter setting code:
var rptParams = new List<ReportParameter>();
rptParams.Add(new ReportParameter("Disclaimer", @"Disclaimer: blablabla."));
rptLocal.SetParameters(rptParams);
in the report, i just change a textbox expression from blank (not showing anything) or =Parameters!Disclaimer.Value (attempt to show the parameter)
the later will get error.
this is from the rdlc, i only use the designer to work.
Member
263 Points
236 Posts
Displaying Parameter in RDLC report cause error
Nov 02, 2017 08:14 AM|Kelmen|LINK
I'm running a RDLC with local mode processing.
I can pass parameter no problem.
the problem is when I want to display/render that parameter (string), i keep getting unhelpful error in report viewer.
removing that parameter textbox, it will work.
Contributor
2990 Points
1210 Posts
Re: Displaying Parameter in RDLC report cause error
Nov 02, 2017 08:53 AM|Deepak Panchal|LINK
Hi Kelmen,
is this a same issue like you mentioned in thread below?
RDLC ASP.NET report viewer - default empty datasource
if not , please try to provide detailed information about your issue and steps to reproduce the issue.
you said that error is unhelpful. but you did not post the error.
if you post the error then it will be helpful for us to understand the issue in better way.
it is also possible that you are not passing the value properly causing the error.
so try to provide the detailed information.
we will try to provide you further suggestions to solve the issue.
Regards
Deepak
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
263 Points
236 Posts
Re: Displaying Parameter in RDLC report cause error
Nov 02, 2017 09:50 AM|Kelmen|LINK
the error is:
this is the parameter setting code:
in the report, i just change a textbox expression from blank (not showing anything) or =Parameters!Disclaimer.Value (attempt to show the parameter)
the later will get error.
this is from the rdlc, i only use the designer to work.
Member
263 Points
236 Posts
Re: Displaying Parameter in RDLC report cause error
Nov 03, 2017 03:15 AM|Kelmen|LINK
stumble on this:
https://github.com/Microsoft/ApplicationInsights-dotnet-server/issues/684
then i remove/disable anything about Microsoft.ApplicationInsights (2.4) in web.config, and it worked
not using anything of Microsoft.ApplicationInsights, so it can go