Logon to OMS server failed

Hi, I have 8.1.6 running on Linux, also containing the OEM repository. I'm trying to login to the OMS on my Windows XP Professional machine. Everything's configured correctly. OMS service is running fine. The repository is also fine. However, the last step of logging in from the OEM console screen failed.
The console screen prompts for username and password, for which I entered "sysman" and "oem_temp" as usual. But for the hostname, when I entered it, it automatically appends the domain name at the end. For example, {machinename}.stmnca.adelphia.net. And I'm suspecting that this is why the login failed.
Can anyone help?
Brian Wong,
[email protected]

Hey same here. This is the problem I came to the forums for.
I can connect to OMS on the Linux box but on the Windows XP box
just running client for windows, no go! It fills in the hostname,
I tried IP number and still no connection. I can connect to databases
but not to OMS. I am trying to see if it
is perhaps a OMS config parameter. So I am researching OMS.
It seems that OMS is a Java program. Now I notice if I start OMS,
I get a ton of JVMs running out of $ORACLE_HOME/jre/...1.1.8...
I think this is the JVM that is 'part' of the Oracle database.
Java under Oracle is a big unknown to me but I think this is correct.
Here's why: If I start OMS, I can connect to the Java branch of the
Database manager in OEM. If I go into OEM standalone, I cannot connect
to Java (usually because I have not started JServ). So my guess is that
the ton of Java JVMs that start with OMS is indeed the JVM that runs
somehow in the Oracle address spaces somehow.
My question is, does this how it has to be. Could OMS be written to run,
say, under 9iAS? Anyway, I look forward to Release 2 -- this has been
a challenge since I just have Linux here running. yow.

Similar Messages

  • Re:Logon to OMS server failed

    Albert: Thanks for helping.
    I didn't have to enter the host name for the first time either. But it showed {machinename}.stmnca.adelphia.net, and I couldn't log in. So I clicked on the icon next to the Management Server box, deleted the server, and re-created a new one by entering the machine name. But upon clicking okay, the name then has the domain name appended to it. So it's like automatic. What should I do?
    Brian Wong

    Hey same here. This is the problem I came to the forums for.
    I can connect to OMS on the Linux box but on the Windows XP box
    just running client for windows, no go! It fills in the hostname,
    I tried IP number and still no connection. I can connect to databases
    but not to OMS. I am trying to see if it
    is perhaps a OMS config parameter. So I am researching OMS.
    It seems that OMS is a Java program. Now I notice if I start OMS,
    I get a ton of JVMs running out of $ORACLE_HOME/jre/...1.1.8...
    I think this is the JVM that is 'part' of the Oracle database.
    Java under Oracle is a big unknown to me but I think this is correct.
    Here's why: If I start OMS, I can connect to the Java branch of the
    Database manager in OEM. If I go into OEM standalone, I cannot connect
    to Java (usually because I have not started JServ). So my guess is that
    the ton of Java JVMs that start with OMS is indeed the JVM that runs
    somehow in the Oracle address spaces somehow.
    My question is, does this how it has to be. Could OMS be written to run,
    say, under 9iAS? Anyway, I look forward to Release 2 -- this has been
    a challenge since I just have Linux here running. yow.

  • Logon to SAP system failed

    my system logon failed .
    i am not able to logon to my ides system. server is starting but while logging into the system by using user name and passward
    the following error is coming
    user account not in validity date
    some other information is also available
    logon to SAP system failed
    the system description "NEW" cannot be found in the system list.
    Make sure that saplogon.ini exists and choose an existing system description in the system list.
    Regards

    Check with your Basis. Your account validity is expired. Ask them to increase the validity.
    The INI also does not exist on your system. Take the file from Basis and paste it on your PC.
    Arti

  • Error Message: The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version. The request failed with HTTP status 404: Not Found.

    I have a web page that contains a ReportViewer control.  I am trying to display a report, which is an .rdl file located on the SSRS server, in this ReportViewer control.  I have set the ReportPath and ReportServerUrl correctly.  I am
    getting an error message.
    Am I suppose to use an .rdlc file rather than a .rdl file?  Does the web server configuration need to use a certain account?
     I am getting the following error message:
    The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version.
    The request failed with HTTP status 404: Not Found.

    Hi bucaroov,
    The error "The request failed with HTTP status 404: Not Found." means the ReportServerURL configured in the ReportViewer control is invalid.
    Please follow these steps to solve the issue:
    Logon the Report Server machine.
    Open the Reporting Services Configuration Manager.
    Copy the Report Server URL from 'Web Services URL'.
    Logon the application server(in this case, it is the server that host the web page), check if we can use the URL we got from step 3 to access the Report Server. If so, please replace the ReportServerURL in the ReportViewer control with this URL. If it is
    not available, could you please post the error message.
    Additionaly, we don't need to provide the extension for a server report. The ReportPath should be like: /<reports folder>/<report name>
    For more information, please see:
    Walkthrough: Using the ReportViewer Control in Remote Mode:
    http://msdn.microsoft.com/en-us/library/ms251669(VS.80).aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

  • Ovmapi_4004e server failed error while creating a PVM from  FTP network pat

    Hi,
    I'm trying to create a PVM on OVM 3.0.3 using an ftp server to use an ISO for a Linux 5 installation.
    In the create virtual machine wizard for the network path (in boot options) I am specifying:
    ftp://oracle:[email protected]/home/oracle/iso/OEL56/
    The above link opens up in a browser and I can see the mounted iso.
    I mounted the iso as:
    cd /home/oracle
    mkdir /iso/OEL56/
    mount -o ro,loop /ovm_iso/linux/Enterprise-R5-U6-Server-x86_64-dvd.iso /home/oracle/iso/OEL56/
    But Starting the VM fails with "ovmapi_4004e server failed" and "Boot loader didn't return any data". I'm assuming it can't read from the iso during boot.
    Is there anything wrong with the ftp path . Are non-anonymous ftp users (oracle in this case) allowed or do I need to use anonymous logon.
    Regards,
    Shahab.

    Hi ,
    I went a step further by using anyonymous ftp in the network path . (rather than user : password) and the VM started .
    The VM boots OK from the staged iso (also tried full DVD contents) and brings up linux installation in text mode only , but for ftp installation mode after asking for the ftp server and directory (which it doesn't take on first attempt) it gives an error "Unable to read package metadata . This may be due to a missing repository directory. Please ensure your install tree has been correctly generated" . It seems its not finding the ftp directory path , although initially it was able to boot from the same ftp path specified in the Network path of the VM configuration wizard.
    Regards,
    Shahab.

  • Import Server fails to import if repository has password

    Hi,
    I am using MDM SP05 Patch2 on Windows Server.
    I added a login password to my repository. Now what happens is the import server fails to import files for that repository giving the error :
    "<i>[MDS=MDM Repos=Repo]: CatMgrClientWorker.Connect() failed. RC: 0xffaa0200 Invalid logon credentials</i>"
    After changing the password, i restarted MDM Server and Import Server both.
    But if i remove the password from my repository, the import runs successfully.
    Someone pls suggest.
    Regards,
    Chintan

    Hi Danish,
    The process of changing the password in .ini files works till MDM 5.5 version.
    From MDM 7.1 version, the password Must be Changed only at the Auxilliary level. Changing it in the .ini file directly will have no effect.
    In MDM 7.1, configuration of some repository-specific MDIS/MDSS parameters moved from the repository sections of mdis.ini/mdss.ini to a new MDIS/MDSS-specific Repository Detail pane in MDM Console.
    When you connect to the Auxilliary servers, you fill find both the configurations for MDIS and MDSS:
    User: The user name MDSS uses to access the MDM repository.
    Password: The password MDSS uses to access the MDM repository.
    Use the same password that you have assigned to Admin in the Console.
    You can refer to the Console Reference guide : page number 263.
    If you have already done this, can you please check the log file and let us know if you find anything.
    Thanks,
    Priti

  • SQL database login for 'SharePoint_Config_2010' on instance 'DB server' failed. Additional error information from SQL Server is included below.

    we formatted Database server and restored all the databases from the backup. but the sharepoint site is giving below error when i access the home page. 
    we have 3 application servers in that two are working fine,  but only one server getting the below error. 
    SQL database login for 'SharePoint_Config_2010' on instance 'db server' failed. Additional error information from SQL Server is included below.
    Login failed for user 'domain\user'.
    could you help what is the issue?

    Hi,
    According to your post, my understanding is that you failed to access sharepoint site with one application server.
    It was due to the MOM/SCOM Agent that has a SharePoint management pack installed, the agents Windows Service runs as ‘Local System’ and thus causes this.
    The workaround is to either kill the SCOM agent service, or set it to run as a dedicated service account.
    In addtion, I recommend to add the logon account of the SharePoint Timer service as a user of the SharePoint_Config database. Give role membership to the account db_owner.
    You also need to add the SharePoint accounts back into sql server.
    There are some similar articles for you to take a look at:
    http://blog.blksthl.com/2012/04/26/login-for-sharepoint_config-login-failed-for-user-domaincomputername-scom-agent/
    http://msdn.microsoft.com/en-us/library/jj551781(v=nav.70).aspx
    http://sharepoint.stackexchange.com/questions/51623/moved-sql-databases-for-sharepoint-2010-and-now-have-a-3351-error
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Server fail to start aft changing password of SID ADM and SAPSERVICE SID

    Please help, i change password of above 2 users on windows, then server fail to start.
    Even after I change back to original password, the system still didn't start.
    Please help as this is urgent.

    Hi,
    sap service is not start in windows due to password change.
    click on start -> run -> services.msc
    navigate to service SAPSID_<instance_nr>
    right click on that -> properties -> logon
    provide the correct user password here.
    proceed same for SAPOsCol service
    regards,
    kaushal

  • Connect from SAP gateway to RFC server failed - Java StandAlone app X SAP RAC System

    Dears,
    I'm developing a Java application (RFC SERVER) with JCo3 and I need to connect to SAP RAC system.
    I have configured the TCP/IP connection via transaction SM59, but when I try to start my server I face the error below (dev_jco_rfc.trc):
    ==========================================================================================
    **** Error file opened at 20140714 112024 Brasilia Time Rel 3.0.10 (2013-08-08) [720.440]
    Error:  >Mon Jul 14 11:20:24,636<    RfcException: [null]
        message: Connect from SAP gateway to RFC server failed
    Connection parameters: TYPE=A DEST=VSPAGUE ASHOST=cpe1601 SYSNR=01 SAPROUTER=/H/155.56.49.28 PCS=1
    LOCATION    SAP-Gateway on host ld7624.dmzwdf.sap.corp / sapgw01
    ERROR       hostname 'cpe1601' unknown
    TIME        Mon Jul 14 16:20:25 2014
    RELEASE     740
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -2
    MODULE      /bas/740_REL/src/base/ni/nixxhl.cpp
    LINE        193
    DETAIL      NiHLGetNodeAddr: hostname cached as unknown
    COUNTER     3
        Return code: RFC_FAILURE(1)
        error group: 102
        key: RFC_ERROR_COMMUNICATION
    ==========================================================================================
    This problem happens when my app executes the line:
    JCoServer myServer = JCoServerFactory.getServer(myServerName);
    My system properties:
    jco.client.lang=EN
    jco.destination.peak_limit=10
    jco.client.client=800
    jco.client.passwd=********
    jco.client.user=********
    jco.client.sysnr=01
    jco.destination.pool_capacity=3
    jco.client.ashost=/H/155.56.49.28/H/cpe1601
    jco.server.connection_count=3
    jco.server.gwhost=/H/155.56.49.28/H/cpe1601
    jco.server.progid=VSPAGUE
    jco.server.gwserv=sapgw01
    jco.server.repository_destination=VSPAGUE
    Using SAP Logon i can connect to server cpe1601 system E16 without problems.
    Please, I really need some help, because my knowledge on SAP platform is minimum.

    Hi Markus,
    Changing ASHOST=ld7624.dmzwdf.sap.corp as you have suggested, I got the error message: Connect to SAP gateway failed ...
    As you could see, the host I'm connecting is from SAP RAC Service.
    Here in our company we have only SAP Logon and my RFC Application, and I can connect to SAP remote system via SAP Logon with this settings:
    System Connection Parameters
    Description: SAP ECC 6.0
    Application Server: cpe1601
    Instance Number: 01
    System ID: E16
    SAProuter String: /H/155.56.49.28/H/
    Below the connection information I received from SAP RAC SUPPORT for testing purposes:
        E16 System:
        SID: E16
        Client: 800
        System Number: 01
        Server: cpe1601
        Component Version: SAP ERP Central Component 6.0 Enhancement Pack 6 Suite on HANA
        User: ********
       Password: ********
       SAProuter String:
       If you don't plan to use SAPRouter at your end,
       /H/155.56.49.28/H/    

  • Crystal report- Connect from SAP gateway to RFC server failed

    Hi All,
    I am trying to connect to a SAP R3 system from crystal reports but it gives me below error.
    Please note : Transports have been imported and also the roles CRYSTAL_ENTITLEMENT and CRYSTAL_DESIGNER. My user is a member of these roles which were release along with Best practice reports v1.31
    Error :
    Logon failed.
    Details: CMALLC : rc= 27 > Connect from SAP gateway to RFC server failed
    Connect_pm GWHOST=10.10.4.63, gwserv=SAPGW30, SYSNR= 30
    Location SAP-gateway on host ply.log.com/sapgw30
    Error timeout during allocate
    TIME ....
    Release 700
    Component SAP Gateway
    Version 2
    RC 242
    Module gwr3cpic.c
    LINE 1996
    Detail no connect of TP sapdb30 from host 10.10.4.63 after 20 sec
    Can you please help us solving this error.
    Thanks
    Chetan

    Hi Stratos,
    The SAP Version is ECC 6.0.
    The below transports have been imported.
    u2022 Open SQL Connectivity transport (K900574.r21 and R900574.r21)
    u2022 Info Set Connectivity transport (K900575.r21 and R900575.r21)
    u2022 Row-level Security Definition transport (K900576.r21 and R900576.r21)
    u2022 Cluster Definition transport (K900585.r21 and R900585.r21)
    u2022 Authentication Helpers transport (K900578.r21 and R900578.r21)
    Thanks & Regards,
    Chetan

  • Connect from SAP gateway to RFC server failed

    Good day and a happy new year to you all!
    I am failing to connect to my SAP BW system from BEx. The logon fails with this message:
    >>>>>Start<<<<<<<<<<
    Error Group
    RFC_ERROR_COMMUNICATION
    Message
    Connect from SAP gateway to RFC server failed
    Connect_PM  GWHOST=10.16.64.77, GWSERV=sapgw02, ASHOST=10.16.64.77, SYSNR=02
    LOCATION    SAP-Gateway on host bwsys / sapgw02
    ERROR       timeout during allocate
    TIME        Sat Dec 31 13:16:19 2005
    RELEASE     640
    COMPONENT   SAP-Gateway
    VERSION     2
    RC          242
    MODULE      gwr3cpic.c
    LINE        1785
    DETAIL      no connect of TP sapdp02 from host 10.16.64.77 after 22 sec
    COUNTER     2
    >>>>>>>>>END<<<<<<<<<<<<
    I only experience this problem when connecting using any BEx component, but, I can successfully connect to the SAP BW system from SAP gui.
    Additionally, I have the service 'sapdp02' defined in the services file, both on the workstation and the server.
    What could be wrong or missing in my configuration?
    Regards,
    Joao.

    hi Joao,
    check if oss note 447882 relevant
    you may ask basis for help
    Symptom
    You want to access the customer system using the BEx Analyzer.The connenction fails:The system displays the error RFC_ERROR_COMMUNICATION.In the detail screen, the system displays message "Partner not reached" (host 192.168.4.2, service sapgw 00).
    Other terms
    SAP Gateway, RFC_ERROR_COMMUNICATION, partner not reached
    Reason and Prerequisites
    The SAP gateway host is deactivated or the TCP/IP port 33xx (where xx corresponds to the system number) is not open.
    Solution
    Issue statement ping <IP address> (In this example:192.168.4.2) No reply: Boot SAP Gateway host required.
    An answer:Check whether the TCP/IP port 33xx is open (where xx corresponds to the system number) and start the SAP gateway.
    The TCP/IP port is also partially defined in the services file as an sapgw<SID> or sapgwxx entry (where xx corresponds to the system number). The services file is in the Windows directory or in WinNT/System32/drivers/etc.

  • Error: Connect from SAP gateway to RFC Server failed

    Hi
    I am trying to connect SAP server using the java (JCO connection), and getting following error. While I am able to connect to the same sever using SAP Logon pad with the same ipaddress (hostname) and logon credentials.
    Please kindly help.
    Erro: Connect from SAP gateway to RFC server failed.
    Connect_PM GWHOST = hostname, GWSER = sapgw03, ASHOST=hostname, SYSNR=03
    LOCATION  SAP-Gateway on host hostname / sapgw03
    ERROR       timeout during allocate
    TIME Wed Oct 31 05:31:45 2007
    RELEASE 640
    COMPONENT SAP-Gateway
    VERSION 2
    RC 242
    MODULE gwr3cpic.c
    LINE 1795
    DETAIL no connect of TP sapdp03 from host hostname after 22 sec
    COUNTER 3

    Hi K Patil,
    Acording to me you are faceing this issue because the entry of your backend System is not in the SLD (System Landscape Directory ) of your server.
    to make this work you have to make entry in the SLD of your server
    fort that plesae acess this link.
    Re: JCo connection Error
    Re: wt is SLD.. how to do configure it
    Please Reward Points if Helpfull.
    Regards
    Vinit
    Edited by: Vinit Soni on Dec 19, 2007 7:20 AM

  • CUUC: DB Export on clustered server fails

    I am doing a CUUC - Combined Ugrade & Unicode Conversion.  On a single server - DEV - this works fine.  Now I'm doing it on a cluster and it is failing.  SAPINST is not recognizing the database server name.
    I am at the at the stage where I use SAPINST to do the database copy of the source system.
    Error message is: "SQL Server does not exist or access denied"
    Problem is that SQL is on a virtual name "serverdb" and sap is on a virtual name "serversap".  SAPINST cannot authenticate against the server "serversap".  If I change SAPINST to use the server "serverdb" then SAPINST does not run the db export steps.
    I'm using SAPINST 701.06.3 - sql 2005 - win 2003 - going to ECC 6.0
    Please help.

    Hello
    If you logon to the server "serversap" - this is the MSCS system that is the active node - logon as <SID>adm and then try opening sqlcmd.
    The syntax will be something like sqlcmd -S serverdb -E
    -E is for trusted logon - this is what SAPInst will try to do.
    You may find you need to update the SQL client or adjust the permission on the database.
    sqlcmd should give you some useful error message or output.
    Thanks
    N.P.C

  • Unable to connect to SAP gateway to RFC server failed(hostname unknow)

    Hi All,
    I am trying to create a new Model(to connect to SAP R/3 server) using the following steps:
    1.Selecting Import Adaptive RFC Model
    2.Entering Model name,package,default logical system names
    3.Selecting the single server option and giving the details of the SAP R/3 server.
    When I try to connect it gives me the following error :
    -Connect from SAP gateway to RFC server failed.
    Also it mentions :
    <b>"ERROR hostname 'sapR3' unknown "</b>
    Where <b>sapR3</b> is the entry corresponding to the IP address in the host file.
    Further I am able to establish a telnet session using the same hostname in command prompt.
    I have searched the Internet for solutions, but I haven't found any yet.Any ideas?
    Regards,
    Kshitij Agrawal

    Hi,
    Please check if the hostname that you specify in the "Reimport Model" GUI of NWDS matches with the application server name specified in your R/3 system.The same can be verified by following three simple steps:
    1) Open the SAP LogOn.
    2) Choose the server to which you wanted to connect and right click on it to get the "properties" in the context menu.
    3) Look for the value entered in the field "Application Server" in the properties window.
    Hope this helps.

  • What causes The Report Application Server failed exception?

    My environment:
    Windows Server 2008 R2  8 cores 6 gig of ram.
    A Windows Service running:
    Oracle 11g
    Oracle 11.2 64 bit client
    C# 4.0 Framwork
    Crystal Reports Visual Studio 2010 13.0.2000
    This window service needs to create 1100 pdf documents generated by crystal reports per hour for a minimum of 8 hours straight.
    These pdf files are written on the local file system.
    The Windows Service runs 3 threads per core.  Each thread can run up to 5 individual CR .rpt files in a sequential order.
    After 4000 pdf documents created, I get the following errors.
    1) The Report Application Server failed
    2) Server is out of memory.
    3)  Not enough memory for operation.
    4) Invalid report file path.
    Using Windows Task Manager Resource Monitor I noticed the following:
    After running 3000 pdf report requests, I stopped the processing pdf reports and noticed hundreds of
    \BaseNamedObjects\CrystalReportXalanInitizeMutex(Pid of my process)
    Why are they there after a close and dispose of the ReportDocument object?
    I ran Reggate ANTS Memory Profiler 7.2 to check for memory leaks in my code and my code that I have control over is clean.
    Why am I getting the exceptions above?
    My code calls ExportReportToSream.  After persisting the stream to disk, I call Close and Dispose on the stream.
    My Code
    ==========================================================================================        public MemoryStream ExportReportToStream(String reportName, LogOnInfo logOnInfo, string reportParams, CrystalExportFormatType formatType)
                ReportDocument reportDoc = new ReportDocument();
                if (!System.IO.File.Exists(reportName))
                    throw new InvalidArgumentException("reportName '" + reportName + "' does not exist", EngineExceptionErrorID.InvalidArgument);
                try
                    lock (lockThis)
                        reportDoc.Load(reportName, OpenReportMethod.OpenReportByTempCopy);
                    ApplyLogOnInfo(reportDoc, logOnInfo);
                    //apply params if any
                    if (!String.IsNullOrEmpty(reportParams))
                        ApplyStringParams(reportDoc, reportParams);
                    return (MemoryStream)reportDoc.ExportToStream((ExportFormatType)formatType);
                //we need to use the try catch, finally so the report can be disposed properly
                catch (Exception)
                    throw;
                finally
                    DistroyReportDocument(reportDoc);
                    reportDoc = null;
            private void ApplyStringParams(ReportDocument reportDoc, string reportParams)
                if (reportDoc == null)
                    return;
                if (String.IsNullOrEmpty(reportParams))
                    return;
                string[] paramsArray = reportParams.Split('|');
                string[] subParamsArray = null;
                //apply report params
                ParameterValueKind type;
                string paramValue = string.Empty;
                ParameterField paramField = null;
                ParameterDiscreteValue discreteValue;
                int x = 0;
                int paramCount = 0;
                for (x = 0; x < reportDoc.ParameterFields.Count; x++)
                    // The ParameterFields object contains all parameters including the subreports.
                    // Subreport params have the name of the subreport.
                    if (reportDoc.Name.Trim().ToUpper() == reportDoc.ParameterFields[x].ReportName.Trim().ToUpper())
                        paramCount++;
    Edited by: Ludek Uher on Dec 15, 2011 7:57 AM
    Edited by: Ludek Uher on Dec 15, 2011 7:58 AM

    if (paramsArray.Length < paramCount)
                    throw new InvalidArgumentException("invalid number of arguments passed to report '" + reportDoc.Name + "' expected " + reportDoc.ParameterFields.Count + " received " + paramsArray.Length, EngineExceptionErrorID.InvalidArgument);
                for (x = 0; x < reportDoc.ParameterFields.Count; x++)
                    if (reportDoc.Name.Trim().ToUpper() != reportDoc.ParameterFields[x].ReportName.Trim().ToUpper())
                        continue;
                    paramValue = paramsArray[x];
                    paramField = reportDoc.ParameterFields[x];
                    type = paramField.ParameterValueType;
                    if (paramField.EnableAllowMultipleValue && paramValue.IndexOf(',') > -1)
                        subParamsArray = paramValue.Split(',');
                        ParameterValues currentParameterValues = new ParameterValues();
                        foreach (string subParamValue in subParamsArray)
                            discreteValue = new ParameterDiscreteValue();
                            discreteValue.Value = subParamValue;
                            currentParameterValues.Add(discreteValue);
                        paramField.CurrentValues = currentParameterValues;
                    else
                        discreteValue = new ParameterDiscreteValue();
                        discreteValue.Value = paramValue;
                        paramField.CurrentValues.Add(discreteValue);
            private bool ApplyLogOnInfo(ReportDocument document, LogOnInfo logOnInfo)
                TableLogOnInfo info = null;
                // Define credentials
                info = new TableLogOnInfo();
                info.ConnectionInfo.AllowCustomConnection = true;
                info.ConnectionInfo.ServerName = logOnInfo.ServerName;
                info.ConnectionInfo.DatabaseName = logOnInfo.DatabaseName;
                // Set the userid/password for the report if we are not using integrated security
                if (logOnInfo.IntegratedSecurity)
                    info.ConnectionInfo.IntegratedSecurity = true;
                else
                    info.ConnectionInfo.Password = logOnInfo.Password;
                    info.ConnectionInfo.UserID = logOnInfo.UserID;
      // Main connection?
                document.SetDatabaseLogon(info.ConnectionInfo.UserID,
                                            info.ConnectionInfo.Password,
                                            info.ConnectionInfo.ServerName,
                                            info.ConnectionInfo.DatabaseName,
                                            true);
                // Other connections?
                foreach (CrystalDecisions.Shared.IConnectionInfo connection in document.DataSourceConnections)
                    connection.SetConnection(logOnInfo.ServerName, logOnInfo.DatabaseName, logOnInfo.IntegratedSecurity);
                    connection.SetLogon(logOnInfo.UserID, logOnInfo.Password);
                    connection.LogonProperties.Set("Data Source", logOnInfo.ServerName);
                    connection.LogonProperties.Set("Initial Catalog", logOnInfo.DatabaseName);
                // Only do this to the main report (can't do it to sub reports)
                if (!document.IsSubreport)
                    // Apply to subreports
                    foreach (ReportDocument rd in document.Subreports)
                        ApplyLogOnInfo(rd, logOnInfo);
                // Apply to tables
                foreach (CrystalDecisions.CrystalReports.Engine.Table table in document.Database.Tables)
                    TableLogOnInfo tableLogOnInfo = table.LogOnInfo;
                    tableLogOnInfo.ConnectionInfo = info.ConnectionInfo;
                    table.ApplyLogOnInfo(tableLogOnInfo);
                    if (!table.TestConnectivity())
                        string strMsg = "ApplyLoginInfo failed to apply log in info for table " + table.Name + ",  Crystal Report: " + document.FileName + " DB: " + logOnInfo.DatabaseName + " UserID: " + logOnInfo.UserID;
                        throw new InvalidOperationException(strMsg);
                //verify logon info
                document.VerifyDatabase();
                return true;
            private void DistroyReportDocument(ReportDocument document)
                if (document == null)
                    return;
                 document.Close();
    Edited by: Ludek Uher on Dec 15, 2011 7:59 AM

Maybe you are looking for

  • Internet stopped working on MBA after latest firmware update. Help please!!!

    Internet stopped working after installing the latest firmware update. WiFi still connects to router, our other mac desktop still connects to internet as usual (same network). I can't even re-install the MBA OS since it needs an internet connection!!!

  • Error when calling ejb.create() call

    Hi Folks, I am trying to create a simple CMP bean with J2EE1.4 but when I call ejb.create I get the following exception :- Exception in thread "main" java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.R

  • Copy tftp many files

    Hi everybody, I need to copy many files into the router.i tried to copy a list of "copy tftp://ip-address/file-name flash:" Is there a way to do it easier and faster without asking question for each copy

  • Why we use ESSCMD?

    HI, I am new in Hyperion, doing MaxL command assignments. Now I understand that whatever task we will do with maxL command the same task we will do by using ESSCMD. Then what is the difference between MaxL & ESSCMD? When should I go for startMaxL or

  • Skype is acting really odd ...

    So I was on my main skype account yesterday when I was mysteriously logged out. I tried using all of my passwords and none of them have worked, I then tried to use the recover password function, I got an email and typed in a new password, but then it