Crystal Reports PrintToPrinter - The process was terminated due to an unhandled exception

Hi,
I am having a real problem with Crystal Reports in an application built using Visual Studio 2013.
Sometimes (in fact nearly all the time, but not always) whenever I call PrintToPrinter, I get the following error:-
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 37A9D5DC
I have two projects that wrap the functionality, one a Windows Service and the other a Console application.
I will attach a sample of my code, but at the moment I am testing using the console application for testing and this error always terminates the application completely. I have added all sorts of exception handling to try and stop it terminating the app, but to deal with the exception gracefully. Nothing however works, it always terminates the application completely.
The strange thing is that this only happens when calling PrintToPrinter. If I use export functionality such as ExportToStream, everything is absolutely fine and I don't get any errors.
The application always works fine on my development machine as well printing to an Epson WF-3540, it just falls over when deployed to the live server.
The application is developed in Visual Studio 2013.
It uses .NET Framework 4.5.1.
The printer that we are printing to that causes the issue is an HP LaserJet P3010 Series PCL 6
All Crystal Reports For Visual Studio are patched to the latest versions on the live server (13.0.5.891)
I am at a complete loss and any help or guidance would be very much appreciated.
A sample of my code is attached
Many thanks in advance.
Simon

VS 2013 is not supported until SP 9 due out end of this month
Don

Similar Messages

  • Workflow Manager 1.0 (SharePoint 2013): The process was terminated due to an unhandled exception

    I am seeing large numbers of the following errors appearing in the event log of the SharePoint 2013 application server hosting Workflow Manager 1.0:
    Log Name: Application
    Source: Application Error
    Date: [Date/Time]
    Event ID: 1000
    Task Category: (100)
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: [Application Server]
    Description:
    Faulting application name: Microsoft.Workflow.ServiceHost.exe, version: 1.0.20922.0, time stamp: 0x505e1b24
    Faulting module name: KERNELBASE.dll, version: 6.2.9200.16864, time stamp: 0x531d34d8
    Exception code: 0xe0434352
    Fault offset: 0x0000000000047b8c Faulting process id: 0x691c Faulting application start time: 0x01cfc2776b3f0d74
    Faulting application path: C:\Program Files\Workflow Manager\1.0\Workflow\Artifacts\Microsoft.Workflow.ServiceHost.exe
    Faulting module path: C:\Windows\system32\KERNELBASE.dll Report Id: b8157bf8-2e6a-11e4-9413-00155d38891d Faulting package full name:
    Faulting package-relative application ID: Event Xml:
    Log Name: Application
    Source: .NET Runtime
    Date: [date/time]
    Event ID: 1026
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: [same application server]
    Description:
    Application: Microsoft.Workflow.ServiceHost.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception
    Info: Microsoft.Workflow.Common.FatalException Stack: at Microsoft.Workflow.Common.Fx+<>c__DisplayClass2.<failfast>b__0() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object,
    Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Threading.ThreadHelper.ThreadStart()
    Event Xml:
    Log Name: System
    Source: Service Control Manager
    Date: [date/time]
    Event ID: 7031
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: [Same application server]
    Description:
    The Workflow Manager Backend service terminated unexpectedly. It has done this 895 time(s). The following corrective action will be taken in 30000 milliseconds: Restart the service.
    Event Xml:
    The SharePoint 2013 farm is updated through the September 2014 PU (KB2995902).  Topology: 1 App, 2 WFEs.  Workflow Manager 1.0 installed to the App server.  Workflow Manager 1.0 cumulative updates one
    and two have not been installed.  The Service Bus Gateway and Service Bus Message Broker services are started.  The Workflow Manager Backend service can be started, but then quickly stops.
    Thoughts?  Resolution?  I would be grateful for any assistance.

    Hi Stephan,
    As I understand, you are encountering the issue that Workflow Manager Backend service terminating each time. May I know did you run the update cmdlets after you installed the updates for SharePoint server 2013? Please confirm it per the link below:
    http://technet.microsoft.com/en-us/library/dn133867.aspx
    If you haven’t run the updates cmdlets, I suspect this is an install issue. I’d suggest you re-install workflow manager to resolve the issue:
    1) Leave WFM/SB Farm
    2) Uninstall updates and application in the following order and one at a time:
    Service Bus CU1
    Workflow Manager CU1
    Service Bus 1.0
    Workflow Manager 1.0
    Workflow Manager Client 1.0
    Microsoft Windows Fabric
    3) Log into SQL server and delete Service Bus and Workflow Manager databases.
    SBManagementDB
    SBGatewayDB
    SBMessageContainer01
    WFManagementDB
    WFInstanceManagementDB
    WFResourceManagementDB
    4) Install in the following order one at a time through Web Platforms Installer:
    Workflow Manager 1.0
    Service Bus 1.0 CU1
    Workflow Manager 1.0 CU1
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Webdynpro error - what happened calling the webdynpropage was terminated ..

    Hello,
    in WD-Application rendering by portal browsing with Firefox clicking a button it appears a popup.
    The same WD-Application rendering by portal  browsing with IE 6.0 clicking a button it appears not popup but a browser error-message
    "webdynpro error - what happened calling the webdynpropage was terminated due to an error.
    Error type: sapPopupMainIdX1"
    Where is the probem.
    We use Portal Netweaver 2004s, SP11 and as backendystsem for WD for Abap Netweaver 2004s, SP 09.
    Best regards
    Oliver Prodinger

    The issue was actually caused by a kernel problem, as described in the topic
    SAP NetWeaver 2004s ABAP Trial Version SP8 Troubleshooting Guide
    I applied the recommended bug fixes and now it works perfectly!
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6055f523-df6e-2910-f0bf-acccbb0a7d37">SAP NetWeaver 2004s ABAP Trial Version SP8 Troubleshooting Guide</a>
    Hope It will solve your problem
    Cheers
    Parag

  • ESS Leave Request error - Processing of the service was terminated.

    Dear All,
    I am getting the below error on the leave request page in ESS
    A critical error has occured. Processing of the service was terminated. Unsaved data has been lost.
    Contact your system administrator.
    Index: 0, Size: 0
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    let me know what could be the reason for this error?
    Thanks

    Suresh,
    Please search in scn this has been discussed many times
    Thanks
    Bala Duvvuri

  • BSP page was terminated due

    Hello Experts,
    I have setup the solaris sever system monitoring (Solman with ECC)..
    I folled the simulator tool and configured sytstem monitoring..
    Now when i click Operation- > System monitoring - >  receive an below eror message..
    ===========================
        What happened?
    Calling the BSP page was terminated due to an error.
       SAP Note
    The following error text was processed in the system:
    BSP Exception: Internal Error in Business Server Page Runtime.
       Program CL_BSP_RUNTIME================CP
    Include CL_BSP_RUNTIME================CM001
    Line 196 
    ======================================================
    Observed the below error on the  Dev_w0
    B  dbmyclu : info : pessimistic reads set to 2.
    M
    M Thu Oct 30 16:57:35 2008
    M  rdisp/rb_cleaned_rfc = 0
    A
    A Thu Oct 30 16:58:17 2008
    A  RFC FRFC> fallback on the central gateway <hostname> sapgw00 activ
    C
    C Thu Oct 30 17:00:50 2008
    C  User requested cancel of current SQL on connection 0
    M  program canceled
    M    reason   = soft cancel
    M    user     = WORKER
    M    client   = 001
    M    terminal = 10.74.168.172
    M    report   = SAPLSEOP
    C  OCI-call failed with -1=OCI_ERROR
    C     SQL error 1013: 'ORA-01013: user requested cancel of current operation'
    C  SQL cancelled; calling registered fct. at 0x10031a49c
    M  program canceled
    M    reason   = soft cancel
    M    user     = WORKER
    M    client   = 001
    :q!
    Dev_disp
    ========
    Thu Oct 30 17:00:50 2008
    SoftCancel request for T20 U34 M0 received from IC_MAN
    Kindly give ur the solution to fix the issue?..
    Thanks
    Thirumal
    Edited by: Thiru Thirumal on Oct 30, 2008 9:11 AM
    Edited by: Thiru Thirumal on Oct 30, 2008 11:19 AM

    Hi Tobias,
    in order to copy the standard htm page you simply perform the following steps:
    Open the component in question in transaction BSP_WD_CMPWB_NEW without specifying an enhancement set (this will open the standard component)
    In a separate window open the component in question in transaction BSP_WD_CMPWB_NEW an specify the correct enhancement set (this will open the custom component)
    in both windows open the htm page you want to copy
    select the whole code in the standard htm page and copy it to the clipboard
    switch to edit mode in the custom component htm file, delete its contends and past the contend of the standard htm there.
    save and and active your change
    Christian

  • Background process BCTL_4CEDE3M8RTW5WPMQ01YVZ4QYE terminated due to missing

    Hi,
    I am getting following error when i am activating ODS (Bi 7.0)
    Background process BCTL_4CEDE3M8RTW5WPMQ01YVZ4QYE terminated due to missing confirmation.
    I tried reloading and activating it,
    i tried with RSRV adjusts.
    I tried changing package size.
    I tried reducing parallel executions.
    Still not able to activate. Can some one help me.

    Here are the short dump details
    Short text of error message:
    Invalid PBT server group name: PARALLEL_GENERATORS
    Long text of error message:
    Diagnosis
         The system tried to initialize the environment for processing
         parallel RFCs using the function module SPBT_INITIALIZE. The server
         group name specified was found to be invalid. The server group name
         describes a group of servers on which the parallel RFCs should be
         processed.
    System Response
    Procedure
         You can use Transaction RZ12 to determine which PBT server groups
         are configured in your system. You should only use one of the
         server group names listed there to process parallel RFCs.
    But i m activating serially with value 1 in option.

  • Crystal Reports XI - The memory could not be "written"

    Post Author: neildittmar
    CA Forum: General
    We develop and distribute applications using Crystal Reports XI via the RDC component in Visual Basic 6 under Windows XP (SP2).  One of our clients is having issues when launching Crystal Reports from an application.  The data for the report is processed for a period of time, but eventually a Windows error is returned indicating:  The memory could not be "written"
    It is important to note that this report is very data heavy and can produce a 500 page report.  Upon some analysis we've done on-site, we've found that a local administrator can run this report successfully multiple times without receiving the above mentioned error.  However, a user account that is much more restricted in regards to Windows file permissions consistently receives the error.  The clients IT department uses a computer management software that severely limits what individual user accounts have access to on their workstations.
    Our questions are as follows:
    1.  What folders on the client PC are utilized when generating a Crystal Report utilizing the RDC from a Visual Basic 6 application?  From what we can tell, .TMP files are written to the Local Settings\Temp folder of the User account under "Documents and Settings", but it also appears that these files can be written to the root C: drive as well as other places.
    2.  Does Crystal Reports XI require local administrator access on the workstation for users who execute programs utilizing it?

    Thank you,
    I doubt i am able to connect to the same database instance from forms builder 10g but not with forms 6i.I thought it is compatibility of 10g database with forms 6i but that is also not true i am able to connect other 10g database instance with forms 6i builder.
    Is the error is due to improper installation of database instance??
    Thanks

  • Crystal Report 11 error "AccessViolationException was unhandled" on windows

    We have migrated VB code to VS 2010. We are using Crystal Report 11 with Visual Studio 2010, Crystal report is working fine with other Windows OS but not working in Windows 7 OS it throws an error "AccessViolationException was unhandled". We are using Crystal Report viewer, the error stops at the viewer control and gives the above error. Please let me know what is the solution for this
    Note: All admin rights has been given to system

    Only version of CR runtime supported in VS 2010 is Cr for VS 2010:
    http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_1.exe
    Thank you
    Don

  • Calling a Crystal Report using the ReportViewerBean

    Hello...I am writing a java application to display a Seagate Crystal report using the ReportViewerBean.
    The problem I am having is trying to display the report within the viewer.
    The following is a sample from my code where I create an instance of the viewer bean.
    ReportViewerBean rvb = new ReportViewerBean();
    JFrame frame = new JFrame();
    frame.setSize(1000,1000);
    frame.getContentPane().add(rvb,BorderLayout.CENTER);
    frame.show();
    rvb.start();
    try
    String strUrl = "http://localhost:8080/Report1.rpt";
    rvb.setReportName(strUrl);
    catch(java.beans.PropertyVetoException pve)
    System.err.println("Property change vetod");
    The Sys-out from the Report Viewer bean is "No reponse from server".
    The sysout from my server (Tomcat 3.2.3) is:
    2001-09-06 09:08:53 - Ctx( /Report1.rpt ): FileHandler: Ends with \/. D:\jakarta
    -tomcat-3.2.3\jakarta-tomcat-3.2.3\webapps\Report1.rpt\
    2001-09-06 09:08:53 - Ctx( /Report1.rpt ): 404 R( /Report1.rpt + + null) null
    2001-09-06 09:08:53 - Ctx( /Report1.rpt ): FileHandler: Ends with \/. D:\jakarta
    -tomcat-3.2.3\jakarta-tomcat-3.2.3\webapps\Report1.rpt\
    2001-09-06 09:08:53 - Ctx( /Report1.rpt ): 404 R( /Report1.rpt + + null) null
    Any suggestion/help would be greatly appreciated...TY

    I am getting the same 'No Response from Server' Message.
    URL = http://Pepperland/STPARMListing.rpt?viewer=java&vfmt=encp&vgen=728&pversion=3&language=en&promptOnRefresh=1
    Parameters = cmd=get_pg&page=1&incomplete_page=1&incomplete_page_count=1&smart_images=1
    No response from server.
    The WWW service and the Default Web Site are up and running.
    I tried configuring the application settings in the IIS MMC but I was unable to determine which .dll to associate with the .rpt extension.

  • Log Info  REASON="Job slave process was terminated"

    hi,
    i'm using oracle 10g, i have scheduled a job in scheduler, the job status is "STOPPED" and shows the log details as Details REASON="Job slave process was terminated". wht can be the reason?
    how to resolve it ?
    Edited by: user10745179 on Jun 8, 2009 3:28 AM

    Was it an external job?
    What is the platform and exact version?
    Ronald
    http://ronr.blogspot.com

  • Background process zffd terminated due to missing confirmation

    Hi all,
            In production system loading 2500000 lak data load to DSO when try to activate the DSO throwing below error. Kindly guide me on this.
    Error:
    Background process <ZASDFFF> terminated due to missing confirmation
    Thanks

    Hello,
    To resolve this issue, you should make some adjustments to the DataStore
    object parameters, then you should be able to activate the request.
    Please make the following adjustments in transaction RSODSO_SETTINGS
    (you can adjust this for each DataStore object):
    1) Maximum package size (for activation).
        This you should reduce to 10000 (if the value is higher than that)
        Then the package processing will be less time consuming.
    2) Maximum wait time for process (for activation)
        This could be increased to e.g. 600 (if the value is lower than this)
    See SAP note 1118205 for further information.
    Best Regards
    Barry

  • Background process BCTL_** terminated due to missing confirmation

    Hi Experts,
    I have a step in Process chain for activation of a request in DSO. But its failing frequently with error message "Background process BCTL_* terminated due to missing confirmation*". I tried to remove the step from process chain and rebuild it, this avoided the failure for a day. But its failing again at same place.
    Can you please guide if anything can be done to stop this failure in future?
    Regards,
    Nirmal

    Hi,
    I also faced the same issue.
    Error when activate DSO in SAP BI :          "Background process BCTL_*   terminated due to missing confirmation"
    I Resolved  by the following way:
    Steps :
    1.ODS Activation window > Click the button u201CActivate in parallelu201D> Changed    the Number of process  3  to 1-->Save
    2.ODS Activation window >Click the button u201CGet SIDs in parallelu201D> Changed    the Number of process  3  to  1--> Save
    Then start the activation
    Successfully completed.
    Hope it will help.
    Thanks &  Best Regards,
    Hema

  • The migrated Crystal Report throws "The database logon information for this report is either incomplete or incorrect" error

    [ENVIRONMENT]
    Product version - BI4.1 SP03
    OS - Windows 2008 R2
    CMS Database - Oracle 11g
    Java Application Server - Tomcat7
    [ISSUE]
    Using the Upgrade Management Tool to completely migrate a BOXI3.1 SP3+FP3.6 to BI4.1 SP03.  The reporting database from both BOXI3.1 and BI4.1 are the same and so is the database logon credential.
    When viewing and refresh a migrated Crystal Report, it throws "The viewer could not process an event. The database logon information for this report is either incomplete or incorrect. [] ---- Error code:0 [CRWEB00000119]" error in both BI Launchpad and "The database logon information for this report is either incomplete or incorrect" in scheduled job.
    [STEPS TAKEN]
    - Update the Database Configuration with the SAME Oracle database password in CMC and "The database logon information for this report is either incomplete or incorrect" issue goes away.
    I search the SAP SMP and SCN forum and found no reference on this UMT and Crystal Report database logon problem.  Hope any of you have seen this problem and share if there is an ADAPT for it.
    Thank you in advance,
    Jin-Chong

    Hi,
    The BI4.1 SP03 server and client and Crystal Report 2013 SP03 developer and Crystal Report for Enterprise 4.1 SP03 are all installed onto this Windows 2008 R2 server.
    I am able to open the migrated report from CMS repository in Crystal Report 2013 SP03 developer and am able to refresh it with database logon password provided.  After save it back to the Enterprise, the database logon password field for this report in CMC becomes empty so that I have to enter the database password and choose "Use same database logon as when report is run" when viewing and scheduling report.
    What is interesting to me is that the UMT seems to migrate the report along the database logon password because I can see the encrypted password in the report database logon property in CMC.  The workaround is to reenter the database logon password in the report database logon property in CMC.
    With this said, there are hundreds of the Crystal reports and the workaround would consume lots of manual work by update each report's database logon password in CMC.
    For other customers who have more crystal reports, I wonder if there is an automated way to update the crystal report's database logon password on BI4.1 or if this is an isolated incident on my new BI4.1 SP03 environment.
    I run UMT in command line to perform livetolive migration, and my steps are listed below
    cd "E:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\apps\upgradeManagementTool\jars\"
    "E:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\sapjvm\bin\javaw.exe" -Xmx56g -Djava.library.path="..\..\..\..\win64_x64" -jar upgrademanagementtool.jar -internal_use_only_noversioncheck -responsefile LIVETOLIVEResponseFile.txt
    LIVETOLIVEResponseFile.txt:
    mode=livetolive
    source=edhc01nwapp65:6400
    sourceusername=Administrator
    sourcepassword=xxxxxxxxxx
    destination=WAPP246N:6400
    destinationusername=Administrator
    destinationpassword=xxxxxxxxxx
    logfile=E:\temp\livetolive.csv
    configparam:base_url=https://boprod.bsc.bscal.com/dswsbobje
    locale=en_US
    Regards,
    Jin-Chong

  • CHARM-An action was terminated due to an exceptional situation

    Hi All,
    We are implementing standard change request management. If I
    create change request I am getting the below error.
    Error:
    An action was terminated due to an exceptional situation.
    Message no. SOCM_ACTION_LOG 090.

    Hello all,
    I face a similar error message but in a different scenario.
    In a customised flow of a ticket. ZLFN -> ZDCR -> ZDAD
    While cancelling ZDAD, the change document end in system status "Completed" uneditable with the error message "An action was terminated due to an exceptional situation" SOCM_ACTION_LOG 090
    The Predoc to ZDCR fails as well. The change Document (ZDAD) is not stuck with this error message and is uneditable. I even tried to reproduce the error on Development environment but was unsuccessful.I would like to understand the cause of this message.
    Thanks

  • Hyper-V could not replicate changes for virtual machine 'machinename': The connection with the server was terminated abnormally (0x00002EFE).

    I have a 3 node cluster that has replica setup to replicate to another cluster off-site.
    Suddenly one of the servers is not replicating with the error:
    Hyper-V could not replicate changes for virtual machine 'machinename': The connection with the server was terminated abnormally (0x00002EFE). (Virtual Machine ID CC0FD4CC-F9B7-4C68-ABE8-B7D52A87899F)
    All other servers are replicating fine so there cannot be a permissions or connectivity issue between the 2 clusters.
    This server has 2TB of data so I'd rather not have to start the replication again.
    Does anyone have any pointers?
    Thanks.

    Hi drensta,
    Based on my knowledge , "hyper-v replica broker " is needed for failover cluster replica .
    Here is a link for "Why is the "Hyper-V Replica Broker" required?"
    http://blogs.technet.com/b/virtualization/archive/2012/03/27/why-is-the-quot-hyper-v-replica-broker-quot-required.aspx
    Hope this hleps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for

  • 1st gen iPod touch 3.1.3 with Mavericks 10.9 compatibility?

    Wow! I had not idea a new computer would be so great. Mac pro Retina 13" is a big step up from 2005 G4. Anyway. Does anyone know if my ipod touch running 3.1.3 will work with my new machine? eventually, I'll either get an iPhone or? Not right now. I

  • Problem to open URL link within hx:outputLinkEx

    Hello, I have a problem to open a URL with the following code, I can see that url output string is "www.lalalala.com" , but after I click it, the new opened browser window is point to "http://localhost:9081/.../www.lalalala.com" ?? Can someone help m

  • Mercury Playback GPU Acceleration stopped working after update

    I just updated all my Adobe Software for the first time since getting my new workstation, and my Mercury GPU acceleation no longer works (software only). I am running a GTX 670 (driver version 9.18.13.697) and Premiere Pro 64-bit (version 6.0.3). Any

  • OLAP functions

    Hi All, I have written a query in oracle 10g, my query is having some rank (), OVER (PARTITION BY..) functions to perform some operation. Are these OLAP functions? I am asking this because we are getting some following message on server logs: ORA-006

  • Win 7 (64-bit) DJ 812C only prints test page

    Windows 7 (64-bit) driver for HP 812C installed; Word and e-mail print attempts result in printing only the test page.  Holding Power-On switch and pressing formfeed four times resulted in a good print-out that, among other things, mentioned an error