Error while trying to load Crystal report via Windows service

Hi,
I am trying to generate PDF file using crystal reports. I have developed a console application which works absolutely fine, however when I converted the code to work as windows service (wcf hosted in Windows service), this below error I see from stack trace:
Load report failed.
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
at AtDataWindowsService.GetData.generatePDF(DataTable dt)
The code used is:
CrystalDecisions.Shared.ExportFormatType exportFormat;
ReportDocument reportObj = new ReportDocument();
exportFormat = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat;
//Load the Crystal Report
reportObj.Load("CrystalReport.rpt");
reportObj.SetDataSource(dt);
What might be going wrong here?

Hello,
Thank you for your post.
Based on your description, I am afraid that the issue is out of support of VS General Question forum which mainly discusses
WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
I suggest that you can consult your issue directly on SAP Crystal Reports:
http://scn.sap.com/community/crystal-reports/content?filterID=content~objecttype~objecttype[thread]
  for better solution and support.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Error while trying to open crystal report with SAP B1 8.8

    Hello Experts
        I found one problem when I open my Crystal Report from SAP B1 8.8 then it gives me error like
       "Failed to retrieve data from database.  Details : [Database Vendor Code : 156]"
       This report perfectly work while open in crystal report outside from SAP.    
    Waiting for your replies...
    Hepil Doshi

    Dear Experts,
    I face the exactly same problem, please forgive if i am not suppose to ask the same question in other people thread.
    I am using SAP 8.8, PL09, SQL Server 2005, the Crystal Report is working perfectly after import into SAP B1.
    However, when i do the same configuration in my customer server, the error message prompt:
    Failed to retrieve data from the database.
    Detail: [Database Vendor Code: 156]
    Failed to retrieve data from the database.
    Error in File Temp {8090e857-e2a3-4fa9-80dc-9e776e5991b8}{0912E6A5-88EF-406C-BD89-0155AE10F045}.rpt:
    Failed to retrieve data from the database.
    Detail: [Database Vendor Code: 156]
    The server is using SAP 8.8, PL09, with SQL Server 2008.
    Could it be some setting require for SQL Server 2008?
    Please advice.
    Thanks.
    Regards,
    Lay Chin

  • Error while trying to install Crystal Reports 2008 SP3

    Has anyone else come across this error before when running the SP3 update installer;
    Crystal Reports 2008 SP3 Update is not allowed to install because a patch with a higher version was detected.
    The installation then terminates.  There has been nothing installed on this server to do with Crystal, aside from CR2008, SP1 and then the attempt at SP3.
    ANY help appreciated
    Edited by: Ludek Uher on Aug 18, 2010 2:07 PM

    Priyanka,
    I'm already extremely annoyed that a new server build requires installation of CR2008, then SP1 before SP3 will even allow installation.  Adding SP2 into the mix just makes it seem like none of the developers tested anything (which I'm seeing from just about every software company I deal with these days).
    Besides, the 'SAP Business Objects Support Software Downloads' page no longer lists SP1 or SP2 as available downloads, so I'm going to have to try Don's solution first.
    Regards.

  • Error while trying to install Crystal Reports XI

    Hey there,
    I am trying to install this on to my server but I keep getting this error:
    Error 1904. Module C:\Program Files\Business Objects\BusinessObjects Enterprise 11\win32_x86\plugins\auth\secLDAP\secldap.dll failed to register.  HRESULT-2147024770. Contact your support personal.
    Can anyone on here offer any advise on what the problem could be?
    Thx

    Hello Shawn,
    it looks like an older version was maybe installed on this system before.
    I recommend to use a registry clean tool like [REGCLEAN|http://www.regclean.com/?hop=publish2] and to install again.
    Hope this helps
    Falk

  • DBD: Error while trying to load the transport provider for odbc. Failed to load the library. System error: The specified module could not be found.

    Hello Everyone,
    We are getting an error while trying to create an Universe via Microsoft -> MS Analysis Services 2014 -> OLEDB for OLAP Provider under Connection in UDT -"DBD: Error while trying to load the transport provider for odbc. Failed to load the library. System error: The specified module could not be found."  We have installed BI 4.1 SP05 in our system. As per earlier posts in scn in BO XI 3.x this issue used to be for improper installation of Integration KIT but in our scenarion Integration KIT is within the BO 4.1 package so no seperate installation is required. Moreover I have checked whether all the driver is present under file: "C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\drivers" and seems everything is fine. But still I am getting this error. One important point is we could use IDT because in IDT still we don't have option to connect with 'Microsoft Analysis Services - 2014 (XMLA)' as we are using Microsoft Analysis Services 2014 version.
    Kindly help if anyone has faced the same problem with SAP BO 4.1.
    Thanks and Best Regards,
    Ghosal

    Hello Everybody,
    The problem is solved now after installing "OLEDB drivers from SQL Server 2012 Feature Pack". We had OLEDB drivers that comes directly from SQL Server but that did not worked out in our case.
    Thanks for your support.
    Best Regards,
    Ghosal

  • Java.sql.sqlexception ora24344 error while trying to load Java class

    Hi Guys,
    I am getting "java.sql.sqlexception ora24344 error" while trying to load a java class using sql developer. Due to sensitivity of the code I am unable to post the code here but has anyone experienced a similar error before?
    Thanks

    Hi,
    ora-24344 is known. It means it compiled but there are errors. Because you are not telling which version of Oracle you use, it is hard. Also you couldn't provide code will not make it easy. A common error is not having the right right on packages of SYS, such as UTL_* or DBMS_SYS_SQL. Can you maybe give the line of your code which produces the error?
    Herald ten Dam
    http://htendam.wordpress.com

  • Error while trying to assign a role via CUP in Portal

    Hello Experts,
    I am trying to  create a request to assign a role in EP via CUP ( 5.3)
    EP Connector is working fine as I have imported Portal roles etc
    SPML service is working fine
    I have done the  mapping in the Provisioning tab for Portal system
    logonname in portal is email address of an employee
    So the I have done the following mapping
    AC Field                             Application field
    email addres-Stndard       logonname
    And I have the following error while trying to create a request which I grabbed form the log
    ERROR Exception during EJB call, Ignoring and trying Webservice Call
    LinkageError: loader constraints violated when linking com/virsa/cc/xsys/webservices/dto/WSRAInputParamDTO class
    ERROR com.virsa.ae.core.BOException: Exception from the service : Invalid System
    com.virsa.ae.core.BOException: Exception from the service : Invalid System
    ERROR : BO Exception in Save request
    Any suggestions would be really appreciated
    Regards
    Kev

    Kevin,
    I was able to replicate your issue and there is a setting in the CUP that you have to disable, Goto the config tab in the CUP and select NO for the "Risk Analysis On Request Submission " under risk analysis.
    Issue here is you did not create a connector for your EP in the RAR, I believe you have the above mentioned parameter to yes and so when you are submitting a request CUP is trying to do the risk analysis but RAR was not able to find any System, so it is thowing an error.
    You can resolve this issue in two ways, one is to create a connector in RAR or the other is to disable the setting in the CUP.
    Hope this helps.
    Naveen

  • Get error when trying to publish crystal report to infoview

    Hi, Gurus,
    I got an error while trying to publish a Crystal report.
    The error message says: Fail to read data from report file C:\TEMP~crw{70BDE794-E283-4773-A259-BA810F3E1697}.rpt. Failed to read parameter object.
    I'm using a dynamic cascading parameter. The report runs fine in development enviornment.
    I'm using Crystal 2008 SP2 and XI3.1
    Thank you.
    Kiki

    There are several SAP NOTES (KB articles) on this error, have you tried searching Knowledge base ?
    Most likely it's due to the fact that you have a verson mismatch between CR 2008 and XI3.1.

  • Error when trying to patch Crystal Report 10

    Hi, I'm having problem when trying to apply patches on PC running on Windows 7 64bit. Below is the error msg I got:
    [http://imageshack.us/photo/my-images/845/errorcy.jpg/]
    It seemed to be something to do with the registry as I was unable to find crystal report entries under ''HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\Crystal Reports\......" but all the .dll files were found under "C:\Program Files (x86)\Common Files\Crystal Decisions........." though.
    Anyone able to help? Thanks..

    Hello,
    Are you using the full Crystal Reports Designer itself? Or are you using a bundled edition of Crystal Reports that ships with Visual Studio?
    Also, are you trying to patch Crystal Reports 10 itself - the actual report designer? Or are you trying to update runtime files for an application you created using the CR10 runtime files and deployed to a client machine?
    Crystal Reports 10 (full, stand alone version) was never tested on Win7. CR10 reached End of Life for patch support on June 8, 2007. There's no expectation that CR10 will install or work correctly on the Win7 operating system. It's possible that it might work anyway, but I'd be surprised if there weren't any issues.
    If you want to keep trying make sure you're using the correct patch for the product you're using. A patch for the full version of Crystal Reports will not work on a machine that is using the bundled edition of CR that ships with Visual Studio. They're not interchangeable. You didn't say which file you ran when you tried applying the patch.
    Sincerely,
    Dan Kelleher

  • An error has occurred while attempting to load crystal report runtime 64

    I am using Crystal Report 2008. Visual Studio 2008 Professional on a SQL Server 2005 X64 SP2
    with .NET 3.5 SP1 beta framework
    This problem happens in X64 environment only. I tried everything I Can find in the web:
    1) run the crredist2008_x64 and X86.msi,  same error
    2) run this command
    cscript %SystemDrive%\inetpub\AdminScripts\adsutil.vbs set w3svc/AppPools/Enable32bitAppOnWin64 1
    and it said 'Service Unavailable' when accessing the page.
    3) attempting to change target platform to X86 to run on the 64 bit OS. I have the following problems.
    A) the configuration manager only have .NET as the platform. I cannot change it to X86
    B) There is no project
    file (any files ends with .proj) where I can modify manually to change the target platform. (I created website,not project  from VS 2008)
    Running the debug version (Control F5) from VS 2008 has no problem.
    Please help

    What assembly version of the dlls are you using (10.5 or 12.0)?
    If you are using the 10.5 then you would need to run the 64 bit runtime installer for Crystal Reports Basic for VS.NET 2008.
    If you are using the 12.0 then you will need to install the 32 bit runtimes for CR 2008 and change the application to run in x86 only mode.
    Here is the note that covers that (it was written for XI R2, but applies to CR 2008 as well)
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303330333933303337%7D.do]
    Jason

  • Data in DataSets, but error when trying to populate Crystal Report

    I have been in the process of making changes to a legacy application as described in this post.  [Error received on windows application|Error received on windows application]
    I have changed the references from 10.0 to 10.2.  The application included references to CrystalDecisions.CrystalReports.Design, CrystalDecisions.Enterprise.Framework and CrystalDecisions.Enterprise.InfoStore which did not have a comparable version in 10.2, so for the moment I have removed them.
    I have then tried to run the application (compiles fine) and run into this error:
    A first chance exception of type 'System.Exception' occurred in CrystalDecisions.CrystalReports.Engine.dll
    The code where it fails is here, when it is trying to load it into the report:
            private void SendDailyRentalDataToCrystal()
                crystalFailure = false;
                try
                    crystalDailyRentalReport.Database.Tables["ReportParameters"].SetDataSource(dsDailyRentalParameters);
                    crystalDailyRentalReport.Database.Tables["ReportData"].SetDataSource(dsDailyRentalData);
                catch
                    crystalFailure = true;
                    string error = "Unable to generate the Daily Rental Report.
                    error += "There was a problem sending the data to Crystal Reports.";
                    System.Windows.Forms.MessageBox.Show(error, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
    The DataSet visualizers for dsDailyRentalParameters and for dsDailyRentalData both indicate that there is valid data being returned from SQL Server.  This code is part of a Win32 application developed using VS 2005 and the reports were originally developed using Crystal Reports 10.
    Thanks for any help that you can provide.

    Ludek-
    It appears that during the course of trying to rectify the CR versioning issues that I had, I altered the functionality of the application.  This morning I reverted back to the previous version of my application and started over on the changes.  After all, I only had a couple small changes to make.
    I now have a functioning application.  However, I am not sure exactly what the cause of the last issue that I was fighting or how to fix it.
    Anyway, thanks much for the assistance that you provided.
    Regards,
    Scott

  • Database error when trying to view Crystal Report from InfoView

    I am receiving the following error when I try to view or run a Crystal Report from the InfoView.  The report is based on an SAP InfoSet.
    "Failed to load database information."
    The report data can be refreshed with no trouble from within the Crystal Reports designer on my local machine, but the error occurs after it is published to the InfoView.  The same error appears when trying to import into Excel using LiveOffice.
    Server details:
    -Edge 3.1
    -Windows 2003 64-bit
    -SAP Integration kit installed
    Local Crystal Reports machine details:
    -Windows XP
    -SAP Integration kit installed
    -Crystal Reports 2008
    My steps to troubleshoot so far:
    -Checked Database Logon details in CMC for the report.  Username and password are entered correctly.
    -Cycled all CrystalReports background services off and on again from the CMC
    -Rebooted server
    Have I missed anything?  Any help would be appreciated.

    Hi,
    do you have any connectivity from your EDGE to the SAP System ? Like can you import roles or run a WebI ?
    Regards
    -Seb.

  • Error while trying to publish 2013 workflow via designer. Probably a workflow manager backend user account issue?

    Hello, I am getting error while publishing the 2013 workflow via designer. Also, under sharepoint designer if I try to delete any workflow then the page just refreshes and the workflow does not get deleted.
    I checked the services.msc and found that the workflow backend service was stopped. (this happened as the password of the user under which this serivce was running had changed).
    So, the network admin changed the service user to LOCAL SYSTEM and started the service.
    Now, the workflow backend service is started. We have run the iisreset also.
    However, I am still getting the same error:-
    System.IO.InvalidDataException: A response was returned that did not come from the Workflow Manager. Status code = 503:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
    <HTML><HEAD><TITLE>Service Unavailable</TITLE>
    <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
    <BODY><h2>Service Unavailable</h2>
    <hr><p>HTTP Error 503. The service is unavailable.</p>
    </BODY></HTML>
    Client ActivityId : ee94689c-4e08-b055-fe9c-268d7a94
    Please find attached snapshot.
    Is the error as a result of the change in service user? Can you tell me what priviledges should the account running the workflow backend service must have?
    UPDATE 1:-
    We have set the workflow service backend account user as farm admin and also tried to set it to site admin. The service is re-started. Now, for a new web application,
    I can delete workflows. However, for existing site, I am not able to delete the existing workflows.. Also, I am not able to publish workflows (present under new and previous sites) and the error is same as described earlier.

    Hi Nachiket,
    According to your description, my understanding is that you got an error while publishing the 2013 workflow via SharePoint 2013 Designer.
    As you have changed the password of this service. Please open IIS and make sure identify of the WorkflowMgmtPool is correct, you can re-type the identify. Then  make this pool is started.
    Open Services, find Service Bus Message Broker service and Windows Fabric Host Service. Make sure they are running. If not, firstly, start Windows Fabric Host Service, then start Service Bus Message Broker service. If Service Bus Message Broker service is
    started, stop and re-start it.
    Here are some similar posts for you to take a look at:
    http://developers.de/blogs/damir_dobric/archive/2012/10/23/deploying-sharepoint-workflows.aspx
    http://developers.de/blogs/damir_dobric/archive/2012/09/18/servicebus-message-broker-service-is-starting-and-starting.aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • FTP error when trying to send crystal report to FTP destination

    Hello experts.
    I am trying to send a crystal report to a FTP destination. I have enabled the FTP destination on all servers that have a destination option. I am able to connect to the FTP site manually from the server that is running crystal reports server. However every time I try to run the report in CMC, it fails with the following message:
    Error Message: connection error. CrystalEnterprise.Ftp: WSA11004
    Any ideas on what this message means and how to fix the issue?

    Here's the details of the Note
    Symptom:
    Scheduling of the Crystal Report to FTP destination prompts the Error: Connection error, CrystalEnterprise.Ftp: WSA0.
    Cause:
    Every time when Crystal Report is scheduled to FTP destination, a connection is made to FTP server from server where job server is installed. If there is limitation on connection being made to FTP server then this error occurs.
    Resolution:
    For FTP sites in IIS:
    - Open IIS Manager
    - Go to Properties
    - Click on the FTP site tab
    - In FTP site connections, check for Connection limited to :
    - When report is long running do check how much time it takes to complete scheduling. - Accordingly change the connection time out setting in Properties of FTP site.
    - For FTP sites created using FTP Server applications, setting for Connection limited to and connection timeout will remain same.

  • Error when trying to deploy crystal reports to a web site

    I'm using VS 2008.  When I add a Crystal Report page to my application I get the following error.
    Can anyone help be resolve this problem?
    Server Error in '/' Application.
    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
    Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    Source Error:
    Line 110:               <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
    Line 111:               <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
    Line 112:               <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers>
    Line 113:          <httpModules>
    Line 114:               <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    Source File: C:\InetPub\Websites\church-site_org\web.config    Line: 112
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

    Hi,
    I also encountered problem: Could not load file or assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    I try to install the CRRedist2008_x64.msi in our web server. And its ok. But my problem now is the report i created in VS 2003. The error now is:
    Parser Error Message: File or assembly name CrystalDecisions.CrystalReports.Engine, or one of its dependencies, was not found.
    Source Error:
    Line 22:           debugging ASP.NET files.
    Line 23:     -->
    Line 24:     <compilation defaultLanguage="vb" debug="true"><assemblies><add assembly="CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.ReportSource, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Shared, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></assemblies></compilation>
    Line 25:
    Line 26:     <!--  CUSTOM ERROR MESSAGES
    Source File: E:\INETPUB\WWWROOT\DTS\web.config    Line: 24
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.CrystalReports.Engine' could not be loaded.
    === Pre-bind state information ===
    LOG: DisplayName = CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
    (Fully-specified)
    LOG: Appbase = file:///E:/INETPUB/WWWROOT/DTS
    LOG: Initial PrivatePath = bin
    Calling assembly : (Unknown).
    Please need your help.
    thanks

Maybe you are looking for

  • How can I get the list of tabs from history (URLs) which Mozilla opened using "restore session"

    Hi I'm using Mozilla 7.0.1 Today I got Mozilla crashed, and during the reopening, it crashed the second time. After reopening it second time, it showed me only "about:home" tab. At last, I lost my previous session - about 50 tabs. History -> "Restore

  • Holding mouse down

    Hi I currently have an issue where as I'd like to repeat an action when a user holds down their mouse button on one of the buttons within my application. At present, I'm using the following: button_left.onPress = function() {      // action here This

  • Imac 24 inch screen warpage?

    I have been reading related threads about the 24 inch flat panel screens. Seems that everyone is having unrelated problems. when my mac is turned off there is some major distortion and stretch marks beneath the glass. Looks like it may have been caus

  • Variable of Type Customer Exit

    HI All,    Below is the code to derive a Time Band through a Customer Exit. But when i execute the query its going to Debugging mode automatically..... and throwing a message Value " is too long for variable XMON12 >> Row: 73 Inc: LRRMSU13 Prog: SAPL

  • How to apply Like Operator in SSRS expression.

    HI All, I have SSRS report, in that i have 2 columns like Account_Code , Variance_Column. i wants to write expression like if Account_Code  starts with 4 then i need to multiply variance_column * 1 if Account_Code  starts with 5 ,6 then i need to mul