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 .

Similar Messages

  • Deploying Crystal Reports with IIS - Load Report Failed

    Post Author: jeremyrarextreme
    CA Forum: Deployment
    Hi
    We have installed Crystal Reports Developer XI release 2 with Visual Studio 2005 to implement a very simple app that allows a crystal report to be loaded via the web. This works perfectly fine when I publish my build from Visual Studio 2005 (using the built in cystal controls) and go view in browser.
    Everything looks fine when I run the app from Visual Studio by clicking view in browser - the crystal report loads and everything is how it should be.
    When I publish the build on our production server (a Windows 2003 server running IIS6) I get the error: Load Report Failed
    A full detailing of this error can be found on this forum post: http://aspadvice.com/blogs/rjdudley/archive/2005/05/18/2591.aspx
    where many other people are having the same issue.
    I have struggled for a very long time to find a solution to this, how do I resolve this issue?
    when I try to view the .net 2.0 project from a browser running through IIS It displays the business objects toolbar but returns the error: Load Report Failed
    When I run this in my development environment directly from Visual Studio 2005 it works perfectly fine and loads the report.
    The report path is perfectly fine and correct, we have permissions on all folders for read, write and execute for both general user / admin accounts and IIS accounts on the Windows 2003 Server.
    We also have full permissions on c:/temp and c:/windows/temp
    What else can I do to make this work!
    Many thanks and awaiting your reply

    Post Author: mikeeby
    CA Forum: Deployment
    Yes I too have been fighting this problem. I was using a XML Data file and schema file for my u201Cdatabase templateu201D in the report. I would then run my query using the .NET SQLClient then fill the report with my dataset table using the SetDataSource method from the ReportDocument object.
    I tried both embedded and runtime loaded reports all worked fine on my development machine but would NOT work on my production server. I use all the server installs, played with user rights, registering DLLu2019s still nothing.  I went as far as creating a winform app to fix the problem. I then had exactly the same problem, I was catching the error and it originated from the viewer control in both winform and webforms.
    What finally worked for me was to attach to the database using OLE DB instead of XML/schema (xml/xsd) datasource then pasting my SQL Query into the database connection command this gave me the fields to build the report. I actually used the u201CSet Database Locationu201D Dialog in Crystal Reports so I didnu2019t have to redesign my report. This dialog works very weird but I managed to figure it out. I then used an embedded report and all seem to be well. I think there is a problem with the Crystal Reports .NET Server Install and Merge Modules used with .NET with XML files, but I cannot be sure, all I know is this worked for me.
    I am concerned that if my database server is moved or renamed my report might break because the server connection is embedded in the report, but for right now it is working. I thought that was the reason for using the xsd file was to eliminate the dependence on a server connection in the report.
    Good luck and I hope this helps you fix your problem too. If it does please let me know I have see so many reports of people asking questions about this problem and it seems like most are left hanging.
    Mike

  • 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 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.

  • 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 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 report 2008中,通过IIS浏览报表,达到一定次数后就会异常,需要重新启动IIS才可以

    我的系统是windows 2003 server + .net framework 3.5 + iis6.0 + cr2008,求助是否有好的解决方法?
    错误信息如下:
    打开报表失败。
    说明: 执行当前Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
    异常详细信息: System.Runtime.InteropServices.COMException: 打开报表失败。
    源错误:
    执行当前Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
    堆栈跟踪:
    [COMException (0x800003e5): 打开报表失败。]
      CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
      CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +95
      CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +356
    [CrystalReportsException: 加载报表失败。]
      CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +419
      CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +895
      CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +84
      BenQGuru.eHR.PresentationLayer.ReportViewPage2008.Page_Load(Object sender, EventArgs e) +631
      System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
      System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
      System.Web.UI.Control.OnLoad(EventArgs e) +99
      System.Web.UI.Control.LoadRecursive() +50
      System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    Edited by: lulz97 on Sep 7, 2010 3:07 PM

  • 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

  • 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.

Maybe you are looking for