cancel
Showing results for 
Search instead for 
Did you mean: 

RE-IMPORT subreport from .NET applications

Former Member
0 Kudos

Hi

I made a template in Crystal report 2008 for .net application

Report template contains one subreport.

This subreport has to set a property "Re-import When Opening is true"

When I generating a new report from .NET application, then an error occurs:

Server Error in '/' Application.

-


IDL:omg.org/CORBA/COMM_FAILURE:1.0 has been thrown. Reason for failing: error number WSAECONNREFUSED.

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: IDL:omg.org/CORBA/COMM_FAILURE:1.0 has been thrown. Reason for failing: error number WSAECONNREFUSED.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[COMException (0x80041015): IDL:omg.org/CORBA/COMM_FAILURE:1.0 has been thrown. Reason for failing: error number WSAECONNREFUSED.]

CrystalDecisions.ReportAppServer.ClientDoc.ISReportAppFactory.OpenDocument(Object DocID, Int32 Options) +0

Ast.Common.Reports.Internals.ReportCtrl.OpenDocument(String reportName) in c:\Documents and Settings\svc-tfserver\Local Settings\Temp\Insurance\INS-Test(v130)\Sources\Common\Reports\Internals\ReportCtrl.cs:357

Ast.Common.Reports.Internals.ReportCtrl.GetReportClientDoc(DataSet dataset, String reportFile, CultureInfo cultureInfo) in c:\Documents and Settings\svc-tfserver\Local Settings\Temp\Insurance\StarINS-Test(v130)\Sources\Common\Reports\Internals\ReportCtrl.cs:294

Ast.INS.WebUI.Common.SA0400.SA0401.GetReportClientDoc(DataSet ds) in c:\Documents and Settings\svc-tfserver\Local Settings\Temp\Insurance\INS-Test(v130)\Sources\WebUI\Common\SA0400\SA0401.aspx.cs:826

Ast.StarINS.WebUI.Common.SA0400.SA0401.TlacBtn_Click(Object sender, EventArgs e) in c:\Documents and Settings\svc-tfserver\Local Settings\Temp\Insurance\INS-Test(v130)\Sources\WebUI\Common\SA0400\SA0401.aspx.cs:863

System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111

System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13

System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

How to solve this problem ?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Please clarify a few things. Which version of Visual Studio are you using? Which version of Crystal Reports are you using? Are you using Crystal Reports Basic, the version that shipped with VS2008? Or are you using the full version of Crystal Reports 2008?

Are you seeing the error on your development machine while running the application from Visual Studio (in debug mode)? Or are you only seeing it after deploying your web application to your web application server?

Is the error happening with all reports, or is it just happening for this one report that reimports the subreport? If it's just this report, does it run if you remove the subreport? Does it run if you change the subreport setting to not reimport?

How are you loading the report? Are you just loading the report from a file path using the ReportDocument object from the CR.NET SDK? Are you using unmanaged RAS? Or are your reports stored on an Enterprise system and using the Enterprise .NET SDK?

Once you've provided the additional information someone might have an idea of how to assist you further.

Sincerely,

Dan Kelleher

Answers (0)