Logon failed. (rsLogonFailed)

Hi,
I am writing a web application in c# that is attempting to get the parameters from a report on a Reporting Services 2005 server.
I am using the following code:
SQLReportViewer.ServerReport.ReportServerCredentials = new
         ReportCredentials(UserName, UserPassword, UserDomain);
SQLReportViewer.ServerReport.ReportPath = Rpt.FileName;
SQLReportViewer.ServerReport.ReportServerUrl = new Uri(ServerUrl);
Parameters = SQLReportViewer.ServerReport.GetParameters();
The Getparameters Line causes the following exception:
Microsoft.Reporting.WebForms.ReportServerException was unhandled by user code
  Message="Logon failed. (rsLogonFailed)"
  Source="Microsoft.ReportViewer.WebForms"
  ErrorCode="rsLogonFailed"
  StackTrace:
       at Microsoft.Reporting.WebForms.ServerReport.get_Service()
       at Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo()
       at Microsoft.Reporting.WebForms.ServerReport.GetParameters()
The UserName, UserPassword and UserDomain variables are all populated with correct data, as is Rpt.FileName.
The ReportCredentials class is a very simple implementation of the ICredentials interface - Code shown here:
-->
public class ReportCredentials : IReportServerCredentials
  protected string _UserName, _Password, _Domain;
    public ReportCredentials(string UserName, string Password, string Domain)
    _UserName = UserName;
    _Password = Password;
    _Domain = Domain;
  public bool GetFormsCredentials (out System.Net.Cookie AuthCookie, out string UserName, out string Password, out string Authority)
    UserName = _UserName;
    Password = _Password;
    Authority = _Domain;
    AuthCookie = null;
    return (true);
    public System.Security.Principal.WindowsIdentity ImpersonationUser
      get { return (null); }
    public ICredentials NetworkCredentials
      get{ return (new NetworkCredential(_UserName, _Password, _Domain)); }
<--
I can use the same credentials to retrieve a list of reports from the report server (the report I am trying to access is in that list) and to log on directly by going to the URL of Reporting Services.
This is made more frustrating by the complete lack of detail in the error message, as it does not say why the logon failed, or give me a single clue about what is going on.
Has anyone seen this before and can tell me how to fix it, or is there something stupid in my code?
Thankyou.
Paul

You are right of course. Unline the WinForms version, the ASP.NET version of ReportViewer has NetworkCredentials read-only. Upon a second look, I don't see your code implementing IReportServerCredentials.GetBasicCredentials.
Code Snippet
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Reporting.WinForms;
using System.Security.Principal;
    public class ReportViewerCredentials : IReportServerCredentials
        public ReportViewerCredentials()
        public ReportViewerCredentials(string username)
            this.Username = username;
        public ReportViewerCredentials(string username, string password)
            this.Username = username;
            this.Password = password;
        public ReportViewerCredentials(string username, string password, string domain)
            this.Username = username;
            this.Password = password;
            this.Domain = domain;
        public string Username
            get
                return this.username;
            set
                string username = value;
                if (username.Contains("\\"))
                    this.domain = username.Substring(0, username.IndexOf("\\"));
                    this.username = username.Substring(username.IndexOf("\\") + 1);
                else
                    this.username = username;
        private string username;
        public string Password
            get
                return this.password;
            set
                this.password = value;
        private string password;
        public string Domain
            get
                return this.domain;
            set
                this.domain = value;
        private string domain;
        #region IReportServerCredentials Members
        public bool GetBasicCredentials(out string basicUser, out string basicPassword, out string basicDomain)
            basicUser = username;
            basicPassword = password;
            basicDomain = domain;
            return username != null && password != null && domain != null;
        public bool GetFormsCredentials(out string formsUser, out string formsPassword, out string formsAuthority)
            formsUser = username;
            formsPassword = password;
            formsAuthority = domain;
            return username != null && password != null && domain != null;
        public WindowsIdentity ImpersonationUser
            get
                return null;
        #endregion

Similar Messages

  • The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError) Log on failed. Ensure the user name and password are correct. (rsLogonFailed) Logon failure: unknown user name or bad

    The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)
    Log on failed. Ensure the user name and password are correct. (rsLogonFailed)
    Logon failure: unknown user name or bad password 
    am using Windows integrated security,version of my sql server 2008R2
    I have go throgh the different articuls, they have given different answers,
    So any one give me the  exact soluction for this problem,
    Using service account then i will get the soluction or what?
    pls help me out it is urgent based.
    Regards
    Thanks!

    Hi Ychinnari,
    I have tested on my local environment and can reproduce the issue, as
    Vaishu00547 mentioned that the issue can be caused by the Execution Account you have configured in the Reporting Services Configuration Manager is not correct, Please update the Username and Password and restart the reporting services.
    Please also find more details information about when to use the execution account, if possible,please also not specify this account:
    This account is used under special circumstances when other sources of credentials are not available:
    When the report server connects to a data source that does not require credentials. Examples of data sources that might not require credentials include XML documents and some client-side database applications.
    When the report server connects to another server to retrieve external image files or other resources that are referenced in a report.
    Execution Account (SSRS Native Mode)
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError) Log on failed. Ensure the user name and password are correct. (rsLogonFailed) The user name or password is incorrect

    I am able to run the report fine in BIDS in the preview window, and it deployes fine.  When it goes to view the report in the browser, I get the following error.  There is no domain, I am using a standalone computer with SQL Server and SSRS on
    this one machine.
    Can anyone point to where I might configure the permission it is looking for?  thanks!  Steven
    The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)
    Log on failed. Ensure the user name and password are correct. (rsLogonFailed)
    The user name or password is incorrect
    Steven DeSalvo

    Hi StevenDE2012,
    Based on the error message "The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)", it seems that the Unattended Execution Account settings in Reporting Services
    Configuration is not correct.
    Reporting Services provides a special account that is used for unattended report processing and for sending connection requests across the network. Unattended report processing refers to any report execution process that is triggered by an event rather than
    a user request. The report server uses the unattended report processing account to log on to the computer that hosts the external data source. This account is necessary because the credentials of the Report Server service account are never used to connect
    to other computers. To configure the account, please refer to the following steps:
    Start the Reporting Services Configuration tool and connect to the report server instance you want to configure.
    On the Execution Account page, select Specify an execution account.
    Type the account and password, retype the password, and then click Apply.
    In addition, please verify you have access to the Report Server database by following steps:
    Go to SQL Server Reporting Services Configuration Manager, make sure the configuration is correct.
    Go to Database, Verify that you can connect to the database.
    Make sure you are granted public and RSExecRole roles.
    Reference:
    Configure the Unattended Execution Account
    Configure a Report Server Database Connection
    If the problem is unresolved, i would appreciate it if you could give us detailed error log, it will help us move more quickly toward a solution.
    Thanks,
    Wendy Fu

  • Logon failed for the unattended execution account.

    Hi while am running my report it is throwing the below error.I have verified entire config file,
    And i have recently uninstall and install the Reporting services after installing this i have faced this error ,shell i need to remove any old files from the configmgr or what why it is not working.The follwg error  i have get while am running the report
    The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)
    Log on failed. Ensure the user name and password are correct. (rsLogonFailed)
    Logon failure: unknown user name or bad password
    It will create any logfiles and entries  in the logfile Folder and There is no folder for rsConfig in the Root Folder,
    was it made any thing wrong or what give me the soluction
    Please give me the right soluction for this problem.

    Hi Ychinnari,
    According to your description, you comes across an error when you run a report.
    In your scenario, the issue could cause by the Execution Account you have configured in the Reporting Services Configuration Manager is not correct. Please go to Reporting Services Configuration Manager and connect to the report server instance, then open
    the Execution Account page, update the username and password for the execution account, finally, restart the Reporting Services for this instance.
    Since you mentioned you can’t find the log files, please check the server which has reporting server instance installed with this path: C:\Program Files\Microsoft SQL Server\<instance name>\Reporting Services\LogFiles to check the error log.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • "Program terminated in remote system NONE: Logon failed" when adding a new table

    Hello,
    I set up a replication flow from a SAP ERP 6.0 EHP7 with SAP ASE 16.0 source to SAP HANA 1.0 rev 82 target
    I am using a standalone SLT system NetWeaver 7.0 with DMIS 2011_1_731 (with SP 1 to 7).
    I have 100 tables to replicate.
    I succeeded to set up replication for 57 tables. These tables are replicating properly.
    Whenever I try to add a new one (with LTRC transaction, Data Provisioning -> Start Replication), the new table is marked as 'Failed' after a little while.
    When I press 'Show Error Log' button I got an obscure error message:
    "Program terminated in remote system NONE: Logon failed "
    I do not understand this message. I checked both on SAP ASE source and SAP HANA target. I am still able to connect against both source and target.
    Can you please tell how to troubleshoot this error.
    Thanks in advance,
    Christian

    First thank you for answering my questions. I really appreciate your answers.
    I rechecked the documentation.
    "Application Operations Guide SAP Landscape Transformation Replication Server Document Version: 2.3 – 2014-07-08"
    Page 29 - 30
    3.5.2.2 Data Transfer Jobs
    This section explains the relationship between the number of data transfer jobs and the number of available background work process.
    Data transfer and data transformation processing on SLT server system is accomplished by the background work processes of the underlying SAP NetWeaver ABAP application server. Each job occupies 1 background work process in the SAP LT Replication Server system. For each configuration, the parameter Data Transfer Jobs restricts the maximum number of data load job for each mass transfer ID (MT_ID). In total, a mass transfer ID (MT_ID) requires at least 4 background jobs to be available:
     One monitoring job (master job)
     One master controller job
     At least one data load job
     One additional job either for the migration objects definition, access plan calculation or to change configuration settings in the Configuration & Monitoring Dashboard
    Example
    If you set the parameter Data Transfer Jobs to 04 in a configuration “SCHEMA1”, a mass transfer ID 001 is assigned. As a result, the following jobs should be in the system:
    1 Master controller job: /1LT/IUC_REP_CNTR_001
     At most 4 parallel jobs for MT_ID 001: /1LT/IUC_LOAD_MT_001_001/~002/~003/~004
    When configuring your data load or replication scenario, consider the following:
     Do not define more data transfer jobs than the number of available application server background work processes. If all available background work processes are already occupied by jobs, any other job will have to wait until a free work process becomes available. This can lead to long wait times until a new activity (for example creating triggers) can start, and can also result in significantly increased latency times for data replication.
     The number of dialog work processes in the source system corresponds 1:1 with the number of data transfer jobs in the SAP LT Replication Server system.
     Besides the work processes allocated by the data transfer jobs you need to provide additional available work processes for controller and monitoring jobs, the migration objects definition, access plan calculation or to perform configuration changes, and so on.
    Sizing for SAP LT Replication Server involves determining how many work processes are required to perform the initial load of data into the target system within an acceptable timeframe, and accomplish the change capturing and the transfer of data changes to the target system within expected latency times.
    Ensure that you add enough additional work processes to allow other required SAP LT Replication Server jobs to run.
    Finally, you map the number of required application server work processes to their system resource consumption (CPU, memory, disc space) using the formulas provided by the SLT Sizing Guide.
    With the simple formula below, you can calculate the number of required application server work processes (WPs) on the SLT Server for each active SLT configuration.
    The number of required work processes can be determined by adding
     The Number of required data transfer jobs ,
     plus one background work process for Central Master (Monitoring) Job (only one per system!),
     plus one background work process for Master Controller Job,
     plus 3-5 additional empty background work processes (recommended per configuration),
     plus approx. 3 dialog work processes (recommended for each configuration).
    Note: A lack of available free application server work processes can negatively affect the data load or data replication processes.
    To summarize everything, the number of 'Data Transfer Jobs' must be set depending of the number of source tables, it is not the actual number of tables.
    Assume that for my 100 tables I use 10 'Data Transfer Jobs' :
    - The number of work processes on the SLT server would be 20. I took the simple formula of the documentation:
    10 data transfer jobs ,
    + 1 background work process for Central Master (Monitoring) Job (only one per system!),
    + 1 background work process for Master Controller Job,
    + 5 additional empty background work processes (recommended per configuration),
    + 3 dialog work processes (recommended for each configuration).
    - The number of dialog processes on the source server would be 10 ( equal to the number of 'Data Transfer Jobs')
    Am I correct ?
    Regards,
    Christian

  • Getting Logon Failed error connecting to SAP R/3 with Crystal

    I have Crystal Reports 2008 and also the SAP Integration Kit installed on my desktop.  I've imported the transports into my DEV and QAS systems and am trying to connect directly to R/3 from Crystal using the SAP Table, Cluster or Function choice.
    I receive the error:
    Logon failed.  Details: You do not have the necessary rights to design reports against the SAP system.  Please check with your system administrator. 
    I'm using a logon that has full rights within SAP.  It recognizes my password because when I try a password that I know is wrong I get a different error message: Logon failed. Detail: Name or password is incorrect.  I receive the same error in PRD even though I have not imported the transports into that client.
    I have Crystal Server but am not trying to use that at the moment.  Just Crystal Reports as a standalone product.  If I've left something out please let me know.
    Thank you,
    Kevin Scheeler

    Hi Kevin,
    take a look at the Installation Guide for the SAP Integration Kit which includes a detailed list of authorizations per use case in the appendix
    the documentation is available on help.sap.com
    Ingo Hilgefort

  • Database Logon Failed after first report

    I have a Windows Server 2003 x86 server running IIS6 and ASP.NET. On this server, I have two different web forms set up to export Crystal Reports to PDF.
    My problem is that only one of these reports can run. For example, I open report 1 and can then reopen (generate PDF of) report1 as many times as I want. I cannot open report 2 - I get a "Database Logon Failed" error message. If I restart the server, I can generate a PDF of report 2 successfully and as many times as I want but report 1 will get a "Database Logon Failed" error message.
    Has anyone seen this behavior before? My code is very concise and manually closes the report document (and forces the garbage collection to run) once the PDF has been generated. However, for some reason, the report is staying in memory and is trying to run again even though it has been closed. It is driving me crazy.
    Thanks in advance for any assistance you can offer.

    Let's get the server confusion out of the way.
    A "server" runtime install is an msi file called CrystalReports11_5_NET_2005.msi.
    The msi is in a download called Crystal Reports XI Release 2 - FP x.x .NET Server Install (where x.x refers to SP or FP version (e.g.; Crystal Reports XI Release 2 - FP 5.6 .NET Server Install)
    So, this gives you an easy way of installing the CR runtime on a server (e.g.. Win 2003 server). No CR server (RAS) implication here. To install the runtime, all you have to do is run the msi, provide the keycode when prompted and the runtime is installed. You should see the directory C:\Program Files\Business Objects\Common\3.5\bin created. No pretty interface, etc. If you want a pretty interface, you create your own setup project or msi using the CR msm files.
    Hopefully this clears up the "server" confusion.
    To the actual issue on hand.
    You say this works with older "Crystal Reports viewers" installed on a WIN 2003 64 bit server. My question is; does this CR XI r2 based app work anywhere? Your dev box? Staging server?
    Ludek

  • Crystal Report 10 and Visual Basic 6 - logon failed in crystal report viewe

    Guyz,.
    Report viewer is showing logon failed, pelase help me, i can able to view the data from rs1(recorset).
    please hellp me to fix this issue, i need to pass the sql query to my pre designed Crystal report which has all the field as same as SQL query.
    Please suggest me if any other alternate way to do this , my code is below.
    Environment : Crystal Report 10, Visual Basic 6
    cr_preview -> CrystalActiveXReportViewer
    RepName  -> Fiename and path of the Crystal report is designed from Crystal Report Designer.
    Function show_rep(Sql As String, RepName As String)
    Dim crystal As CRAXDRT.Application
    Dim report As New CRAXDRT.report
    Dim rs1 As New ADODB.Recordset
        If rs1.State Then rs1.Close
        rs1.Open Sql, cn, adOpenStatic, adLockReadOnly
        Set crystal = New CRAXDRT.Application
        Set report = crystal.OpenReport(RepName)
        report.DiscardSavedData
        report.Database.SetDataSource rs1
        'cr_preview.Refresh
        cr_preview.ReportSource = report
        cr_preview.Visible = True
        cr_preview.ViewReport
        Do While cr_preview.IsBusy
            DoEvents
        Loop
        cr_preview.Zoom 100
        If rs1.State Then rs1.Close
        Set rs1 = Nothing
    Set crystal = Nothing
    Set report = Nothing
    End Function

    Hi,
    Please refer to the link for the list of example, [click here|http://pscode.com/vb/scripts/BrowseCategoryOrSearchResults.asp?optSort=Alphabetical&lngWId=1&B1=QuickSearch&txtCriteria=crystalreport+10&blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVariables=TRUE]
    Regards,
    Clint

  • Crystal report logon Failed Error

    Dear All
    We have installed BOBJ Edge 3.1 Server at Windows Server.
    We insalled Crystal Report 2008 at one of our Laptop.  (Client).
    When we tried to create a sample report,
    we selected a existing universe from the BOBJ Server.  When we selected it ask me for the server connection details. It connected and showed me the existing unverses.
    I selected say eFashion - and picked some fields and Click OK.
    Then it givs logon failed error.
    Can some one explian me where i am missing
    REgards,
    Venkat

    Hi Venkat,
    If the Universe is based off an ODBC connection, then the same ODBC connection (with the same name) needs to be present on the client machine too.
    So, like Don suggested, the client machine would need the same DB client too.
    Open the Universe in the Universe Designer. Go to File > Parameters > Edit. This is where you see all the connection information of the Universe.
    -Abhilash

  • Logon Failed when exporting crystal report to PDF

    Hi, I am Teguh
    i want to ask about error when export crystal report to pdf
    error message
    CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed
    [LogOnException: Logon failed.]
       .I(String , EngineExceptionErrorID ) +506
       .D(Int16 , Int32 ) +537
       .C(Int16 ) +10
       CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +577
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType) +141
       Falcon.CRTransferSlip.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\Falcon\CRTransferSlip.aspx.vb:77
       System.Web.UI.Control.OnLoad(EventArgs e) +67
       System.Web.UI.Control.LoadRecursive() +35
       System.Web.UI.Page.ProcessRequestMain() +750
    environment:
    OS : Windows server 2008 standard SP1
    IIS: Version 7.0
    SQL: Sql server 2000
    VS : Visual studio 2003
    i really confused with this error,
    please help me for this problem
    many thank's

    Hi Ludek
    Thank you for your response. I have installed SP3 and ProcMon and still the same result.
    I applied a filter on ProcMon to filter out items where the path contains 'export'.
    There are a few items where the result is 'NAME NOT FOUND' but I don't think it necessarly had anything to do with the barcode. These include items such as 'EXPORT\MailDestType','EXPORT\DisableExportLiveOfficeSupport'','EXPORT\ExportDirectory' to name a few.
    What drew my attention was the ACCESS DENIED result on specifically the EXPORT\PDF folders. The detail for these are  Desired Access : All access, however the very same entry appears a little futher on as a SUCCESS but this is detailed as Desired Access: Query Value.
    So in summary it looks something like this:
    User : Server\XXX
    Operation : RegOpenKey
    Path : HKU\.DEFAULT\Software\Business Objects\Suite 12.0\Crystal Reports\Export\Pdf
    Result : ACCESS DENIED
    Desired Access : All Access
    User : Server\XXX
    Operation : RegOpenKey
    Path : HKU\.DEFAULT\Software\Business Objects\Suite 12.0\Crystal Reports\Export\Pdf
    Result : SUCCESS
    Desired Access : Query Value
    There are a few other entries that follow this pattern that exists in other locations such as HKLM\Software...
    Could this 'ACCESS DENIED' be the problem? and If so how do I, and should I give user XXX this ALL Access its looking for.
    Regards
    Elroy

  • Logon failed. Details: mscorlib (Crystal report error during print &export)

    Hi,
    I'm encountering the problem that the crystal report is working fine in the staging server I developed.
    However, after I transported to live server the report having problems when printing and exporting.
    Below is the error message prompts to me.
    Logon failed. Details: mscorlib : Could not find file 'C:\Inetpub\wwwroot\rptPrintSummaryConfineSpace.xml'. Error in File C:\WINDOWS\TEMP\rptPrintSummaryConfineSpace {2D72226E-816A-4D9B-BF93-C9077001F09C}.rpt: Unable to connect: incorrect log on parameters.
    I hit this error when I click OK button on export or print option page.
    My temp folder at windows is given full permission for IIS_WPG and ASPUSER.
    Please help to resolve my problem thank you very much.

    What version of Crystal Reports?
    What CR Service Pack are you on?
    What is the database?
    How are you connecting to the databse (ODBC, OLE DB, etc.)?
    - Ludek

  • Logon failed, with some Chinese description

    Dears,
    We are running the SAP Crystal Reports 2011 client (on a Windows PC) to
    built reports on DB tables residing on ERP ECC 6.0 EhP5 system,
    installed on IBM Power System i V7R1.
    Going through the necessary steps after starting the Crystal Reports
    client :
    Report Wizard -> Create New Connection -> SAP Table, Cluster, or
    Function, I get a list of all the SAP systems, which are configured in
    the conventional SAP GUI installed on the Windows PC (730, patch level 1).
    After choosing the ERP PRO system for example, I receive a dialog
    through which I enter the client no., user & password. 
    When I click the 'Finish' button, I get a dialog depicting two lines :
    The first line = 'Logon failed.'
    The second line = 'Details:...' then a sequence of some Chinese (I
    asssume) characters !
    Kindly advise on how to solve this problem.
    (Note : please find below a screen shot depicting the last dialog encountered.)
    Thank you in advance for your cooperation.
    Regards.
    Reda

    Dears,
    The following is the solution for the above mentioned problem :
    Right Click on the entry of interest among the list of entries in SAP GUI, select 'Properties', click the 'Code Page' tab, select the 'Default' option in the drop down list labeled : 'Language'
    ( The previous option chosen in the drop down list was 'English')
    Thanks.
    Reda

  • Logon fail when creating Connection in Crystal Reports SP3

    Greetings,
    I am working on an issue where we have installed the SAP GUI 7.10, Crystal reports 2008 SP3, and SAP IK FP 3.1.
    We are testing the access to ECC.  We have setup the server in the GUI and can successfully logon to the server in the GUI.  We open Crystal Reports, select File -> New -> Standard Report, scroll down to SAP Table, Cluster, or Function, and the SAP System Logon window pops up.
    Select the ECC system, click Next, and input the logon info for the system.  Click Next and do not check the box for generating a RFC trace file, then click finish.
    This results in a new window popping up.  The title is Crystal Reports, and the contents of the window are as follows...
    Logon failed.
    Details: <bunch of Chinese characters>.<more Chinese characters>
    We are using the language setting of EN on the SAP server, and in the GUI configuration.  Not sure why we are getting Chinese (we have verified it as Chinese with a person here who can read some Chinese.  he says that the first part is "something about server not valid")
    We asked a user who does have a working install using CR 2K8 SP2 and SAP IK SP2 to try the login and he had the same results on this system.
    We can use the same SAP account to login to InfoView without an issue.
    Any suggestions?

    i had the same problem.
    it has something to do with the sap gui logon settings.
    1. go to your SAP logon ECC-properties (start sap-logon; right-click on your ecc connection)
    2. go to the Codepage-Tab
    3. set Language to default (standard)
    then it should work.
    br
    thomas

  • Database logon failed. Database Vendor Error Code: 0

    Hi all,
    I'm running a java web application and use crystal report XI.
    It works normally. One thing is : i would like to change the "Connection URL" when runtime.
    These are my config:
    _CRConfig.xml :
    <?xml version="1.0" encoding="utf-8"?><CrystalReportEngine-configuration>
        <reportlocation>../..</reportlocation>
        <timeout>10</timeout>
        <ExternalFunctionLibraryClassNames>
              <classname> </classname>
              <classname> </classname>
        </ExternalFunctionLibraryClassNames>
    <keycode>B6W60-01CS200-00GEGC0-0EX1</keycode>
    <Javaserver-configuration>
    <DataDriverCommon>
         <JavaDir>C:\Business Objects\j2sdk1.4.2_08\bin</JavaDir>
        <Classpath>C:\Business Objects\Common\3.5\java/lib/crlovmanifest.jar;C:\Business Objects\Common\3.5\java/lib/CRLOVExternal.jar;C:\Business Objects\Common\3.5\java/lib/CRDBJavaServerCommon.jar;C:\Business Objects\Common\3.5\java/lib/CRDBJavaServer.jar;C:\Business Objects\Common\3.5\java/lib/CRDBJDBCServer.jar;C:\Business Objects\Common\3.5\java/lib/CRDBXMLServer.jar;C:\Business Objects\Common\3.5\java/lib/CRDBJavaBeansServer.jar;C:\Business Objects\Common\3.5\java/lib/external/CRDBXMLExternal.jar;C:\Business Objects\Common\3.5\java/lib/external/log4j.jar;C:\Business Objects\Common\3.5\java/lib/cecore.jar;C:\Business Objects\Common\3.5\java/lib/celib.jar;C:\Business Objects\Common\3.5\java/lib/ebus405.jar;C:\Business Objects\Common\3.5\java/lib/corbaidl.jar;C:\Business Objects\Common\3.5\java/lib/external/freessl201.jar;C:\Business Objects\Common\3.5\java/lib/external/asn1.jar;C:\Business Objects\Common\3.5\java/lib/external/certj.jar;C:\Program Files\Business Objects\Common\3.5\java/lib/external/jsafe.jar;C:\Business Objects\Common\3.5\java/lib/external/sslj.jar;C:\tomcat\common\lib\oracle-driver.jar${CLASSPATH}</Classpath>
         <IORFileLocation>${TEMP}</IORFileLocation>
         <JavaServerTimeout>1800</JavaServerTimeout>
         <JVMMaxHeap>256000000</JVMMaxHeap>
         <JVMMinHeap>32000000</JVMMinHeap>
         <NumberOfThreads>100</NumberOfThreads>
    </DataDriverCommon>
    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL>jdbc:mysql://Komodo-vmw:3306/warcraft</JDBCURL>
         <JDBCClassName>com.mysql.jdbc.Driver</JDBCClassName>
         <JDBCUserName>root</JDBCUserName>
         <JNDIURL></JNDIURL>
         <JNDIConnectionFactory></JNDIConnectionFactory>
         <JNDIInitContext>/</JNDIInitContext>
         <JNDIUserName>weblogic</JNDIUserName>
         <GenericJDBCDriver>
              <Default>
                   <ServerType>UNKNOWN</ServerType>
                   <QuoteIdentifierOnOff>ON</QuoteIdentifierOnOff>
                   <StoredProcType>Standard</StoredProcType>
                   <LogonStyle>Standard</LogonStyle>
              </Default>
              <Sybase>
                   <ServerType>SYBASE</ServerType>
                   <QuoteIdentifierOnOff>OFF</QuoteIdentifierOnOff>
                   <DriverClassName>com.sybase.jdbc2.jdbc.SybDriver</DriverClassName>
                   <StoredProcType>Standard</StoredProcType>
                   <LogonStyle>MySQL</LogonStyle>
              </Sybase>
         </GenericJDBCDriver>
    </JDBC>
    <XML>
         <CacheRowSetSize>100</CacheRowSetSize>
         <PreReadNBytes>4096</PreReadNBytes>
         <XMLLocalURL></XMLLocalURL>
         <SchemaLocalURL></SchemaLocalURL>
         <XMLHttpURL></XMLHttpURL>
         <SchemaHttpURL></SchemaHttpURL>
    </XML>
    <JavaBeans>
        <CacheRowSetSize>100</CacheRowSetSize>
         <JavaBeansClassPath></JavaBeansClassPath>
    </JavaBeans>
    </Javaserver-configuration>
    </CrystalReportEngine-configuration>
    _JSP file :
    public ConnectionInfos setLogon()  {
              String dbUser = "root";
              String dbPassword ="root";
              ConnectionInfos oConnectionInfos=null;
               try
                    //Create a new ConnectionInfos and ConnectionInfo object;
                    oConnectionInfos = new ConnectionInfos();
                  ConnectionInfo oConnectionInfo = new ConnectionInfo();
                  //Set username and password for the report's database
                  oConnectionInfo.setUserName(dbUser);
                  oConnectionInfo.setPassword(dbPassword);
              PropertyBag pro = new PropertyBag();
                  Map<String, String> bag = new HashMap<String, String>();
                   bag.put("Connection URL", "jdbc:mysql://Komodo-vmw:3306/warcraft");
                   bag.put("Server Type", "JDBC (JNDI)");
                   bag.put("Database DLL", "crdb_jdbc.dll");
                   bag.put("Database Class Name", "com.mysql.jdbc.Driver");
                  oConnectionInfo.setAttributes(new PropertyBag(bag));          
                  //Add object to collection
                  oConnectionInfos.add(oConnectionInfo);               
              } catch(Exception se) {
                   se.printStackTrace();
                   System.out.println("[error in setLogon ]");
              return oConnectionInfos;     
    And i got error every times i run the report :
    Database logon failed. Database Vendor Error Code: 0
    Please help me.Thank you so much!

    Hi quang.
    can u tell me how to solve this issue? on trying to open a report am facing this issue!
    TIA

  • Logon Failed using Crystal Report XI

    I wrote a VB 6 app that has the CRViewer and calls (.rpt's). The ".rpt's" use a MS Access 2003 database. This database DOES NOT have any security in the way of passwords. This application runs on a "stand-alone" system NO SERVER IS INVOLVED.
    The program and Crystal Reports work fine on my system. About a week ago, I tried to install Crystal Reports Release 2. I had a lot of problems. I deleted it and re-installed CR from my install cd's. Ever since then, I have had the following problem:
    I use MS Package and Deployment system to create the "Setup and Install" package. Ever since the above problem with Release 2, when I install and run the package on a different system, when I try to access the reports, I am getting a "Logon Failed" error message. PRIOR to trying to install Release 2, I never had this error message. I have no idea what is causing the problem.
    I even deleted and recreated the database--same problem exist.
    I have a very small scale-down version of this app. Is there any way I can send a "zip" file to you?
    Please, I have a deadline on this project. I need some serious help ASAP.
    In an effort to help resolve this problem, here is code from the scaled-down version: Prior to running this code, ReportPath = App.Path and ReportName = "Report1.rpt"
    This code is from my CRVIEWER form:
    Private Sub Form_Activate()
    Set craxreport = craxapp.OpenReport(ReportPath & "\" & ReportName)
        If ReportName = "Report1.rpt" Then
        End If
    DoReport:
        DoEvents
    ' ==============================================================================
        Screen.MousePointer = vbHourglass
        crviewer1.Refresh
        crviewer1.Zoom "100"
        While crviewer1.IsBusy
            DoEvents
        Wend
        crviewer1.ReportSource = craxreport
        crviewer1.Refresh
        crviewer1.ViewReport
        crviewer1.Refresh
        Set craxreport = Nothing
        Screen.MousePointer = vbDefault
    End Sub
    Private Sub Form_Load()
    Set craxapp = CreateObject("Crystalruntime.application.11")
    End Sub
    Private Sub Form_Resize()
    Me.Height = Screen.Height
    Me.Width = Screen.Width
    Me.Top = 0
    Me.Left = 0
    crviewer1.Top = 0
    crviewer1.Height = Me.ScaleHeight
    crviewer1.Width = Me.ScaleWidth
    frmCRPrint.Refresh
    End Sub
    This code is the "Connection" string:
    Public ReportPath As String
    Public craxapp As New CRAXDRT.Application
    Public craxreport As CRAXDRT.Report
    Public CRXDatabaseField As CRAXDRT.DatabaseFieldDefinition
    Public ReportName As String
    Public pconSports As ADODB.Connection
    Public Sub OpenConnections()
    Set pconSports = New ADODB.Connection
            pconSports.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\Sports.mdb" & ";Persist Security Info=False"
            ReportPath = App.Path
        pconSports.Mode = adModeReadWrite
        pconSports.Open

    OK, a few details to go over.
    You do not need all of the below references:
    Crystal ActiveX Report Viewer Library 11.0
    Crystal Reports ActiveX Designer Design and Runtime Library 11.0
    Crystal Reports ActiveX Designer Library 11.0
    Crystal Reports ActiveX Designer Run Time Library 11.0
    As long as you are not using report creation APIs, you only need
    Crystal ActiveX Report Viewer Library 11.0
    Crystal Reports ActiveX Designer Run Time Library 11.0
    Which means you'd be using the craxdrt.dll (Dim myApp as New Craxdrt.Application), and the MSM files you need would be; crystalreports11_RDC_Runtime.msm, crystalreports11_RDC_license.msm (you need to add the keycode to this) and crystalreports11_RDC_reportEngine.msm.
    If you are using report creation APIs, you do not need Crystal Reports ActiveX Designer Run Time Library 11.0.
    Re. creation of deployment package:
    I reloaded CR XI on my Development System Build 11.0.0.895
    I installed CR XI on my other PC(Test) Build 11.0.0.895
    During the creation of the Install Package using MS Package and Deployment System
    I do not believe the MS Package and Deployment Wizard that came with VB 6 can handle MSM files(?). To use MS files, you have to use something like MS Visual Installer, InstallShield, Wise, etc.
    Ludek
    Edited by: Ludek Uher on Oct 23, 2008 6:30 AM

Maybe you are looking for

  • TOC (table of contents) Formatting/Leader Tab Problems

    BACKGROUND I have found it impossible to format TOCs with leader tabs as I've seen the procedure outlined in numerous forum posts, books, and elswehere. I am an intermediate FrameMaker user running FM 9 on Windows XP Pro. I run the same setup on a ho

  • How to get a filename list from a website?

    Hi,Everybody!           I want get filename list form a dirctory in a website:           For example:           There's a website is: http://www.otherweb.com , there's some files like           this: http://www.otherweb.com/dir/001.html           htt

  • REUSE_ALV_GRID_DISPLAY   - in background - print problem

    Hi all .      I am using the function module REUSE_ALV_GRID_DISPLAY  with a lot of fields in line .      Result of report in case of on line running looks well , but I have problem with job in background :            Part of the fields were transferr

  • Create Notification for Cluster Share Volume Disk Capacity

    I am new to System Center Operations Manager but am slowly learning. We are running SCOM 2012 R2 and I want to get notifications when there are issues in our 2012 Hyper-V Cluster, specifically when the free space on our CSVs gets below 100 GBs.  I ha

  • TS3276 Mail 6.0 won't connect to one of my accounts, only since upgrade to OSX 7

    My Mail account fails to connect and it prompts me for my password which fails to resolve the problem.  This has only occurred since my upgrade to OS X 10.7.  I have verified all of the accccount settings (by comparing them to my iPad Mail account se