Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="AuditReport.aspx.cs" Inherits="Htdocs_html_AuditReport" %> Line 2: Line 3: <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"Line 4: Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %> Line 5:
Source File: /html/AuditReport.aspx Line: 3
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Telerik.Reporting.Processing.DetailSection processingDetail = (Telerik.Reporting.Processing.DetailSection)sender;
foreach (Telerik.Reporting.Processing.ReportItem item in processingDetail.Items)
{
if (item is Telerik.Reporting.Processing.Panel)
{
Telerik.Reporting.Processing.Panel pan = (Telerik.Reporting.Processing.Panel)item;
foreach (Telerik.Reporting.Processing.ProcessingElement ele in pan.ChildElements)
{
if (ele is Telerik.Reporting.Processing.TextBox)
{
if (ele.Name == node.Attributes["Flag"].Value.ToString().Replace("$#", "").Replace("#$", ""))
{
Telerik.Reporting.Processing.TextBox txt = (Telerik.Reporting.Processing.TextBox)ele;
txt.Value = node.InnerText;
}
}
if (ele is Telerik.Reporting.Processing.CheckBox)
{
if (ele.Name == node.Attributes["Flag"].Value.ToString().Replace("$#", "").Replace("#$", ""))
{
Telerik.Reporting.Processing.CheckBox chk = (Telerik.Reporting.Processing.CheckBox)ele;
if (node.InnerText == "X")
{
chk.Value = System.Windows.Forms.CheckState.Checked;
}
else
{
chk.Value = System.Windows.Forms.CheckState.Unchecked;
}
}
}
}
}
}
Many Thanks
Dear Community,
I have recently encountered a problem when trying to work with hide/show of report content. So shortly draft out my problem, I have a report with Master/Detail, on the master I have the following code in my report's cs file
bool bShow;
private void subReport_ItemDataBound(object sender, System.EventArgs e)
{
bShow = (
bool) this.ReportParameters["ShowDetails"].Value;
(sender
as Telerik.Reporting.Processing.SubReport).Visible = bShow;
//More content will be added here...
}
This works flawless and my excel export works perfectly. If I add the following line into the method
masterDetail_Total.ShowDetailSection(bShow);
where the method ShowDetailSection(bool bShow) is defined in the detail report of the master report, so that the complete method will yeild
bool bShow;
private void subReport_ItemDataBound(object sender, System.EventArgs e)
{
bShow = (
bool) this.ReportParameters["ShowDetails"].Value;
(sender
as Telerik.Reporting.Processing.SubReport).Visible = bShow;
// Known Issue: 'Visible = false' will cause excel export to throw an StackOverflow exception
masterDetail_Total.ShowDetailSection(bShow);
}
the reportviewer will throw an StackOverflow exception whenever the report parameter "ShowDetails" = false.
Any idea on how to solve this problem?
Best regards,
S. Engel