Crystal Report Causes Application Pool Hang

I have a .Net application deployed to a webserver. The application runs on a dedicated application pool. Crystal Reports XI Release 2 is used to show reports. On a daily basis the application pool becomes hung and needs to be recycled. Upon doing a dump of the hung proccess and analisys of the dump file the following suggestion was shown by the diagnostic tool.
The following threads in w3wp.exe__AppPool #1__PID__28356__Date__05_18_2009__Time_08_42_55AM__711__Manual Dump.dmp are loading C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\win32_x86\secSSO.dll using the API LoadLibrary. The call to LoadLibrary originated originated from cxlibw_3_1!CXLib301::CSharedLibrary::LoadLibraryHelper+2c
( 11 )
1.01% of threads blocked
Constant calls to LoadLibrary and FreeLibrary can have a serious impact on application performance since the Windows NT Loader takes a global lock while performing this operation causing serialization.
Please follow up with vendor Business Objects for problem resolution concerning the following file: C:\WINDOWS\system32\cxlibw-3-1.dll.
Please advise.

C:\WINDOWS\system32\cxlibw-3-1.dll.
renaming this dll caused crystal reports to no longer work.
it gave this error:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/4/2009 3:54:07 PM
Event time (UTC): 6/4/2009 7:54:07 PM
Event ID: 6d844a67745642d295a09ad0d69b8976
Event sequence: 897
Event occurrence: 11
Event detail code: 0
Application information:
    Application domain: /LM/W3SVC/1/Root/ICE-8-128886022277968070
    Trust level: Full
    Application Virtual Path: /ICE
    Application Path: C:\Inetpub\wwwroot\ICE\
    Machine name: FOXMETA1
Process information:
    Process ID: 13944
    Process name: w3wp.exe
    Account name: FROF\foxservice
Exception information:
    Exception type: COMException
    Exception message: Creating an instance of the COM component with CLSID {7487987A-DED9-4D16-A5C0-EB6AB3653411} from the IClassFactory failed due to the following error: 80040154.
Request information:
    Request URL: http://foxmeta1/ICE/ReportViewer.aspx?ReportName=Request&RequestID=129262
    Request path: /ICE/ReportViewer.aspx
    User host address: 10.11.3.88
    User: FROF\smoldovanskiy
    Is authenticated: True
    Authentication Type: NTLM
    Thread account name: FROF\foxservice
Thread information:
    Thread ID: 1
    Thread account name: FROF\foxservice
    Is impersonating: True
    Stack trace:    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.CreateRptDoc()
   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper..ctor()
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Initialize()
   at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
   at ICEWebSite.ReportViewer..ctor() in C:\Inetpub\wwwroot\ICE_VSS\FoxRothschild.ICE\ICEWebSite\ReportViewer.aspx.vb:line 18
   at ASP.reportviewer_aspx..ctor()
   at __ASP.FastObjectFactory_app_web_bitpmvry.Create_ASP_reportviewer_aspx()
   at System.Web.Compilation.BuildResultCompiledType.CreateInstance()
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
   at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
It definetly seems that you need that dll to show the report.
There was another dll there called  C:\WINDOWS\system32\cxlib-3-1.dll renaming that one seems to not do anything.

Similar Messages

  • 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

  • Error while running Crystal Reports from application

    Hi,
    I am getting the below error when I try to run Crystal Reports from my application.
    There are no Page Servers connected to the Cache Server or all connected Page Servers are disabled or all connected Page Servers are not part of the specified server group. Please try to reconnect later.
    I am able to preview the reports in CMC and Infoview, but when I try to run the same report via my application the above error pops up.
    Sometimes I get a different error:
    The Page Server you are trying to connect to is not accessible. Please contact your system administrator.
    Looks like some configuration settings are missing/ corrupted.
    I tried to look in a number of websites... tried few workarounds, but none seems to be working.
    Any help is highly appreciated.
    Meena
    Edited by: meenakshitikoo1 on Apr 19, 2011 12:46 PM

    Check the following SAP note
    https://service.sap.com/sap/support/notes/1032461
    Regards,
    Stratos

  • Crystal Reports 13 for VS2013 Hangs when report deployed via Clickonce

    Hi,
    We have upgraded from vs2008 to vs2013 one of our .net C# projects. Project consist of a Server and a windows client. Reports are run in the client, and data transported with disconnected Datasets ( No direct connection to the database ). We use Microsoft clickonce to deploy this application to our users.
    The problem we have is that after the migration clients deployed with clickonce experience a delay of about 1 minute while the report is shown with a message "please wait while the document is processing". However if we run the application directly from the filesystem the report is shown immediately.
    running the clickonce deployed shows the following message using process monitor, however after ~1 minute the report displays correctly.
    6:08:05.5863138 PM
    ECMWin.exe
    18156
    CreateFileMapping
    D:\Users\o\AppData\Local\Temp\2\temp_6a4d2478-2cab-45d5-8e21-af5d5d3a761a {56013444-9297-4F76-A8DE-00A08C289BBF}.rpt
    FILE LOCKED WITH WRITERS
    SyncType: SyncTypeCreateSection, PageProtection:
    Code:
            CrystalReport1 c = new CrystalReport1();
            public Form1()
                InitializeComponent();
                c.Load();
            Stopwatch s = new Stopwatch();
            private void Form1_Load(object sender, EventArgs e)
                if (c.IsLoaded)
                    crystalReportViewer1.ReportSource = c.FileName.Replace("rassdk://", ""); ;
                    Console.WriteLine("crystalReportViewer1.ReportSource = c;:" + s.Elapsed.TotalMilliseconds.ToString());
    * Note:
    1. the report from the code above is empty and has no connections to database.
    2. Using Vs2013
    3. Using SAP Crystal Reports, developer version for Microsoft Visual Studio - Service Pack 9 - Fixed Issues and updates - Busines…

    Hi,
    Finally found the issue:
    Our windows application every 20 minutes ( 1 minute in debug ) check for clickonce updates in an independent thread using CheckForDetailedUpdate method and then it sleeps.
    public void ApplicationUpdateTimerThread()
      int updateInterval = applicationUpdateTimer.Interval = 1200000; // 20 mins
      if (ApplicationDataAccess.IsDebug) { updateInterval = 60000; }
      while (true)
         UpdateCheckInfo updateInfo = appDeployment.CheckForDetailedUpdate();
         Thread.Sleep(updateInterval);
    Doing this was locking the filesystem where now Crystal is putting their temporary report files and therefore preventing file access until the thread was active again ( The reason for the 60 seconds delay )
    So Creating a new thread to only check for update and let it die inmediately fixed the issue.
    public void ApplicationUpdateTimerThread()
      int updateInterval = applicationUpdateTimer.Interval = 1200000; // 20 mins
      if (ApplicationDataAccess.IsDebug) { updateInterval = 60000; }
      while (true)
      System.Threading.Thread t1 = new System.Threading.Thread (delegate()
      { UpdateCheckInfo updateInfo = appDeployment.CheckForDetailedUpdate(); });
      t1.Start();
      Thread.Sleep(updateInterval);

  • Mounted Drives Cause Applications to Hang on Connection Change

    When I change from wired to wireless connection to my network (or vice versa) mounted volumes seem to cause applications using those volumes to hang. This happens when going from wired to wireless, or vice versa, and happens regardless of the path (wired + wireless -> wired; wireless -> nothing -> wireless; wireless -> wired, etc.). Affected applications do not recover until the original connection is restored. Un-mounting all Volumes before switching prevents this problem. This problem causes the Finder to hang if an unmount or browse of a mounted volume is attempted after the switch.
    (All volumes are on the same network on the same workgroup as the affected Mac. Wireless is via an AirPort Express connected to the same router as the Mac.)
    MacBook Pro (15.4"- 2.33GHz - 3 GB - 160 GB)   Mac OS X (10.4.8)   (Macintosh 128k, long ago)

    Well, maybe Windows has a hook to explicitly "turn off" a network interface, which shuts down the TCP connections; and maybe OS X doesn't have this.
    It should be "a long time" (on the order of 10 minutes), not forever.
    I think that unmounting prior to the switch is the only way to prevent this. If there is another way, it probably involves using ifconfig in Terminal to force the old interface down (which might explicitly tell TCP to give up on the old connections).
    Powerbook G4 1GHz   Mac OS X (10.3.9)  

  • Crystal reports 2011 - Application error crw32.exe

    Hi,
    I hope that I'm posting in the right section.
    We use Crystal reports 2011 on one of our servers but are experiencing a number of application errors to do with the software.  Unfortunately I haven't been able to find out if there are any specific activities on the server which are generating them.
    The errors are as follows:
    Faulting application name: crw32.exe, version: 14.0.2.364, time stamp: 0x4de99eaa
    Faulting module name: crw32.exe, version: 14.0.2.364, time stamp: 0x4de99eaa
    Exception code: 0xc0000005
    Fault offset: 0x007010ef
    Faulting process id: 0x3f8
    Faulting application start time: 0x01cf6ea5517923e6
    Faulting application path: C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crw32.exe
    Faulting module path: C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crw32.exe
    Report Id: 954a54f3-da9a-11e3-acdb-3cd92b08a874
    Faulting application name: crw32.exe, version: 14.0.2.364, time stamp: 0x4de99eaa
    Faulting module name: ntdll.dll, version: 6.1.7601.17514, time stamp: 0x4ce7ba58
    Exception code: 0xc0150010
    Fault offset: 0x0008477b
    Faulting process id: 0x3f8
    Faulting application start time: 0x01cf6ea5517923e6
    Faulting application path: C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crw32.exe
    Faulting module path: C:\Windows\SysWOW64\ntdll.dll
    Report Id: 962a1691-da9a-11e3-acdb-3cd92b08a874
    Faulting application name: crw32.exe, version: 14.0.2.364, time stamp: 0x4de99eaa
    Faulting module name: msxml6.dll, version: 6.30.7601.17514, time stamp: 0x4ce7b8eb
    Exception code: 0xc0000005
    Fault offset: 0x00001fa8
    Faulting process id: 0x1c98
    Faulting application start time: 0x01cf6ea75a5019f4
    Faulting application path: C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crw32.exe
    Faulting module path: C:\Windows\System32\msxml6.dll
    Report Id: b100ae23-da9b-11e3-acdb-3cd92b08a874
    If you require any additional information from me please let me know.
    Thanks for reading.
    Regards,
    Don

    Hi Brian,
    Thanks for your help and advise.
    Crystal has been running on the server for some time (over a year) but hasn't been 'managed' until now so am looking at all of the issues at present.
    We haven't seen a pattern when the errors started though.
    Unfortunately the only errors I think relating to CR are the ones in the original post.  There are other errors, particularly to do with printing, but I think that they these are due to the TS sessions which wouldn't run Crystal. See below.
    The print spooler failed to load a plug-in module C:\Windows\system32\spool\DRIVERS\x64\3\tsprint.dll, error code 0xc1. See the event user data for context information.
    I am assuming the users are fine when they view the report then; scrolling through pages.  Yes, I believe so.
    Yes, there are no locally attached printers on the server so the users rely on their remote session sharing the printer.
    Regards,
    Don

  • Crystal Reports Crashing Application

    Post Author: Soumini
    CA Forum: General
    When ever I run Crystal Reports from my application, multiple times, the application crashes. The crash time is very random.Sometimes it is on the very first report. Some times it crashes after I have run the report some 10 times and at other times reports run upto 200 times before it crashes.  It crashes every time for some users at the
    same place in the application. If any one has any ideas please let me know

    Post Author: Argan
    CA Forum: .NET
    He would have to download the latest merge modules for his version of CR (or the ones for CR for .NET 2003 if that is what was used) and build a deployment project using the keycode.  I have not tried deploying it to Vista yet so not sure if there is anything else that needs to be done.  He can seach the kbase for vista issues.

  • How to use the DLL in crystal report (Additional applications)

    Hi,
    i have created a win32 dll, and now i want to use that dll in my crystal report how can i do so?, what i tried is i went to to Addntional functions catagory in formula workshop, and there i can see some dlls listed, similary i put my dll in the same path like "C:\Program Files\Common Files\Crystal Decisions\1.0\Bin" and other folder too. but i am not able to see that dll in "Addtional functions". can you plesase tell how can i achive this.
    Regards,
    Prabhakar J.

    Please re-post if this is still an issue to the .NET Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

  • Editing Crystal Report causes Errors under VS 2005

    Every time a report is modified in a Visual Studio 2005 C# project the following errors appear as a result of the code generated by Crystal Reports:
      "NewGenerator' no suitable method found to override
      "FullResourceName' no suitable method found to override
    Commenting out the two generated methods gets rid of the errors and allows for a successful build.
    Other forum posters have solved this problem by changing the project references to .dlls from a newer Crystal Reports version however I have only one version of Crystal Reports on my system (Version XI Release 2) so the same trick does not work for me.
    Any help would be appreciated.

    Does this happen with new reports added to the project, or just older reports that were already there? It sounds like the DLLs for the code generator aren't matching up to the runtimes being used at compile time. There are a couple of things to try. First, make sure all your project references are a single version, as per AG's post
    Then, try right-clicking on the report in the solution explorer and selecting "Run Custom Tool". That should force the code generator to regenerate the report's code file. (Note - if you have custom stuff in there, back it up first or it will be lost in this process.) Does the report still fail now?
    If it does, try running [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] to see what DLLs are being loaded. It's probable that a wrong one got mixed in somewhere with your machine's history being what it is.
    If you do want to reinstall and try to get your environment in good working order, I'd recommend the following order: uninstall Crystal Reports XIR2, do a repair-install on VS (you could also "change" the install and make sure the bundled CR options are checked prior to this), then install CR XIR2, then install any patches you want to install (latest service pack recommended).

  • TLV Error when using crystal report in application from Terminal Services

    Our accounting software is generating the error:
    Invalid TLV record
    The error is generated from every user except one, for that one user everything works fine.
    i've checked the file permissions on the rpt files as well as the dll, everything is correct and i'm now lost.
    Any ideas on where else to start looking?

    Ah.. I hate when they do that, if you are going to write an application then support it.... At least help figure out why it's failing other than just saying it should work....
    I would get on a call with them and get a Manager involved, someone there should be able to help you...
    In the mean time:
    First easiest way is search for crpe32.dll, there should only be one version and it should match the est of the file versions. Next step will tell you the versions being used.
    OK, download [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip]. what this app will do is list all of the runtime files each user has access to. You can save and then compare the list files between the  one working PC and any other user. Should help determine what is missing or the users profile doesn't have access to or not installed.
    Another option is to use ProfileMonitor from Microsoft, it will list all access issues including the registry keys that all users need to run CR.
    Can you tell me what version you are using?
    Also need to know what version of TS?
    OS it's running on?
    And work station OS?
    One more option, go to this link http://www.sdn.sap.com/irj/scn/advancedsearch?query=boj and search on "invalid tlv" and it will return a bunch of know reasons why you can get that error.
    Thanks
    Don
    Edited by: Don Williams on May 31, 2011 12:52 PM

  • Migrate VB6 Crystal Report 6.0 application to Crystal Report 2013

    I have a VB6 application that includes the Crystl32.ocx from Crystal Report 6.0. Can someone suggest migration details to use Crystal Report 2013.

    Hi Manish,
    The VB6 application was written using RDC COM SDK which was available and supported til CR XI R2.
    From CR 2008 RDC COM SDK has been completely deprecated and is no more supported.
    There is no upgrade or migration path. With CR 2008 onwards only .NET and JAVA SDKs could be used.
    You would have to re-write the code using .NET SDK.
    All the resources for .NET SDK and plenti of sample codes are available, just search through forums.
    Also, CR 2013 does not have any SDK. You could design the reports with CR 2013 and use
    SAP Crystal Reports for Visual Studio (which works with VS 2010, 2012, 2013) to develop your applications.
    Here are few helpful articles
    http://scn.sap.com/community/crystal-reports-for-visual-studio/blog/2013/06/28/how-do-you-spell-confussion-cr-for-vs-crystal-2011-bi-4x-and-the-net-sdks
    http://scn.sap.com/community/crystal-reports-for-visual-studio/blog/2009/09/23/use-of-the-report-designer-component-rdc-in-vs-net
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

  • Network disconnectivity caused application services to hang, why?

    Hi
    We have single node installation of R12.0.6 on IBM server. When there was network disconnectivity from domain server, application server services were hanging, why? Tried to bounce apps tier services, but timed-out. Had to reboot the server for fixing the problem.
    What caused application to hang when there was no network? How to trouble shoot network issues in R12i?
    Regards
    Ateeq

    Hi;
    Please check below and see its helpful for your issue:
    How to Run Oracle Applications Network Test [ID 152508.1]
    What Network Bandwidth Is Recommended for Oracle E-Business Suite 11i? [ID 423160.1] ( you can follow this note for R12 too)
    Troubleshooting the "Error Occurred While Attempting to Establish an Applications File Server Connection" [ID 117012.1]
    Please also check Hussein Sawwan's greatest previous post about similar topic
    Network Test (Latency & Bandwidth)
    Hope it helps
    Regard
    Helios

  • Access DB (& .ldb file) does not close after crystal reports

    Post Author: mgold
    CA Forum: Crystal Reports
    Access DB (& .ldb file) does not close after crystal reports
    Hi! We have a VB application using Crystal Reports 6 that has worked successfully on hundreds of systems for over 10 years. Now, on one network, the application and access database does not close. It seems to hang on the [.Close] command.
    When we open the application an peruse the screens without opening up a report (using crystal reports), the application and access db closes fine. But as soon as we run a report and then close the report and try to close the application, the access db does not close. Many of the screens open the db and grab data from the access db, but it's only after running crystal reports that we have this problem. (Please see more information below.)
    Setup: Application and data (access 97 db) reside on a server in the same folder, but application shortcut is kicked off on client PC. Kicking off the shortcut on the client PC means that the image/process runs on the client PC (not on the server). In this problem case, the application shortcut is on a Windows XP Pro Version 2002 SP2 PC with the app & data on a Windows 2003 server. Users are local Admins on their PCs with "Full Control"over the directory and files on the server where the data (access 97 db) resides. This type of setup is typical and has worked without any problems for clients.
    The application is written in Visual Basic, using Crystal Reports 6 (using DAO). We close the recordset, set it to zero and then it hangs on closing the db (.Close command).
    A few key pieces of information:
    - The application closes fine if the app & data (access 97 db) are on a local PC. This includes closing fine if the application is run directly on the Windows 2003 server where the data is stored.
    - It worked on this client's network until sometime in the last few weeks.
    - One thing that changed is that the company is using VMWare on its servers. Not sure if they started using VMWare at the same time as it started failing. This may be unrelated. Possibly other things changed, but can't get any more information ... yet.
    - It works fine running the application from a Windows Vista PC with a user who is a domain admin.
    - The access db and application hang for about 10-20 minutes and then eventually closes. It appears that somehow
    Crystal Reports is keeping the db open, but I'm not sure why.The application doesn't quit and the database doesn't close even if I try to end the task with the Task Manager.
    - The Crystl32.ocx version being used is 8.0.0.4 (if that matters).
    - I copied 6 month old program files and database files to a test folder on the Windows 2003 server. It fails using these files that worked fine 6 months ago.
    Any ideas or help would be greatly appreciated! If you know of another good place to post this, please let me know.
    Thanks!
    - Mark

    Crystal doesn't support tables in HTML interpretation. 
    You can probably work your way around this by doing Replace() calls on the relevant tags.
    See:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333033383334%7D.do
    The supported HTML tags are:
    " html
    " body
    " div (causes a paragraph break)
    " tr (causes only a paragraph break; does not
    preserve column structure of a table)
    " span
    " font
    " p (causes a paragraph break)
    " br (causes a paragraph break)
    " h1 (causes a paragraph break, makes the font bold
    & twice default size)
    " h2 (causes a paragraph break, makes the font bold
    & 1.5 times default size)
    " h3 (causes a paragraph break, makes the font bold
    & 9/8 default size)
    " h4 (causes a paragraph break, makes the font bold)
    " h5 (causes a paragraph break, makes the font bold
    & 5/6 default size)
    " h6 (causes a paragraph break, makes the font bold
    & 5/8 default size)
    " center
    " big (increases font size by 2 points)
    " small (decreases font size by 2 points if it's 8
    points or larger)
    " b
    " i
    " s
    " strike
    " u
    The supported HTML attributes are:
    " align
    " face
    " size
    " color
    " style
    " font-family
    " font-size
    " font-style
    " font-weight

  • Error With Export/Print from Crystal Report Viewer

    Hello there,
    I've searched through the web and SAP discussion boards with not much luck with this issue.
    After working through this for some days now I've decided to look here for help.
    Environment:
    I have created a web Crystal Report viewer application(Developed with SBOP BI Platform 4.0 SP06 .NET SDK Runtime) that communicates with a managed Cyrstal Server 2011 SP4 (Product 14.0)
    I am able to connect and authenticate with the server, retrieve a token for communication and display reports in the Crystal report Viewer successfully.
    Problem:
    When I attempt to export, I receive the prompt to select format and pages.
    When I click export after selections most times I receive an error with the text
    Unable to cast COM object of type 'System.__ComObject' to interface type 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{74EEBC42-6C5D-11D3-9172-00902741EE7C}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
    Other times the page simply refreshes on export.
    When I click to print, no print dialog is displayed the page always refreshes and no error is displayed.
    No Print or Export document is ever created.
    As many print/export issues seems to be related, I'm guessing this two issues are as well.
    Notes:
    I am utilizing the ReportClientDocument model
    I am storing this in session to use as the crystal report viewer report source on postbacks
    I am assigning a subset of export formats to the crystal report viewer
    I am setting particular parameters as well on the report source
    At this point I would appreciate every assistance I may receive on this issue
    Thanks in advance,
    Below is the pertinent code
    Code:
    <aspx>
       <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
       AutoDataBind="true" EnableDatabaseLogonPrompt="False"
       BestFitPage="False" ReuseParameterValuesOnRefresh="True"
      CssClass="reportFrame" Height="1000px" Width="1100px" EnableDrillDown="False"
      ToolPanelView="None" PrintMode="Pdf"/>
    <Codebehind>
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using CrystalDecisions.Enterprise;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    using CrystalDecisions.ReportAppServer.CommonObjectModel;
    using CrystalDecisions.ReportAppServer.Controllers;
    using CrystalDecisions.ReportAppServer.DataDefModel;
    using CrystalDecisions.ReportAppServer.ReportDefModel;
    using CrystalDecisions.Shared;
    namespace ClassicInternalReportPage
        public partial class Reports : System.Web.UI.Page
            protected override void OnInit(EventArgs e)
                base.OnInit(e);
                if (!String.IsNullOrEmpty(Convert.ToString(Session["LogonToken"])) && !IsPostBack)
                    SessionMgr sessionMgr = new SessionMgr();
                    EnterpriseSession enterpriseSession = sessionMgr.LogonWithToken(Session["LogonToken"].ToString());
                    EnterpriseService reportService = enterpriseSession.GetService("RASReportFactory");
                    InfoStore infoStore = new InfoStore(enterpriseSession.GetService("InfoStore"));
                    if (reportService != null)
                        string queryString = String.Format("Select SI_ID, SI_NAME, SI_PARENTID From CI_INFOOBJECTS "
                           + "Where SI_PROGID='CrystalEnterprise.Report' "
                           + "And SI_ID = {0} "
                           + "And SI_INSTANCE = 0", Request.QueryString["rId"]);
                        InfoObjects infoObjects = infoStore.Query(queryString);
                        ReportAppFactory reportFactory = (ReportAppFactory)reportService.Interface;
                        if (infoObjects != null && infoObjects.Count > 0)
                            ISCDReportClientDocument reportSource = reportFactory.OpenDocument(infoObjects[1].ID, 0);
                            Session["ReportClDocument"] = AssignReportParameters(reportSource) ? reportSource : null;
                            CrystalReportViewer1.ReportSource = Session["ReportClDocument"];
                            CrystalReportViewer1.DataBind();
                //Viewer options
                // Don't enable prompting for Live and Custom
                CrystalReportViewer1.EnableParameterPrompt = !(Request.QueryString["t"] == "1" || Request.QueryString["t"] == "4");
                CrystalReportViewer1.HasToggleParameterPanelButton = CrystalReportViewer1.EnableParameterPrompt;
                CrystalReportViewer1.AllowedExportFormats = (int)(ViewerExportFormats.PdfFormat | ViewerExportFormats.ExcelFormat | ViewerExportFormats.XLSXFormat | ViewerExportFormats.CsvFormat);
            protected void Page_Load(object sender, EventArgs e)
                if (IsPostBack && CrystalReportViewer1.ReportSource == null)
                    CrystalReportViewer1.ReportSource = Session["ReportClDocument"];
                    CrystalReportViewer1.DataBind();
            private bool AssignReportParameters(ISCDReportClientDocument reportSource)
                bool success = true;
                if (Request.QueryString["t"] == "1" || Request.QueryString["t"] == "2" || Request.QueryString["t"] == "4" )
                    reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "STORE", Session["storeParam"]);
                    if (Request.QueryString["t"] == "2")
                        reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "FromDate", Request.QueryString["fromdate"]);
                        reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "ToDate", Request.QueryString["todate"]);
                else if (Request.QueryString["t"] == "3")
                    reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "SKU", Request.QueryString["sku"]);
                else
                    //Unknown report type alert
                    success = false;
                return success;

    Thanks Don for your response,
    I'm new to the SCN spaces and my content has been moved a couple of times already.
    In response to your questions
    The runtime is installed on the web application server, if by that you mean the machine hosting the created .NET SDK application.
    My question was whether it was also required on the Crystal Server 2011 (I.E. the main enterprise server with CMS and Report management and I guess RAS and all that). I figured this would remain untouched and queries would simply be made against it to retrieve/view reports e.t.c
    If install of the SDK on Crystal Server 2011 is indeed required should I expect any interruption to any of the core services after a restart. I.E. I'm hoping that none of the SDK objects would interfere with the existing server objects (in SAP Business Objects)Reason I ask is I note that much of the SDK install directories are similar to the existing Crystal Enterprise Server 2011 (Product 14.0.0)
    Is this temp folder to be manually created/configured or is it created by the application automatically to perform tasks. Or are you referring to the default C:\Windows\Temp directory and so saying that the application would try to use this for print and export tasks?Once I'm sure which I'd give the app pool user permission
    Printing is to be client side but I figured by default (with the Crystal Report Viewer) it would simply pool and print from the user's printer. This is how it works with the previously used URL reporting approach (viewrpt.cwr). Therefore a user can print the document from wherever they are with their own printer.We don't intend on printing from the server machine, but are you suggesting that a printer must be installed on server (which one web or enterprise server) for any client side printing to work.
    App pool is running in 32 bit mode
    Initially didn't get anything useful from fiddler but I'd try and look closer on your suggestion.
    It's also possible that some of my questions are a misunderstanding of APP vs RAS vs WEB, so please feel free to clarify. Currently I see the Web server as simply the created .NET SDK Application and RAS (Crystal Server 2011 e.t.c) as the existing fully established Application server which I simply pool for information.
    Thank you for your patience and advice,

  • Crystal report 8.5 export to csv and rtf format not working with office 2013

    Hi Experts,
    Crystal report version 8.5 hangs and eventually crash when i export my report to csv or rtf format on windows 7 with office 2013 installed, code is written in VB 6 although the same scenario is working with office 2010 installed.
    i debugged the code and found the application hangs at function Report.Export(False).
    below is the code snippet
           .PDFExportAllPages = True 'ePDFExportAllPages
           .PDFFirstPageNumber = ePDFFirstPageNumber
           .PDFLastPageNumber = ePDFLastPageNumber
           .RTFExportAllPages = True 'eRTFExportAllPages
           .RTFFirstPageNumber = eRTFFirstPageNumber
           .RTFLastPageNumber = eRTFLastPageNumber
           .UseReportDateFormat = eUseReportDateFormat
           .UseReportNumberFormat = eUseReportNumberFormat
           .UseReportNumberFormat = eUseReportNumberFormat
           .XMLAllowMultipleFiles = eXMLAllowMultipleFiles
           .XMLFileName = eXMLFileName
           Report.Export (False) ----Application hangs here and eventually crash
    Looking forward for your help, as it is very urgent
    Regards
    Mohit

    Hi Mohit
    CR 8.5, being about 15 years old, does not support Windows 7. I am surprised this works for you with MS Office 2010 and to be honest, I'd consider my self lucky there. The fact that is does not work with office 2013... well, like I said, lucky with Office 2010 and your luck ran out with Office 2013.
    Your option; rewrite the app in VS 2010 / 2012 / 2013 and use the CR Assemblies for VS .NET from SAP Crystal Reports, Developer Version for Visual Studio .NET. The CR Java SDK would be another option.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

Maybe you are looking for

  • How can i add servername to my report for all cataloged database

    1) Im using following sql statement to find the backup type,status and their timings and i would also like to see the databasename with it's corresonding servername. select DB_NAME,DB_KEY, input_type "Backup Object", output_device_type "Target Device

  • I deleted my thumbnail photo how to I get them back?

    I mac desktop Mac OS X I Photo.  I deleted the thumbnails to my I photo.  AlI I  get are blank images until I click on the images.  The photos are still there.  I thought the Apple store said to hold down the command and alt button at the same time 

  • My iPhone 3GS is neither charging or showing up in itunes after i updated it to ios 5.1.1 Any Help Please!!

    My iPhone is Not Charging From the mains or even not showin up in itunes after as soon as i have updated it to ios 5.1.1 Please Help me to Fix this issue!! My iPhone model is 3GS and was on ios 5.1 before it was updated to 5.1.1 Help Me out please!!!

  • Update Query is not working

    Hi all, Below update query throws error. update S_ISS_OBJ_ATTR set DEFAULT_VAL in ( SELECT T5.name FROM S_VOD_VER T1 INNER JOIN S_VOD T2 ON T1.VOD_ID = T2.ROW_ID LEFT OUTER JOIN S_ISS_OBJ_DEF T3 ON T1.VOD_ID = T3.VOD_ID LEFT OUTER JOIN S_VOD T4 ON T3

  • Problem with GroupableTableHeader

    Folks'es, i have a problem with my GroupableTableHeader (as of the "tame collection"). everything works just fine, until... ... until i add a new column to the table and do a fireTableStructureChanged(). after that my group headers are gone and only