cancel
Showing results for 
Search instead for 
Did you mean: 

crystal report unexpected error in Web service (IIS)

Former Member
0 Kudos

We are using Crystal report in web service.

We faced some problem due to crystal report unexpected error.

Refer the below error message.

Xception E NSF NSFZ1100 20100608 145511565 GPRAB0 : GPRZ10 [GUEC0001] [1] [AbstractService] Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

Xception E NSF NSFZ1100 20100608 145511972 GPRAB0 : GPRZ10 [GUEC0001] [1] [AbstractService] at System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp)

at System.Windows.Forms.MessageBox.Show(String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon)

at CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(Object eventSource, Exception e, Boolean suppressMessage)

at CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(Object eventSource, Exception e)

at CrystalDecisions.Windows.Forms.ReportDocumentBase.GetLastPageNumber()

at CrystalDecisions.Windows.Forms.ReportDocumentBase.GetLastPage()

at CrystalDecisions.Windows.Forms.DocumentControl.ShowLastPage()

at CrystalDecisions.Windows.Forms.PageView.ShowLastPage()

at Biz.Nissan.Cats.CORE.REPORT.LibCrystalReport.TotalPageCount(ReportDocument Rpt)

at Biz.Nissan.Cats.CORE.REPORT.LibCrystalReport.Print(BaseReport RptDefinition)

at Biz.Nissan.Cats.CORE.REPORT.MCTLIST260Print.Print(IFData ifData)

at Biz.Nissan.W3.CATS.BC.Service.DistributeService.ExecuteMpp()

How we get the actual error from crystal report?

Thanks in Advance

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

What is the workflow

What is the application doing?

Iu2019m guessing you have a windows service application and you're trying to launch a UI (ie the viewer control) from the application or print using the vieweru2019s printing functionality programmatically(?).

If this is a Windows Service running under the local system account, then follow the instructions in the error message. (ie, bring up the properties of the service, go to the logon tab and check the checkbox that says u201CAllow service to interact with desktopu201D. At least that should allow whatever popup is trying to come up display properly.

Ludek

Answers (0)