or
Error HRESULT E_FAIL has been returned from a call to a COM component.
at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData) at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData) at MS.Internal.XcpImports.Collection_Add[T](PresentationFrameworkCollection`1 collection, Object value) at System.Windows.PresentationFrameworkCollection`1.AddImpl(Object value) at System.Windows.PresentationFrameworkCollection`1.System.Collections.IList.Add(Object value) at Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjectInstanceBuilder.InstantiateChildren(IInstanceBuilderContext context, ViewNode viewNode, DocumentCompositeNode compositeNode, Boolean isNewInstance)
/// <summary>/// Updates the report./// </summary>public void UpdateReport(){ AcceptanceProtocol.AcceptanceProtocol report = this.ReportViewer1.Report as AcceptanceProtocol.AcceptanceProtocol; report.SetFilters(companyId, userId, deviceId, cultureName); this.ReportViewer1.Visible = true; this.ReportViewer1.RefreshReport();}/// <summary>/// Handles the NeedDataSource event of the AcceptanceProtocol control./// </summary>/// <param name="sender">The source of the event.</param>/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>private void AcceptanceProtocol_NeedDataSource(object sender, EventArgs e){ Telerik.Reporting.Processing.Report rep = (Telerik.Reporting.Processing.Report)sender; this.DataSource = this.BusinessLogic.GetAcceptanceProtocol( this.CompanyId, this.UserId, this.DeviceId, this.CultureName, this.EventTypeIdFilter, this.EventTypeGroupIdFilter); rep.DataSource = this.DataSource;}