Crystal Report Hangs

Hi,
Crystal Reports Server 2008 and Crystal Reports Client are installed in two different servers.  Both the serveru2019s operating system is windows 2003 SP 2.  ASP.Net (c#) is used for launching the reports. When I tried to launch the reports it hangs. After some time I got the following message
COMException (0x80041017): Request timed out because there has been no reply from the server in 600000 ms.  
CrystalDecisions.ReportAppServer.ClientDoc.ISReportAppFactory.OpenDocument(Object DocID, Int32 Options) +0
   ASP.crystalserver_crystal_report_server_aspx.Page_Load() in d:\TECH\report\Crystal_Report_Server.aspx:53
   System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o) +8
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +8664819
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
I got this error when the following statement is executed
InfoObject infoObject = infoObjects[1];
ReportClientDocument reportClientDocument = new ReportClientDocumentClass();
reportClientDocument = reportAppFactory.OpenDocument(infoObject.ID, 0);
I tried to increase the request timed out (up to 30 minu2019s) in the registry settings but also this fails.  There is no firewall available in both the servers. 
Can any one provide me the required settings to over come this issue. 
Please Note : Previously I was not able to login to the CMS server from the client machine.  After providing the server details in the clientu2019s host entries then I am able to connect to the CMS now.

This still sounds like a firewall issue specificly when dealing with the RAS server.  I would refer you to the [Configuring The Crystal Enterprise SDK to Work With Firewalls|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0047e5f4-3140-2b10-1bae-de175e4c741c] document.
The other way to test this is by running the application on the same machine as the enterprise server and see if it still gives that error.  If it does, that means the report is taking that long to run, if it doesn't, then there is some sort of network issue.

Similar Messages

  • Web printing crystal report hangs on report.PrintOptions.PrinterName

    Hello,
    I have a report web page that displays a crystal report.  I have added a modal popup to allow them to select their printers.  When I go to print the report is hangs on the line of rpt.PrintOptions.PrinterName = li.Text.  The printer names are added to the list box using a Java applet.
    Here is the Sub it is running.
        Public Sub PrintReports()
            rpt = CType(Session("rpt"), ReportDocument)
            For Each li As ListItem In Me.lbPrinters.Items
                If li.Selected AndAlso li.Text <> "" Then
                    rpt.PrintOptions.PrinterName = li.Text
                    rpt.PrintOptions.PrinterDuplex = CType(Me.cboDuplex.SelectedItem.Value, CrystalDecisions.Shared.PrinterDuplex)
                    rpt.PrintToPrinter(CInt(Me.txtNumOfCopies.Text), True, CInt(Me.txtPageStartRange.Text), CInt(Me.txtPageRangeEnd.Text))
                End If
            Next
            Me.mpePrint.Hide()
        End Sub
    Any help would be greatly appreciated.
    Thanks,
    Patrick

    Sounds like you're trying to implement server side printing in your app. Which is fine, except the CR ActiveX print is client side printing. Just in case you're interested, the way to enable activeX print is to go to the property of the CR viewer and find "PrintMode". It will more than likely be defaulted to PDF. Change that to ActiveX.
    Now, back to the issue. This may still be a matter of permissions - essentially what Adam was after. Probably the easiest way to determine that is to use the [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] utility. Once you have the log, search it for "Access Denied" messages.
    Ludek

  • Crystal Reports hanging in Enterprise

    Just suddenly we are facing issues with some of the crystal reports . they were working fine in Business objects up to yesterday but today they are hanging , even when we try to open/modify parameter they hang. we are using Crystal report 2008 and BO R3.1.
    evnthough some reports hangs the others just run fine.
    we noticed that , the reports which are stopped working are the ones that have  " Printer Option" unchecked in Crystal Report designer . when we open these reports in designer and check that option on pagesetup and  save them back in enterprise they are working.
    I have no luck to find the rootcause of this issue. what have changed that caused this issue.
    It is happening on both test and production environments. I read somewhere on forum that it might be  related to printer driver, but we haven't updated any driver and nothing seems to be changed.
    any ideas?

    In the page setup put the option Microsoft XPS Document Writer in the Printer option before publishing it to BO Server .

  • Crystal report hangs when calling oracle package

    hi i have a oracle package that calls a proceadure, if i test this package in PLSQL developer it compiles and i get sensible results
    this package has been designed using a ref type cursor to be called from crystal reports. it primary objective when the report is run, is to use File util to output data to an xml file.
    when i run this from crystal reports it locks crystal reports up, and dosent output a file.
    any ideas why crystal is hanging?
    crystal DB call
    {CALL  Enhanced_Pharos_Report.run_report
    (NVL({?a_channel_id},0),{?b_on_date})}
    package
    create or replace package UKTV_PHAROS_EXPORT_RPT
    -- Author : WARDLJ01
    -- Created : 03/04/2006 12:25:03
    -- Purpose : export xml for pharos voiceovers
    -- Public type declarations
    AS
    TYPE result_set_type IS REF CURSOR;
    PROCEDURE run_report
    (main_cursor IN OUT result_set_type,
    V_CHANNEL_ID NUMBER,
    V_ONDATE      DATE);
    end ;--UKTV_PHAROS_EXPORT_RPT;
    package body
    create or replace package body UKTV_PHAROS_EXPORT_RPT AS
    PROCEDURE run_report
    (main_cursor IN OUT result_set_type,
    V_CHANNEL_ID NUMBER,
    V_ONDATE      DATE)
    is
    BEGIN
    OPEN main_cursor FOR
    -- Passess the parameters back to the cursor - which passes them back to the Crystal Report output
    SELECT V_CHANNEL_ID, V_ONDATE from DUAL;
    -- This is a procedure that calls FILE_UTL to export the data.
    UKTV_PHAROS_Export(V_CHANNEL_ID, V_ONDATE);
    END;
    end;
    Proceadure
    create or replace procedure uktv_own.UKTV_Pharos_Export(V_CHANNEL_ID number, V_ONDATE date) is
    l_output utl_file.file_type;
    p_filename varchar2(30);
    V_DETAIL_id varchar2(100);
    V_MEDIA_ID varchar2(150);
    V_REQUIRED varchar2(50);
    V_SCRIPT varchar2(4000);
    V_DEL_DATE varchar2(100);
    V_FULLMEDIA_ID varchar2(500);
    V_START_TIME varchar2(100);
    V_DURATION varchar2(100);
    V_DATE varchar2(100);
    V_CHANNEL varchar2(40);
    V_LOGO_NAME varchar2(250);
    Cursor VO_CURSOR
    IS
    select event_voiceover.detail_id, vo_media_id, vo_required, vo_script, vo_del_date, full_media_id,
    event.start_time, event.duration, event.on_date, event.channel_id, logo.logo_name
    from event_voiceover,
    onair.event, onair.event_technical_data,
    onair.logo
    where event_voiceover.detail_id = event.detail_id
    and event_technical_data.event_technical_data_id = event.event_technical_data_id
    and event_technical_data.content_id = logo.logo_id and
    event.channel_id = V_CHANNEL_ID and
    vo_required = 500004580 and
    event.on_date = V_ONDATE;
    begin
    p_filename :='voice_overs.xml';
    l_output := utl_file.fopen ('PHAROS_DIR', p_filename, 'w' );
    OPEN VO_CURSOR;
    utl_file.put ( l_output,'<Voice_Overs>');
    Loop
    FETCH VO_CURSOR INTO V_DETAIL_id, V_MEDIA_ID, V_REQUIRED,V_SCRIPT, V_DEL_DATE, V_FULLMEDIA_ID, V_START_TIME, V_DURATION, V_DATE, V_CHANNEL, V_LOGO_NAME;
    EXIT WHEN VO_CURSOR%NOTFOUND
    OR VO_CURSOR%ROWCOUNT = 10000;
    utl_file.put( l_output, '<DETAIL_ID>');
    utl_file.put( l_output, V_DETAIL_ID);
    utl_file.put( l_output, '</DETAIL_ID>');
    utl_file.put( l_output, '<MEDIA_ID>');
    utl_file.put( l_output, V_MEDIA_ID);
    utl_file.put( l_output, '</MEDIA_ID>');
    utl_file.put( l_output, '<REQUIRED>');
    utl_file.put( l_output, V_REQUIRED);
    utl_file.put( l_output, '</REQUIRED>');
    utl_file.put( l_output, '<SCRIPT>');
    utl_file.put( l_output, V_SCRIPT);
    utl_file.put( l_output, '</SCRIPT>');
    utl_file.put( l_output, '<DEL_DATE>');
    utl_file.put( l_output, V_DEL_DATE);
    utl_file.put( l_output, '</DEL_DATE>');
    utl_file.put( l_output, '<FULLMEDIA_ID>');
    utl_file.put( l_output, V_FULLMEDIA_ID);
    utl_file.put( l_output, '</FULLMEDIA_ID>');
    utl_file.put( l_output, '<START_TIME>');
    utl_file.put( l_output, V_START_TIME);
    utl_file.put( l_output, '</START_TIME>');
    utl_file.put( l_output, '<DURATION>');
    utl_file.put( l_output, V_DURATION);
    utl_file.put( l_output, '</DURATION>');
    utl_file.put( l_output, '<ONDATE>');
    utl_file.put( l_output, V_DATE);
    utl_file.put( l_output, '</ONDATE>');
    utl_file.put( l_output, '<CHANNEL_ID>');
    utl_file.put( l_output, V_CHANNEL);
    utl_file.put( l_output, '</CHANNEL_ID>');
    utl_file.put( l_output, '<LOGO_NAME>');
    utl_file.put( l_output, V_LOGO_NAME);
    utl_file.put( l_output, '</LOGO_NAME>');
    utl_file.new_line ( l_output);
    end loop;
    utl_file.put ( l_output,'</Voice_Overs>');
    utl_file.fclose(l_output);
    end UKTV_Pharos_Export;

    Hi yes the package uses fileutil to output a file,
    the report user has permission over the file util output directory.
    I have previously used this method to generate rpt, and other output files in parelell.
    thanks
    james

  • Crystal Reports hanging IIS

    Post Author: desiconsultant
    CA Forum: .NET
    Hi All,
    We use crystal reports and looks like every one in a while it hangs IIS 6.0. Running Windows Server 2003. Looking at the WinDbg the following call stands out as the cause of the hang.
    crpe32!EnableDialogsHelp
    Has anyone else seen this? Is there a patch/workaround/fix for this.
    Thanks

    In the page setup put the option Microsoft XPS Document Writer in the Printer option before publishing it to BO Server .

  • Crystal Report hanged at the 16374 pdf softcopy generated

    To whom it may concern,
    Recently, we have encountered a Crystal Report Problem during generating softcopy in PDF format.
    When the Crystal Report generated 16374 pdf softcopy, the Crystal Report program is hanged and without error.  It is replicable error and we have tried many times.
    Do you have any idea what is the cause of the issue?
    Thanks for your help.

    As you are using VS .NET I moved your post to the SAP Crystal Reports, version for Visual Studio SCN Space
    As I understand the issue, you are exporting report / reports(?) to pdf in some sort of a loop(?).
    You are able to export 16374 times, then the app stops processing and hangs.
    I'd like you to address the above two question marks please as these are assumptions and you need to clear these up.
    Next, provide the version of CR you are using - please be precise.
    Also, version of VS.
    Note that you should be be cleaning up your objects - the reports as well as the dataset - e.g.; use .close and .dispose.
    Check the hard drive - make sure you are not running out of HD space.
    Check the %TEMP% directory and clean that out.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter
    https://twitter.com/SAPCRNetSup

  • Crystal Reports hangs on Startup

    Hi,
    I'm very new to Crystal but can't find an answer to this.
    Crystal Reports 2008 SP3 (12.3.0.601)
    Interface opens when I click Start...Programs etc., but then hangs.
    I can't click on any on the menus (File...etc)
    The only way to shut it down is by Ending the Process.
    It's like it's trying to do/find something in the background but just not finding it.
    It opened properly for me once since it's been installed and I was able to open, edit and view a report but I can't get it to open again.
    Nothing else has been installed/changed in the meantime (except a reboot).
    Any ideas?
    Thanks,
    Jenny

    Hi Jenny,
    If you are on a 64 bit OS then go to this registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Business Objects\Suite 12.0\Crystal Reports
    If on a 32 bit OS then this key:
    HKEY_LOCAL_MACHINE\SOFTWARE\business objects\suite12.0\crystal reports
    and look for DisableCheckForUpdates and change it to a "1".
    Thank you
    Don

  • Crystal Reports Hangs on .Load event

    Hi ,
    We are using CR 2011 on Windows environment (2008 R2) and  run the following workflow.
    1. We have created a rpt with 9 sub reports.
    2. We would like to print the port to a particular printer and hence have set the flag <NO Printer> on the report
    3. The application is a windows based application and not a web based application.
    4. We have tested the report by launching the report and printing it on the desired printer.
    5. We have a windows service that executes the code of reading the report and printing it out as a pdf / printer.
    6. Step 4 is an event based activity that occurs as frequently as every 2 minutes.
    7. The database is Oracle 11g
    PROBLEM:
    1. Generally all runs well, however once / twice a day the report hangs.
    2. We have created a dump file and observed that the hang occurs on .LOAD event.
    3. We are using the .LOAD with a single parameter that of the report name.
    4. We also observed that the spooler service hangs
    5. We are disposing the report immediately after printing it.
    After the problem occurs we are forced to start the windows service and the printer spooler service.
    Solutions tried so far:
    1. Changing the No Printer flag did not give any results.
    2. We have created a job that restarts the windows service and the spooler service after a period of 30 mins. - This has minimized the occurances but not eliminated the problem.
    Pseudo code:
    ReportDocument CR = new ReportDocument()
    CR.Load(<report file name);
    //Set Main data Source
    CR.Database.Tables[0].SetDataSource(ADODB.Recordset)
    //set sub reports
    CR.Subreports[<Index>].Database.Tables[0].SetDataSource(data table)
    //here it prints on default printer or the set printer. (Printer s are UNC printers, however we register them - they are visible as local printers on the given machine -  locally before printing)
    CR.PrintToPrinter(noOfCopies, false, fromPage, toPage);
    CR.Close()
    CR.Dispose()
    IF required we can also provide the rpt file and any other details.
    Our customers are really suffering cause of this and any help would be really appreciated.
    Thanks
    Anil

    Hi Ludek,
    In continuation, please find the stack for the hang.
    As we can see there is a OutOfMemory exception followed by a Stack Overflow exception and then we have the CrstalReports function calls.
    005b99b4   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_OnPropertyChangedEventHandler
    005b98f8   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_OnPropertyChangingEventHandler
    005b983c   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_OnSavedEventHandler
    005b9780   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_OnSavingEventHandler
    005b96c4   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_PreSavingEventHandler
    005b9608   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_OnClosedEventHandler
    005b954c   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_OnClosingEventHandler
    005b9490   
    2      
    64 CrystalDecisions.ReportAppServer.ClientDoc._ISCDClientDocumentEvents_PreClosingEventHandler
    79ad78cc   
    1      
    68 System.Diagnostics.Tracing.EventSource+OverideEventProvider
    77eb9860   
    1      
    68 System.Drawing.BufferedGraphicsContext
    5fb97d40   
    1      
    68 System.Configuration.AppSettingsSection
    04028214   
    1      
    68 System.Text.RegularExpressions.Match
    79ae71b8   
    2      
    72 System.Globalization.CompareInfo
    79ae0b30   
    2      
    72 System.Threading.ExecutionContext
    79ae0014   
    3      
    72 System.Guid
    79ad7804   
    1      
    72 System.Collections.Generic.Dictionary`2+Entry[[System.String, mscorlib],[System.Resources.ResourceLocator, mscorlib]][]
    5fb97254   
    3      
    72 System.Configuration.ConfigurationElementCollection+Enumerator
    5fb9715c   
    6      
    72 System.Configuration.ConfigurationValues+ConfigurationElementsCollection
    049d8ff4   
    3      
    72 System.Windows.Forms.Layout.DefaultLayout+AnchorInfo
    049d71dc   
    6      
    72 System.Windows.Forms.ControlEventArgs
    049d70b4   
    3      
    72 System.Windows.Forms.Layout.LayoutUtils+MeasureTextCache
    04059b30   
    1      
    72 System.Diagnostics.FilterElement
    03e04348   
    3      
    72 System.Collections.Generic.List`1[[Microsoft.Win32.SystemEvents+SystemEventInvokeInfo, System]]
    79ae9250   
    1      
    76 System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo
    049d7208   
    1      
    76 System.Windows.Forms.NativeMethods+STARTUPINFO_I
    79ae4468   
    5      
    80 System.Text.DecoderReplacementFallback
    79ae4418   
    5      
    80 System.Text.EncoderReplacementFallback
    79ae01b4   
    5      
    80 System.DateTime
    79ada500   
    2      
    80 System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
    79ad9728   
    1      
    80 System.Resources.ResourceManager
    79ad7268   
    1      
    80 System.Resources.ResourceReader
    79ad5374   
    2      
    80 System.IO.BinaryReader
    77eb942c   
    2      
    80 System.Drawing.SafeNativeMethods+LOGFONT
    77eb8c74   
    2      
    80 System.Drawing.Icon
    0403c604   
    4      
    80 System.Text.RegularExpressions.ExclusiveReference
    040285b4   
    4      
    80 System.Collections.Specialized.HybridDictionary
    040284e0   
    4      
    80 System.Collections.Specialized.ListDictionary+DictionaryNode
    79ae2570   
    1      
    84 System.ExecutionEngineException
    79ae252c   
    1      
    84 System.StackOverflowException
    79ae24e8   
    1      
    84 System.OutOfMemoryException
    79ae2394   
    1      
    84 System.Exception
    79ad7460   
    3      
    84 System.Resources.ResourceFallbackManager+<GetEnumerator>d__0
    051abba4   
    1      
    84 System.Windows.Forms.SaveFileDialog
    049d8aa8   
    7      
    84 System.Windows.Forms.UICuesEventArgs
    049d611c   
    3      
    84 System.Windows.Forms.PropertyStore+PaddingWrapper
    049d53c4   
    3      
    84 System.Windows.Forms.Padding
    04059a1c   
    1      
    84 System.Diagnostics.ListenerElement
    04026734   
    2      
    88 System.Diagnostics.TraceSwitch
    049d643c   
    1      
    92 System.Collections.Generic.KeyValuePair`2[[System.Drawing.Font, System.Drawing],[System.Windows.Forms.Internal.WindowsFont, System.Windows.Forms]][]
    79ae68c8   
    3      
    96 System.Reflection.MemberFilter
    79ad7f34   
    3      
    96 System.Text.UTF8Encoding+UTF8Decoder
    7971adc8   
    4      
    96 System.Collections.Generic.List`1[[System.Reflection.MethodInfo, mscorlib]]
    7971a530   
    2      
    96 System.Collections.Generic.Dictionary`2[[System.Type, mscorlib],[System.Byte[], mscorlib]]
    7971941c   
    4      
    96 System.Collections.Generic.List`1[[System.String, mscorlib]]
    5fb97e10   
    1      
    96 System.Configuration.KeyValueConfigurationCollection
    5fb95c3c   
    2      
    96 System.Configuration.ClientConfigPaths
    05199e20   
    6      
    96 System.Windows.Forms.KeyEventArgs
    049d18fc   
    4      
    96 System.Windows.Forms.NativeMethods+TRACKMOUSEEVENT
    04059794   
    1      
    96 System.Diagnostics.SwitchElementsCollection
    04059710   
    1      
    96 System.Diagnostics.SharedListenerElementsCollection
    04059588   
    1      
    96 System.Diagnostics.SourceElementsCollection
    0403c1dc   
    4      
    96 System.Collections.Generic.List`1[[System.Text.RegularExpressions.RegexOptions, System]]
    03e0411c   
    2      
    96 System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.UriParser, System]]
    79ae9154   
    1     
    100 System.Runtime.Serialization.Formatters.Binary.__BinaryWriter
    79ae6af8   
    5     
    100 System.Security.PermissionToken
    79ad7848   
    1     
    100 System.Diagnostics.Tracing.FrameworkEventSource
    04029fd0   
    1     
    100 System.Diagnostics.FileVersionInfo
    049d5984   
    1     
    104 System.Windows.Forms.Application+MarshalingControl
    79ae90dc   
    1     
    108 System.Runtime.Serialization.Formatters.Binary.ObjectWriter
    5fb969ac   
    9     
    108 System.Configuration.ConfigurationPropertyCollection
    79ae26bc   
    1     
    112 System.AppDomain
    5fb96bb8   
    4     
    112 System.Configuration.StreamInfo
    0403c55c   
    4     
    112 System.Text.RegularExpressions.RegexFCD
    04028518   
    4     
    112 System.Collections.Specialized.ListDictionary
    04025bec   
    7     
    112 System.Collections.Specialized.NameObjectCollectionBase+NameObjectEntry
    79ae2d3c   
    3     
    120 System.Security.Policy.Evidence
    797183c0   
    5     
    120 System.Collections.Generic.List`1[[System.Type, mscorlib]]
    049d7190   
    6     
    120 System.Windows.Forms.Control+ControlCollection
    04059890   
    2     
    120 System.Diagnostics.TraceSection
    040593d4   
    2     
    120 System.Diagnostics.AssertSection
    79aed4a4   
    4     
    128 System.Text.UTF8Encoding+UTF8Encoder
    79adec44   
    8     
    128 System.Runtime.InteropServices.HandleRef
    79adb030   
    8     
    128 System.Security.Permissions.UIPermission
    049d54a4   
    8     
    128 System.Windows.Forms.PropertyStore+SizeWrapper
    049d4ecc   
    8     
    128 System.Windows.Forms.PropertyStore
    0403c5cc   
    8     
    128 System.Text.RegularExpressions.RegexPrefix
    0403c594   
    8     
    128 System.Text.RegularExpressions.RegexFC
    0402c194   
    8     
    128 Microsoft.Win32.SystemEvents+SystemEventInvokeInfo
    0402aab4   
    4     
    128 Microsoft.Win32.UserPreferenceChangingEventHandler
    79ad0adc   
    3     
    132 System.Reflection.RtFieldInfo
    77eb82ac   
    3     
    132 System.Drawing.Font
    049d5618   
    1     
    132 System.Windows.Forms.Application+ThreadContext
    005ba0e4   
    2     
    136 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper
    Regards,
    Anil

  • Crystal reports gets Hang

    Dear Friends,
    We are using AR invoice ,QTN, Del.Challan prints outs thr' Crystal report.
    When we open it for taking prints ,its gets open but after  that system gets HANG.
    Then up to making END TASK ,it remain as it is.
    IS this problem of Crystal reports , or any solution is there for solve this.?
    Regards.
    Mahesh.

    Check weather the shared folder where the rpt file is kept is reachable
    set the rpt file path correctly
    is it running correctly in server or any other client?
    is it running directly in crystal report?
    Thanks,
    Krish

  • Crystal report close button hangs the application

    Dear All,
    I am working on 2005 B PL 46. we have developed an application to open a particular crystal report when a button is pressed in AR Invoice form. this works fine and the data is loaded properly. The problem is, when I close this report, this hangs the entire application and I have to kill the exe from the task manager then only I can go back to SAP. (one of the oldest problem we encountered with crystal report-SDK). this does not happen always. it does close the report 5 times out of 10 without hanging the application.one more thing is, if I debug the application with pressing F11, it never hangs the application and woks fine.
    The report is getting loaded in the Crystalreport Viewer control dragged on a windows form. any one has any idea? I have tried this on 2007 B version PL 08 and the same problem persists with lesser frequency.
    Thanks,
    Binita

    Yes Vasu. and on form close event of that windows's form, I am writing :
    System.Windows.Forms.Application.ExitThread()
    any idea?
    thanks,
    Binita

  • Randomly hang in Crystal Reports for Visual Studio 2005

    after a certain number of prints  (PrintMyDoc) the application hangs on the line of code shown below
    the void is PrintMyDoc
    private ConnectionInfo CreateConnectionInfo(string User, string Password, string Server, string Database)
                ConnectionInfo objConn = new ConnectionInfo();
                objConn.UserID = User;
                objConn.Password = Password;
                objConn.ServerName = Server;
                objConn.DatabaseName = Database;
                return objConn;
    private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
                try
                    CrystalDecisions.CrystalReports.Engine.Database db = reportDocument.Database; // HUNGS HERE !!!!                CrystalDecisions.CrystalReports.Engine.Tables tables = db.Tables;
                    foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
                        TableLogOnInfo tblInfo = new TableLogOnInfo();
                        tblInfo.ConnectionInfo = connectionInfo;
                        table.ApplyLogOnInfo(tblInfo);
                    foreach (CrystalDecisions.CrystalReports.Engine.ReportDocument subrep in reportDocument.Subreports)
                        foreach (CrystalDecisions.CrystalReports.Engine.Table table in subrep.Database.Tables)
                            TableLogOnInfo tblInfo = new TableLogOnInfo();
                            tblInfo.ConnectionInfo = connectionInfo;
                            table.ApplyLogOnInfo(tblInfo);
                catch (Exception ex)
                    MessageBox.Show(ex.Message); 
    the objects are disposed as shown in the lines here below.
            protected override  void Dispose(bool disposing)
                try
                    if (!(crystalReportViewer.ReportSource == null))
                        ((IDisposable)(crystalReportViewer.ReportSource)).Dispose();
                        crystalReportViewer.ReportSource = null;
                    try
                        objReport.Close();
                        objReport.Dispose();
                        objReport = null;
                    catch (Exception)
                    crystalReportViewer.Dispose();
                    crystalReportViewer = null;
                catch
                if (disposing && (components != null))
                            components.Dispose();
                base.Dispose(disposing);
    public void PrintMyDoc()
                SqlConnection conn = OpenConnection();
                if (conn != null)
                    if (System.IO.File.Exists(reportName))
                        ReportDocument myReport = new ReportDocument();
                        myReport.FileName = reportName;
                        myReport.PrintOptions.PrinterName = Stampante;
                        ConnectionInfo objConn = CreateConnectionInfo (Utente, Password, conn.DataSource, conn.Database);
                        SetDBLogonForReport(objConn, myReport); // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
                        this.crystalReportViewer.SelectionFormula = SelectionFormula;
                        if (Preview)
                            this.crystalReportViewer.ReportSource = myReport;
                            this.crystalReportViewer.RefreshReport();
                        else
                            myReport.RecordSelectionFormula = SelectionFormula;
                            myReport.Refresh();
                            myReport.PrintToPrinter(Numcopie , false, 0, 0);
                            objReport = myReport;
                            myReport = null;
                            this.Close();
                        conn.Dispose();
                else
                    MessageBox.Show("Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
    Hope someone can help me asap
    thanks

    How did you come to the conclusion that it is a problem with the UFL? If it is a problem with the UFL then there is little that we can do to troubleshoot it because the UFL is developed outside of Crystal. The code can do anything. You'd need to follow up with the person who wrote the UFL.
    If you are still unsure of the cause, then I suggest you start testing with other reports. Use ones with no database connection as a control group, then use reports that DON'T include the UFL.
    After that, you could capture a stack dump of your application and look at the results. See if you can find where a problem library file is. One thing to note, we won't look at your stack dump here. That is beyond the help we offer on forums.
    You could also look at restructuring the portion of your application that handles Crystal Reports. Instead of calling Crystal within your application, you could spawn a new process that does your reporting then shuts down. It will help to isolate the reporting to its own application space that is only run when a report is requested. It doesn't sound like reporting is a large portion of this application if you run 20 reports a day and it runs for 10 hours straight.

  • Help ! Crystal Reports 2008 for Visual Studio Hangs

    I am using CR 2008 in VS 2008. When I try to set a data source in a crystal reports viewer the first time it hangs. This only occurs on the very first viewer that gets set. Once the first one works, I never have a problem again.
    This has been a problem through a number of CR releases. It is not a new issue.
    Thanks.

    And like all other releases the delay is due to the first time your app loads CR runtime is takes time do so, all programs do this. CR simply doesn't load in your memory space until it's called.
    Load a dummy report on the Main Form when your app is loading then close the dummy report, it will add additional time to load your main app but it appears then CR loads the reports quickly.
    No way around this. Also, make sure your reports have the Verify Database on first load or any of the Verify options, CR will try to connect to the DB and verify which can also take time.
    Don

  • Crystal Reports Causes Application to Hang in crpe32.dll When Viewing Report

    All,
    We have a C# Winform Application that uses Crystal Reports 13.0.9.  In production, our application is intermittently hanging. The crash dump analysis indicates that a Crystal Reports assembly is causing blocked threads (i.e. deadlock).  The results of crash dump analysis from two different workstations and diagnostic information about one of the affected machines is included below.
    When this error occurs, the users are simply trying to view the report.  The database is SQL Server 2012 Express but, the report does not pull data from the database.  Rather, data is pushed to the report via DataSet and Adapter.  The Crystal Runtime is physically installed on the machine (i.e. they are not using a report server).  Unfortunately, our QA and development teams are unable to reproduce this issue in their respective environments.  We have many other users of this application and version of Crystal Reports.  And, this seems to be the only isolated case where the application hangs on the Crystal DLLs.
    Can someone please provide advice and/or feedback on how to interpret and/or further analyze the information in the dump analysis for troubleshooting purposes.  I apologize for putting the dump analysis and diagnostic information in a code block but, it was the only way I could post the information without errors.
    Debug Diagnostic Tool (Dump Analysis)
        Detected a serious critical section related problem in PureService_MINI.dmp
        Lock at crpe32+76f158 is Uninitialized
        Impact analysis
        10.00% of threads blocked
        (Threads 9)
        The following functions are involved in the root cause
        crpe32+13e84
        The following modules are involved in the root cause
        C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crpe32.dll
        The following vendors were identified for follow up based on root cause analysis
        Unknown vendor for module C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crpe32.dll
        Please follow up with the vendors identified above
            Report for PureService_MINI.dmp
            Type of Analysis Performed   Hang Analysis
            Machine Name   ADMIN-LSM
            Operating System   Unexpected 
            Number Of Processors   4
            Process ID   3880
            Process Image   C:\Scribble\MarinaOffice.NET\PureService.exe
            System Up-Time   00:00:00
            Process Up-Time   01:03:31
        Top 5 Threads by CPU time
        Note - Times include both user mode and kernel mode for each thread Thread ID: 0     Total CPU Time:
            00:00:31.296 Entry Point for Thread: 0x00000000
            Thread ID: 2     Total CPU Time: 00:00:00.077 Entry Point for Thread: 0x00000000
            Thread ID: 7     Total CPU Time: 00:00:00.015 Entry Point for Thread: 0x00000000
            Thread ID: 5     Total CPU Time: 00:00:00.015 Entry Point for Thread: 0x00000000
            Thread ID: 4     Total CPU Time: 00:00:00.015 Entry Point for Thread: 0x00000000
        NET Analysis Report
              CLR Information
        .NET Threads Summary
        CLR Information
        CLR version = 4.0.30319.34014
        CLR Debugger Extension = C:\Program Files\DebugDiag\x86Support\Exts\psscor4.dll
            .NET Threads Summary
            Failed to request ThreadStore
            Locked critical section report
            Critical Section    crpe32+76f158 
            Lock State   Uninitialized
            Lock Count   1
            Recursion Count   1
            Entry Count   0
            Contention Count   0
            Spin Count   33556432
            Owner Thread System ID   7988 (not present in dump)
        Thread report
            Thread 0 - System ID 7988
            Entry point   0x00000000
            Create time   10/8/2014 2:33:00 PM
            Time spent in user mode   0 Days 00:00:24.687
            Time spent in kernel mode   0 Days 00:00:06.609
        This thread is not fully resolved and may or may not be a problem. Further analysis of these threads may be required.
        .NET Call Stack
        Function
            System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
            System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
            System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
        Full Call Stack
        Function   Source
        ntdll!NtWaitForSingleObject+c
        KERNELBASE!WaitForSingleObjectEx+99
        KERNELBASE!WaitForSingleObject+12
        dtsagent+3376d   
        sacommlayer+965c   
        clientdoc+31995   
        clientdoc+10961   
        clientdoc+10b14   
        clientdoc+27b07   
        clr!JIT_MonExitWorker+a
        0x03eb1310   
        0x09146f40   
        0x114496b4   
        0x114bf320   
        Back to Top
        Thread 1 - System ID 4672
        Entry point   0x00000000
        Create time   10/8/2014 2:33:00 PM
        Time spent in user mode 0 Days 00:00:00.00
        Time spent in kernel mode   0 Days 00:00:00.00
        Function   Source
        ntdll!NtWaitForMultipleObjects+c
        KERNELBASE!WaitForMultipleObjectsEx+dc
        clr!DebuggerRCThread::MainLoop+98
        clr!DebuggerRCThread::ThreadProc+cb
        clr!DebuggerRCThread::ThreadProcStatic+b9
        kernel32!BaseThreadInitThunk+e
        ntdll!__RtlUserThreadStart+20
        ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 2 - System ID 7832
        Entry point   0x00000000
        Create time   10/8/2014 2:33:00 PM
        Time spent in user mode 0 Days 00:00:00.062
        Time spent in kernel mode   0 Days 00:00:00.015
        .NET Call Stack
        Function
        Full Call Stack
        Function   Source
        ntdll!NtWaitForMultipleObjects+c
        KERNELBASE!WaitForMultipleObjectsEx+dc
        clr!WKS::WaitForFinalizerEvent+be
        clr!WKS::GCHeap::FinalizerThreadWorker+6e
        clr!ManagedThreadBase_DispatchInner+67
        clr!ManagedThreadBase_DispatchMiddle+82
        clr!ManagedThreadBase_DispatchOuter+5b
        clr!WKS::GCHeap::FinalizerThreadStart+198
        clr!Thread::intermediateThreadProc+4d
        kernel32!BaseThreadInitThunk+e
        ntdll!__RtlUserThreadStart+20
        ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 3 - System ID 4668
        Entry point   0x00000000
        Create time   10/8/2014 2:33:01 PM
        Time spent in user mode 0 Days 00:00:00.00
        Time spent in kernel mode   0 Days 00:00:00.00
        .NET Call Stack
        Function
        Full Call Stack
        Function   Source
        ntdll!NtDelayExecution+c
        KERNELBASE!SleepEx+8a
        clr!ThreadpoolMgr::TimerThreadFire+3e
        clr!ThreadpoolMgr::TimerThreadStart+6b
        kernel32!BaseThreadInitThunk+e
        ntdll!__RtlUserThreadStart+20
        ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 4 - System ID 4020
        Entry point   0x00000000
        Create time   10/8/2014 2:33:01 PM
        Time spent in user mode 0 Days 00:00:00.015
        Time spent in kernel mode   0 Days 00:00:00.00
        Function   Source
        ntdll!NtRemoveIoCompletion+c
        KERNELBASE!GetQueuedCompletionStatus+44
        System_Data!SNIAsyncWait+71
        kernel32!BaseThreadInitThunk+e
        ntdll!__RtlUserThreadStart+20
        ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 5 - System ID 7308
        Entry point   0x00000000
        Create time   10/8/2014 2:33:01 PM
        Time spent in user mode 0 Days 00:00:00.00
        Time spent in kernel mode   0 Days 00:00:00.015
        Function   Source
        ntdll!NtWaitForMultipleObjects+c
        KERNELBASE!WaitForMultipleObjectsEx+dc
        user32!MsgWaitForMultipleObjectsEx+159
        user32!MsgWaitForMultipleObjects+1f
        GdiPlus!BackgroundThreadProc+4b
        GdiPlus!DllRefCountSafeThreadThunk+10
        kernel32!BaseThreadInitThunk+e
        ntdll!__RtlUserThreadStart+20
        ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 6 - System ID 1988
        Entry point   0x00000000
        Create time   10/8/2014 3:28:20 PM
        Time spent in user mode 0 Days 00:00:00.00
        Time spent in kernel mode   0 Days 00:00:00.00
        This thread is not fully resolved and may or may not be a problem. Further analysis of these threads may be required.
        Function   Source
        user32!NtUserGetMessage+c
        user32!GetMessageW+2a
        mfc80u!AfxInternalPumpMessage+18 f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 153 + f
        mfc80u!CWinThread::Run+54 f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 625 + 7
        mfc80u!_AfxThreadEntry+10c f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 126
        msvcr80+29bb   
        msvcr80+2a47   
        ntdll!__RtlUserThreadStart+20
        ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 7 - System ID 7596
        Entry point   0x00000000
        Create time   10/8/2014 3:28:20 PM
        Time spent in user mode 0 Days 00:00:00.015
        Time spent in kernel mode   0 Days 00:00:00.00
        This thread is not fully resolved and may or may not be a problem. Further analysis of these threads may be required.
        Function   Source
        user32!NtUserGetMessage+c
        user32!GetMessageW+2a
        mfc80u!AfxInternalPumpMessage+18 f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 153 + f
        mfc80u!CWinThread::Run+54 f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 625 + 7
        mfc80u!_AfxThreadEntry+10c f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 126
        msvcr80+29bb   
        msvcr80+2a47   
        ntdll!__RtlUserThreadStart+20
        ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 8 - System ID 2880
        Entry point   0x00000000
        Create time   10/8/2014 3:28:20 PM
        Time spent in user mode 0 Days 00:00:00.00
        Time spent in kernel mode   0 Days 00:00:00.00
        This thread is not fully resolved and may or may not be a problem. Further analysis of these threads may be required.
        Function   Source
        user32!NtUserGetMessage+c
        user32!GetMessageW+2a
        mfc80u!AfxInternalPumpMessage+18 f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 153 + f
        mfc80u!CWinThread::Run+54 f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 625 + 7
        mfc80u!_AfxThreadEntry+10c f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 126
        msvcr80+29bb   
        msvcr80+2a47   
        ntdll!__RtlUserThreadStart+20
        ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 9 - System ID 8072
        Entry point   0x00000000
        Create time   10/8/2014 3:28:20 PM
        Time spent in user mode 0 Days 00:00:00.00
        Time spent in kernel mode   0 Days 00:00:00.00
        This thread is not fully resolved and may or may not be a problem. Further analysis of these threads may be required.
        Function   Source
        ntdll!NtWaitForSingleObject+c
        ntdll!RtlpWaitOnCriticalSection+d0
        ntdll!RtlpEnterCriticalSectionContended+a0
        ntdll!RtlEnterCriticalSection+42
        crpe32+13e84   
        crpe32+13ec5
        Crash Dump Analysis (Workstation 2)
        WARNING - DebugDiag was unable to locate debug symbols for crpe32.dll, so the information below may be incomplete.
        Detected possible blocking or leaked critical section at crpe32!MWCleanupProcess+3b3998 owned by thread 0 in PureService.dmp
        Impact of this lock
        9.09% of threads blocked
        (Threads 9)
        The following functions are trying to enter this critical section
        crpe32!Ordinal995+13e84
        The following module(s) are involved with this critical section
        C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crpe32.dll from SAP BusinessObjects
        The following vendors were identified for follow up based on root cause analysis
        SAP BusinessObjects
        Please follow up with the vendors identified above
        Report for PureService.dmp
            Type of Analysis Performed   Hang Analysis
            Machine Name   ADMIN-LSM
            Operating System   Unexpected 
            Number Of Processors   4
            Process ID   3880
            Process Image   C:\Scribble\MarinaOffice.NET\PureService.exe
            System Up-Time   1 day(s) 04:57:28
            Process Up-Time   01:03:06
        Top 5 Threads by CPU time
            Note - Times include both user mode and kernel mode for each thread Thread ID: 0     Total CPU Time: 00:00:31.296 Entry Point for Thread: 0x00000000
            Thread ID: 2     Total CPU Time: 00:00:00.077 Entry Point for Thread: 0x00000000
            Thread ID: 7     Total CPU Time: 00:00:00.015 Entry Point for Thread: 0x00000000
            Thread ID: 5     Total CPU Time: 00:00:00.015 Entry Point for Thread: 0x00000000
            Thread ID: 4     Total CPU Time: 00:00:00.015 Entry Point for Thread: 0x00000000
        .NET Analysis Report
        CLR Information
        .NET Threads Summary
        CLR Information
        CLR version = 4.0.30319.34014
        CLR Debugger Extension = C:\Program Files\DebugDiag\x86Support\Exts\psscor4.dll
        .NET Threads Summary
            Failed to request ThreadStore
            Locked critical section report
            Critical Section    crpe32!MWCleanupProcess+3b3998 
            Lock State   Locked
            Lock Count   1
            Recursion Count   1
            Entry Count   0
            Contention Count   1
            Spin Count   33556432
            Owner Thread   0
            Owner Thread System ID   7988
        Thread report
        Thread 0 - System ID 7988
            Entry point   0x00000000
            Create time   10/8/2014 2:33:00 PM
            Time spent in user mode   0 Days 00:00:24.687
            Time spent in kernel mode   0 Days 00:00:06.609
        This thread is not fully resolved and may or may not be a problem. Further analysis of these threads may be required.
        .NET Call Stack
        Function
            CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(System.Object ByRef, Int32)
            CrystalDecisions.CrystalReports.Engine.CRPE.PEOpenEngineEx(CrystalDecisions.CrystalReports.Engine.PEEngineOptions ByRef)
            System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
            System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
            System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
        Full Call Stack
        Function   Source
            ntdll!NtWaitForSingleObject+c
            KERNELBASE!WaitForSingleObjectEx+99
            KERNELBASE!WaitForSingleObject+12
            dtsagent+3376d
            sacommlayer!DllGetClassObject+16dc
            clientdoc!DllGetClassObject+2b26b
            clientdoc!DllGetClassObject+a237
            clientdoc!DllGetClassObject+a3ea
            clientdoc!DllGetClassObject+213dd
            clr!JIT_MonExitWorker+a
            0x03eb1310
            0x09146f40
            0x114496b4
            0x114bf320
        Back to Top
        Thread 1 - System ID 4672
            Entry point   0x00000000
            Create time   10/8/2014 2:33:00 PM
            Time spent in user mode   0 Days 00:00:00.00
            Time spent in kernel mode   0 Days 00:00:00.00
        Function   Source
            ntdll!NtWaitForMultipleObjects+c
            KERNELBASE!WaitForMultipleObjectsEx+dc
            clr!DebuggerRCThread::MainLoop+98
            clr!DebuggerRCThread::ThreadProc+cb
            clr!DebuggerRCThread::ThreadProcStatic+b9
            kernel32!BaseThreadInitThunk+e
            ntdll!__RtlUserThreadStart+20
            ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 2 - System ID 7832
            Entry point   0x00000000
            Create time   10/8/2014 2:33:00 PM
            Time spent in user mode   0 Days 00:00:00.062
            Time spent in kernel mode   0 Days 00:00:00.015
        .NET Call Stack
        Function
        Full Call Stack
        Function   Source
            ntdll!NtWaitForMultipleObjects+c
            KERNELBASE!WaitForMultipleObjectsEx+dc
            clr!WKS::WaitForFinalizerEvent+be
            clr!WKS::GCHeap::FinalizerThreadWorker+6e
            clr!ManagedThreadBase_DispatchInner+67
            clr!ManagedThreadBase_DispatchMiddle+82
            clr!ManagedThreadBase_DispatchOuter+5b
            clr!WKS::GCHeap::FinalizerThreadStart+198
            clr!Thread::intermediateThreadProc+4d
            kernel32!BaseThreadInitThunk+e
            ntdll!__RtlUserThreadStart+20
            ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 3 - System ID 4668
            Entry point   0x00000000
            Create time   10/8/2014 2:33:01 PM
            Time spent in user mode   0 Days 00:00:00.00
            Time spent in kernel mode   0 Days 00:00:00.00
        .NET Call Stack
        Function
        Full Call Stack
        Function   Source
            ntdll!NtDelayExecution+c
            KERNELBASE!SleepEx+8a
            clr!ThreadpoolMgr::TimerThreadFire+3e
            clr!ThreadpoolMgr::TimerThreadStart+6b
            kernel32!BaseThreadInitThunk+e
            ntdll!__RtlUserThreadStart+20
            ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 4 - System ID 4020
            Entry point   0x00000000
            Create time   10/8/2014 2:33:01 PM
            Time spent in user mode   0 Days 00:00:00.015
            Time spent in kernel mode   0 Days 00:00:00.00
        Function   Source
            ntdll!NtRemoveIoCompletion+c
            KERNELBASE!GetQueuedCompletionStatus+44
            System_Data!SNIAsyncWait+71
            kernel32!BaseThreadInitThunk+e
            ntdll!__RtlUserThreadStart+20
            ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 5 - System ID 7308
            Entry point   0x00000000
            Create time   10/8/2014 2:33:01 PM
            Time spent in user mode   0 Days 00:00:00.00
            Time spent in kernel mode   0 Days 00:00:00.015
        Function   Source
            ntdll!NtWaitForMultipleObjects+c
            KERNELBASE!WaitForMultipleObjectsEx+dc
            user32!MsgWaitForMultipleObjectsEx+159
            user32!MsgWaitForMultipleObjects+1f
            GdiPlus!BackgroundThreadProc+4b
            GdiPlus!DllRefCountSafeThreadThunk+10
            kernel32!BaseThreadInitThunk+e
            ntdll!__RtlUserThreadStart+20
            ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 6 - System ID 1988
            Entry point   0x00000000
            Create time   10/8/2014 3:28:20 PM
            Time spent in user mode   0 Days 00:00:00.00
            Time spent in kernel mode   0 Days 00:00:00.00
        Function   Source
            user32!NtUserGetMessage+c
            user32!GetMessageW+2a
            mfc80u!AfxInternalPumpMessage+18 f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 153 + f
            mfc80u!CWinThread::Run+54 f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 625 + 7
            mfc80u!_AfxThreadEntry+10c f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 126
            msvcr80!_callthreadstartex+1b f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c @ 348 + 6
            msvcr80!_threadstartex+66 f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c @ 326 + 5
            kernel32!BaseThreadInitThunk+e
            ntdll!__RtlUserThreadStart+20
            ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 7 - System ID 7596
            Entry point   0x00000000
            Create time   10/8/2014 3:28:20 PM
            Time spent in user mode   0 Days 00:00:00.015
            Time spent in kernel mode   0 Days 00:00:00.00
        Function   Source
            user32!NtUserGetMessage+c
            user32!GetMessageW+2a
            mfc80u!AfxInternalPumpMessage+18 f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 153 + f
            mfc80u!CWinThread::Run+54 f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 625 + 7
            mfc80u!_AfxThreadEntry+10c f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 126
            msvcr80!_callthreadstartex+1b f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c @ 348 + 6
            msvcr80!_threadstartex+66 f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c @ 326 + 5
            kernel32!BaseThreadInitThunk+e
            ntdll!__RtlUserThreadStart+20
            ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 8 - System ID 2880
            Entry point   0x00000000
            Create time   10/8/2014 3:28:20 PM
            Time spent in user mode   0 Days 00:00:00.00
            Time spent in kernel mode   0 Days 00:00:00.00
        Function   Source
            user32!NtUserGetMessage+c
            user32!GetMessageW+2a
            mfc80u!AfxInternalPumpMessage+18 f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 153 + f
            mfc80u!CWinThread::Run+54 f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 625 + 7
            mfc80u!_AfxThreadEntry+10c f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 126
            msvcr80!_callthreadstartex+1b f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c @ 348 + 6
            msvcr80!_threadstartex+66 f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c @ 326 + 5
            kernel32!BaseThreadInitThunk+e
            ntdll!__RtlUserThreadStart+20
            ntdll!_RtlUserThreadStart+1b
        Back to Top
        Thread 9 - System ID 8072
            Entry point   0x00000000
            Create time   10/8/2014 3:28:20 PM
            Time spent in user mode   0 Days 00:00:00.00
            Time spent in kernel mode   0 Days 00:00:00.00
        This thread is not fully resolved and may or may not be a problem. Further analysis of these threads may be required.
        Function   Source
            ntdll!NtWaitForSingleObject+c
            ntdll!RtlpWaitOnCriticalSection+d0
            ntdll!RtlpEnterCriticalSectionContended+a0
            ntdll!RtlEnterCriticalSection+42
            crpe32!Ordinal995+13e84
            crpe32!Ordinal995+13ec5
        Back to Top
        Thread 10 - System ID 4756
            Entry point   0x00000000
            Create time   10/8/2014 3:36:03 PM
            Time spent in user mode   0 Days 00:00:00.00
            Time spent in kernel mode   0 Days 00:00:00.00
        .NET Call Stack
        Function
        Full Call Stack
        Function   Source
            ntdll!NtWaitForSingleObject+c
            KERNELBASE!WaitForSingleObjectEx+99
            clr!CLRSemaphore::Wait+bf
            clr!ThreadpoolMgr::UnfairSemaphore::Wait+12f
            clr!ThreadpoolMgr::WorkerThreadStart+309
            clr!Thread::intermediateThreadProc+4d
            kernel32!BaseThreadInitThunk+e
            ntdll!__RtlUserThreadStart+20
            ntdll!_RtlUserThreadStart+1b
        System Diagnostic Information
            [System Summary]
            Item Value
            OS Name Microsoft Windows 7 Professional x64
            OS Version 6.1 Service Pack 1 (Build 7601)
            System Name RENTAL
            System Model OptiPlex 760
            System Manufacturer Dell Inc.
            Processor Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz
            BIOS Version DELL   - 15
            IP 192.168.234.4
            Windows Directory C:\Windows
            System Directory C:\Windows\system32
            Locale United States
            User Name Rentals
            Time Zone Central Standard Time
            Total Physical Memory 3933 MB
            Available Physical Memory 1100 MB
            Serial number H2RN5J1
            MAC address 00-23-AE-8D-BD-AD

    Hi Aaaron
    This will be one of those; "works here, not there, what's the diff?". E.g.;
    OS?
    Load?
    Runtime - CR, DB clinet, VC++ and other.
    Printer drivers(?)
    If this is a 32 bit app, use the Modules utility to compare the runtime on a working computer and one that does not work. When doing the comparisons, look at the CR runtime, the db runtime, the VC++ runtime and any other runtime differences.
    Since you are using MS SQL 2012, ensure that the SQL Native 11 client is installed.
    Re. printer drivers, check to see that you are using the latest updates for what ever printer is default or used by the reports. Also, make sure the printer driver is designed for the OS.
    Oh. One more thing. You can attach files here; just click on the "Use advanced editor" link. You will have to rename the file to .txt, then attach. Just sayin - that way you don't have to copy paste
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter
    Message was edited by: Ludek Uher

  • Crystal Report XI R2 cause IIS to hang while calling ReportDocument.Close()

    Dear Concern,
    We are using Visual Studio 2008 (.Net framework 3.5) to develop ERP Web portal for our company. Crystal Report XI R2 has been used here for generating customized report.
    I have written a CrystalReport utility to do all type of logon, parameter pass stuffs with the report. The utility itself implements IDisposable and following is my code at the Dispose method:
    public override void Dispose()
    _crReportDocument.Close();
    _crReportDocument.Dispose();
    But when my code reaches _crReportDocument.Close() then the IIS/ W3C hangs. I have waited for long time to the process to be finished but it never.
    I also tried to move the code from my utility and directly close the report object from caller form but failed.
    Can anyone please give me any suggestions regarding this issue? Is there anything wrong with this?
    N.B. I have succeeded with Crystal Report X by using the same procedure.
    Thank You.

    Dear Adam,
    Thanks.
    The problem resolved after I have installed CR XI R2 Service Pack 4. Crystal Report 2008 of course is a better solution but I have to wait a bit for procurement.
    Warm Regards,
    Sultan

  • Crystal Viewer report hangs

    Hello,
    I am having a problem deploying a Crystal report to run under IIS/aspx using the CrystalReportViewer.
    I rdp to the windows 2008 server, start crystal reports and the report works under Crystal on the server fine.
    Running the same crystal report on the same server using IIS/aspx and the viewer has a problem. I load the aspx page, the viewer shows a prompt with server name, database name, user name and password information. The details are all right, I enter the password and I just get the message 'Please wait while the document is being processed' that just stays there indefinitely. Everything is on the same server except the SQL Server and database. Crystal Reports and ODBC reach SQL Server fine and Crystal shows the report from the server, but the viewer just hangs.
    I have done this on two other customer servers and the above worked fine - the crystal report showed in the viewer. There is something different on this server that I cannot figure out.
    I stripped down the report to a single table and a few fields u2013 no multiple tables, joins, sub-reports, created a very simple report to try and isolate the problem. I also removed all the VB code behind u2013 pretty well just load the report and display.
    I loaded the CRRuntime_32bit_13_0_2 on the server, created an IIS application, copied over the report and aspx/code behind and tested.
    the web config has the Version=13.0.2000.0 assemblies.
    Any help resolving this issue would be appreciated. I have looked at 100s of google posts, most very similar, but none have helped get this report going.
    Thanks Nick

    Hello,
    I took a step back to basics.
    I copied one of the sample projects and made the changes needed to get it working properly.
    crsdk_net_samples_12_0_\Reduced_Code_Tutorials\ReducedCode_DBLogon\CS_Web_ReducedCode_DBLogon\CS_Web_ReducedCode_DBLogon.
    The report appeared properly in the browser now - no hanging after entering login inforamtion.
    I tested with the client 10 and native SQL Server drivers and both worked fine.
    I thought great problem solved, but when went back to version using some code behind same problem. I checked the aspx and made it identical to the one that works. So the aspx, IIS app, Crystal report, everything else is identical. The only difference is the cod behind.
    **** Using this works
    <Report FileName="C:\inetpub\wwwroot\CrystalReports\Transcript_ReportV3.rpt">
    **** replace with codebehind creates hang
            Response.Write("Report Path = " & Server.MapPath("Transcript_ReportV3.rpt") & "</BR>")
            Test1.Load(Server.MapPath("Transcript_ReportV3.rpt"))
            With CrystalReportViewer
                .ReportSource = Test1
            End With
    The full code used is below.
    Getting closer but still not there yet.
    Any other ideas appreciated.
    Thanks Nick
    '************ *This works - report shows in browser*
    <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Test-cl10-dynamic.aspx.cs" Inherits="_Default" %>
    <%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
        Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title></title>
        <link href="/aspnet_client/System_Web/2_0_50701/CrystalReportWebFormViewer3/css/default.css"
            rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True"
                Height="1039px" ReportSourceID="CrystalReportSource1" Width="901px" />
            <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
                <Report FileName="C:\inetpub\wwwroot\CrystalReports\Transcript_ReportV3.rpt">
                </Report>
            </CR:CrystalReportSource>
        </div>
        </form>
    </body>
    </html>
    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    public partial class _Default : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)
    '************ *This does not work - report hangs after entring authenticaion information*<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Test1-dynamic.aspx.vb" Inherits="Test1" %>
    <%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        <title></title>
        <link href="/aspnet_client/System_Web/2_0_50701/CrystalReportWebFormViewer3/css/default.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        <asp:Label id="MyText" runat="server" />
        <CR:CrystalReportViewer ID="CrystalReportViewer" runat="server" AutoDataBind="True" Height="1039px" Width="901px" />
        </div>
        </form>
    </body>
    </html>
    Partial Class Test1
        Inherits System.Web.UI.Page
        Dim Test1 As New CrystalDecisions.CrystalReports.Engine.ReportDocument
        Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
            Response.Write("Report Path = " & Server.MapPath("Transcript_ReportV3.rpt") & "</BR>")
            Test1.Load(Server.MapPath("Transcript_ReportV3.rpt"))
            With CrystalReportViewer
                .ReportSource = Test1
            End With
        End Sub
    End Class
    Edited by: Don Williams on Jan 27, 2012 9:17 AM

Maybe you are looking for

  • How can I see previously stored tunes no longer on my computer? Where are iCloud audio files?

    Maybe my question has an answer too "obvious" for me to see it.  But lately I've become aware of tunes that, for one reason or another, are not showing in my iMac's iTunes program. I went to System Preferences and clicked on "iCloud."  Immediately, I

  • Purchase Order line items deleted after coying from PO in GRPO

    Hi All, Does anyone here experienced this problem? The user reported that after adding the GRPO that generated by copying from PO, they found out that the line items in PO has been deleted? We're trying to reproduce this problem but we're unable to r

  • Avi files in Quicktime and finder

    My machine (finder & Quicktime Pro 7) no longer recognises any of my avi files. I recently made system updates to Safari(3.1.1) and Quicktime (7.4.5), plus the usual automatic security updates, but I can't say for sure when the problem occurred withi

  • Skype crashes ,,,

    Hi, i'm having a problem with skype suddenly it doesn't work any more every time i open it it gives a message like " Skype quit unexpectedly " i have a macbook pro i tried to delete it and upload it again but it says the same thing , so what's the pr

  • Manual price change on Sales Order line

    Hi everyone, Say I have a product A and have entered this in the price list Product A = USD 100 per unit. I create the order and process the order, do ship confirm, but at the time of creating the invoice, I want to change the price to 97. or 95 or w