Error HRESULT E_FAIL has been returned from a call

Error HRESULT E_FAIL has been returned from a call to a COM component.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.

Source Error:


Line 56: Rapor.LoadReportFromFile(ReportName);
Line 57: DegiskenlereDegerAta(FisID, Tur);
*
Line 58: Rapor.PrepareReport(false);
Line 59: string URL = @../Temp/ + SessionID + "/" + RaporAdi + "." + ExportType;
Line 60: ExportEt(ExportType, URL, Sayfa);


Source File: C:\Project\DijitekRapor\ReportManager.cs Line: 58

Stack Trace:


[COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.]
FastReport.TfrxReportClass.PrepareReport(Boolean ClearLastReport) +0
DijitekRapor.ReportManager.RaporGoster(String RaporAdi, String ExportType, String SessionID, Int32 FisID, Int32 Tur, Int32 DokumanTipi, Page Sayfa) in C:\Project\DijitekRapor\ReportManager.cs:58
DokumanSatisKart.btnYazdır_Click(Object sender, EventArgs e) in c:\Project\DIYOS_WEB\Ihale\DokumanSatisKart.aspx.cs:162
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +104
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5613


Comments

  • edited 3:03PM
    ademcicek wrote: »
    Error HRESULT E_FAIL has been returned from a call to a COM component.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.

    The managed environment translates COM methods error codes into exceptions.
    On exception you can read 'Error' property of report object to see the reason of fail. This property provides text description of error.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.