How to connect a remote server in my local pc?.

I have a code to connect my server in visual basic 6.0 code, my sap version is 2007 A.
Private Sub ConnectToCompany()
    '// Initialize the Company Object.
    '// Create a new company object
    Set oCompany = New SAPbobsCOM.Company
    '// Set the mandatory properties for the connection to the database.
    '// To use a remote Db Server enter his name instead of the string "(local)"
    '// This string is used to work on a DB installed on your local machine
    oCompany.Server = "(local)"
    oCompany.language = ln_English
    '// Use Windows authentication for database server.
    '// True for NT server authentication,
    '// False for database server authentication.
    oCompany.UseTrusted = True
    ChooseCompany.Show vbModal, Me
  End Sub
but I want to connect my remote server and I didn't. Do i forgeting  something??... I changed "(local)" for my name remote server or my local Ip for remote server. But maybe my user name windows for autentication. there is Someone who can help me please. Which one is the correct data I need??

hello freind
i think yu are missing  company usernsme,password,db type like this code
private void Connect()
            try
                Cursor = System.Windows.Forms.Cursors.WaitCursor;//Change mouse cursor             
                oCompany = new SAPbobsCOM.Company();               
                oCompany.DbServerType =  (SAPbobsCOM.BoDataServerTypes.dst_MSSQL2008);
                oCompany.Server = Properties.Settings.Default.ServerName.ToString();// change to your company server
                oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English; // change to your language
                oCompany.UseTrusted = false;
                oCompany.DbUserName = Properties.Settings.Default.UserID.ToString();
                oCompany.DbPassword = Properties.Settings.Default.Password.ToString();
                // Set connection properties
                oCompany.UserName = txtUSer.Text;
                oCompany.Password = txtPassword.Text;
                oCompany.CompanyDB = Properties.Settings.Default.DatabaseName.ToString();            
                //Try to connect
                lRetCode = oCompany.Connect();
                if (lRetCode != 0) // if the connection failed
                    int temp_int = lErrCode;
                    string temp_string = sErrMsg;
                    oCompany.GetLastError(out temp_int, out temp_string);
                //  u.action_status("Connection Failed - " + temp_string, this);
                if (oCompany.Connected) // if connected
                    this.Text = this.Text + " - Connected to " + oCompany.CompanyDB;
                    CheckUser();
                Cursor = System.Windows.Forms.Cursors.Default; //Change mouse cursor         
            catch (Exception)

Similar Messages

  • How to connect to remote server with jmx from jvisualvm

    I have a WL 10.3.2 domain running on a single box. The adminserver and managed server are running on the same box, on different ports (7001 and 8001, respectively).
    I have a Spring application deployed to the managed server and I've configured it to register a Spring bean as a JMX mbean.
    When I run this entire configuration on my laptop, I can run jvisualvm and connect to my server and see and manipulate my registered mbean.
    I'm having trouble figuring out how to get a remote connection working, however. I want to run jvisualvm on my laptop and connect to the remote server.
    I first did "Add Remote Host", where I specified the IP address. It appears that this was created successfully, and it apparently was able to determine the DNS name for it.
    I then tried to add a JMX connection. In the "Connection" field, I just entered the IP address followed by a colon and 8001 (managed server port number).
    In the "Use security credentials" section, I entered the weblogic admin principal and credentials.
    When I click OK, it chugs for a while and eventually gives up, saying:
    Cannot connect to [email protected]:8001 using
    service:jmx:rmi:///jndi/rmi://nn.nn.nn.nn:8001/jmxrmi
    What might I be missing?

    I've resolved this. At least I was able to configure an authenticated connection. It doesn't use SSL yet, but I'm ok with that for a while.
    Resolving this only required changing the command line parameters for the managed server, and being aware of the "jmxremote.access" and jmxremote.password" files. The following blog article helped a lot: [http://www.dzone.com/links/r/monitoring_your_java_application_with_jmx_part_2.html] .
    I'm now passing the following command-line parameters:
    -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8888 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true
    The default "role" configured in "jmxremote.access" is "controlRole", and the "jmxremote.password" file specifies the credentials for that principal. I simply used that principal and credential in JVisualVM, and the connection succeeded.
    And I just used the "host:port" form, not the protocol form.
    Edited by: david.karr on Feb 4, 2011 12:47 PM

  • F107 error ubnable to establsh connect to remote server

    Groupwise 8.0.2 with netware 6.5 sp8. Getting error when startup the POA during a boot up.

    On 10.05.2011 00:06, sl0000 wrote:
    >
    > Groupwise 8.0.2 with netware 6.5 sp8. Getting error when startup the POA
    > during a boot up.
    Somewhere in your POA configuration is a path to a remote server defined
    (which you really shouldn't do on purpose), and the POA doesn't know how
    to connect to that server.
    Start with the paths in the .poa config file.
    CU,
    Massimo Rosen
    Novell Product Support Forum Sysop
    No emails please!
    http://www.cfc-it.de

  • How to connect to iPad server for email

    How to connect to iPad server to get email

    What do you mean by "iPad server"? Who is your email provider? To add an email account to your iPhone, see Settings>Mail, Contacts, Calendar>Add New Account. If your email provider is not one of the listed ones, you may need to get specific settings from your provider.
    Best of luck.

  • SharePoint Online - "Unable to connect to remote server"

    Hi,
    I have a Provider Hosted App which gets the data from a different site collection. Now, when i try to connect to a different site collection, the TokenHelper
    class gives me an error -  "Unable to connect to remote server". 
    The error is thrown in the below line:
    acsMetadata = webClient.DownloadData(acsMetadataEndpointUrlWithRealm);
    The above error is not thrown always. It throws occasionally. I am not getting the reason for this. Could anybody explain what is the problem, please? 

    Hi,
    According to your description, my understanding is that the error "Unable to connect to remote server" occurs in the WebClient.DownloadData Function.
    As this error throws occasionally, it should be related to the network issue, for a better troubleshooting, I suggest you can check the detailed error message using Fiddler.
    Fiddler
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SSRS 2008 - Unable to connect to remote server

    Win2k3 R2 SP2/SQL Server 2008 instance with SSRS/Visual Studio 2008
    I installed SQL 2008 and SSRS with native mode default configuration.
    All SQL 2008 services are running under "NT Authority\Network Service" account.
    When i try to deploy a new report, I get the "Unable to connect to remote server" error.
    The deploy operation creates empty folders on the web server (hosted by the SQL Server 2008 service)
    for e.g.
    my instance name is <machinename>$sql2008. i configured the WebService URL and the Reports Manager URL to port 85
    the deploy from VS creates ssrs2008Test folder and a Shared Data Sources folder in the following virtual directory
      - Report Manager URL: http://<machinename>:85/Reports_SQL2008/
      - Web Service URL: http://<machinename>:85/ReportServer_SQL2008
    however these folders are empty w/ no .rdl or .rds file. and i get the "Unable to connect to remote server"  error in Visual Studio 2008 when i deploy it.
    is there something else i have to tweak in either the SQL Server/SSRS Configuration Manager or the Windows Server Settings(like port settings or group policy) to get the reports to work?
    thanks
    -vt

    SecureConnectionLevel = 2
    From logFile:
    appdomainmanager!DefaultDomain!740!08/29/2008-08:00:30:: i INFO: Appdomain:6 ReportServer_SQL2008_0-3-128644956308203194 started.
    appdomainmanager!ReportServer_0-3!740!08/29/2008-08:00:31:: i INFO: RS authentication mode is 5; effective ASP.NET authentication mode is Windows. vdir=/ReportServer_SQL2008.
    httpruntime!ReportServer_0-3!740!08/29/2008-08:00:31:: i INFO: Report Builder manifest file C:\Program Files\Microsoft SQL Server\MSRS10.SQL2008\Reporting Services\ReportServer\ReportBuilder\ReportBuilder_2_0_0_0\MSReportBuilder.exe.manifest not found.
    appdomainmanager!DefaultDomain!740!08/29/2008-08:00:31:: i INFO: Appdomain:6 ReportServer_SQL2008_0-3-128644956308203194 initialized (#2).
    webserver!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Reporting Web Server started
    resourceutilities!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Reporting Services starting SKU: Developer
    resourceutilities!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Evaluation copy: 0 days left
    resourceutilities!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Running on 1 physical processors, 4 logical processors
    runningjobs!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Running Requests Scavenger timer enabled: Next Event: 60 seconds.  Cycle: 60 seconds
    runningjobs!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Running Requests DB timer enabled: Next Event: 60 seconds.  Cycle: 60 seconds
    runningjobs!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Memory stats update timer enabled: Next Event: 60 seconds.  Cycle: 60 seconds
    library!ReportServer_0-3!1588!08/29/2008-08:00:38:: Call to GetItemTypeAction(/ssrs2008Test).
    library!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Catalog SQL Server Edition = Developer
    crypto!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Initializing crypto as user: NT AUTHORITY\NETWORK SERVICE
    crypto!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Exporting public key
    crypto!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Performing sku validation
    crypto!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Importing existing encryption key
    library!ReportServer_0-3!740!08/29/2008-08:00:39:: Call to GetItemTypeAction(/Data Sources).
    library!ReportServer_0-3!1588!08/29/2008-08:00:39:: Call to GetItemTypeAction(/Data Sources/masterDB).
    library!ReportServer_0-3!740!08/29/2008-08:00:40:: Call to GetItemTypeAction(/ssrs2008Test/sp_who2).

  • How to Connect to Remote ECC 5.0 System from EP ?

    Hi,
       We are using EP6.0 - located in India, and our client ECC5.0 System is in US. Can anyone please let me know the steps how to connect to Remote ECC 5.0 System?.
    Thanks in advance.
    Krishna Kumar J

    Hi,
    Finally we have successfully got connected the ECC 5.0 system which is located in the remote network thru VPN Connection using the same connecting procedure for the local R/3 System.
    Thanks & Regards
    Krishna Kumar

  • Cannot connect to remote server

    When trying to make connection to remote server, I receive a
    message, "FTP, error, cannot make connection to host-Logon and
    Password are incorrect... However, settings are correct as I could
    get on in the past and when testing for remote site in site
    management the message states "Adobe DW Cs3 connected to your web
    server correctly".
    My OS is MAC 10.4.11 My site developer can get on with DW8
    using a PC and a MAC. Have tried everything short of deactivation
    and reinstall.

    Plese tell us what your remote site definition has in each
    field (you can
    omit the password).
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "TJMax412" <[email protected]> wrote in
    message
    news:gbtj7m$94l$[email protected]..
    > When trying to make connection to remote server, I
    receive a message,
    > "FTP,
    > error, cannot make connection to host-Logon and Password
    are incorrect...
    > However, settings are correct as I could get on in the
    past and when
    > testing
    > for remote site in site management the message states
    "Adobe DW Cs3
    > connected
    > to your web server correctly".
    > My OS is MAC 10.4.11 My site developer can get on with
    DW8 using a PC and
    > a
    > MAC. Have tried everything short of deactivation and
    reinstall.
    >

  • Premiere Elements 8 "Could not connect to remote server" when sharing to YouTube

    I'm trying to share my Adobe Premiere Elements 8 video to YouTube through the task panel, but I get a "Could not connect to remote server" message. My computer is connected to the Internet. I notice at the bottom of the message there is "Open the Opera Help" and "Go to Opera's on-line support desk." I don't have Opera on this computer, so maybe that's it?

    No. You don't need Opera.
    Have you gone to Edit/Preferences and ensured that your Web Services are up to date?
    Otherwise, it could be that YouTube changed settings on us again. If that's the case, you'll need to post to it manually, per the FAQs to the right of this forum.
    http://forums.adobe.com/thread/390608?tstart=30

  • Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic. It was running the command 'Discover-ExchangeServer -UseWIA $true -SuppressError $true -CurrentV

    I installed Exchange Server 2010 inside my VMWare Windows Server 2008 Ent R2. And After successful installation  when I try to open my Exchange Server Console, I am getting the following error message. I am very new to Exchange server please help me
    to solve this problem.
    Initialization Failed
    The following error occurred while searching for the on-premises Exchange server:
    [win-.local] Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic. It was running the command 'Discover-ExchangeServer -UseWIA $true -SuppressError
    $true -CurrentVersion 'Version 14.1 (Build 218.15)''.
    Thanks Vivek
    SharePoint Foundation 2010 Book
    http://www.redpipit.com

    Hi,
    Please have a look at the article below:
    Troubleshooting Exchange 2010 Management Tools startup issues
    http://blogs.technet.com/b/exchange/archive/2010/02/04/3409289.aspx
    Resolving WinRM errors and Exchange 2010 Management tools startup failures
    http://blogs.technet.com/b/exchange/archive/2010/12/07/3411644.aspx
    Besides, please run the cmdlet below:
     set-user alias -remotepowershellenabled$true
    Xiu Zhang
    TechNet Community Support

  • How to connect MS-sql server with SAP BW

    hi all,
    i want the connection procedure to how to connect MS-sql server with SAP BW.so that i can extract the data from ms sql server and can create cubes using that data.please help me in this issue.

    Hi Vamshi,
    Go through this DOC it explains u how to connect to other data bases like SQL...
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/58f4db47-0501-0010-a2bf-ff01b150fdff]
    this is a thread related to connect the SQL server..
    [DB Connect MS SQL Server;
    Regards,
    NR
    Assign points if helpful...

  • Suddenly, thunderbird doesn't connect to remote server when i click "get messages".

    Linux (ubuntu studio), 64 bit. Suddenly, thunderbird doesn't connect to remote server when i click "get messages". It just says "(account name): Connected to (mail server)" for a second or two at the bottom, then nothing. In the server logs, i get:
    popa3d[6408]: Didn't attempt authentication
    Trying to get my e-mail also seems to cause a bunch of these errors on the server:
    (server) kernel: [18295.775491] lockd: cannot monitor laptop
    where "laptop" is the client machine.
    The problem seems to be caused by my mailbox files (Inbox and Inbox.msf) - when i create a clean ~/.thunderbird directory, i can get my e-mails, but when i place my mailbox files in this account's Mail directory, the problem comes back. Even if i place it as another name, and not Inbox.

    I should add the following information:
    - Neither "safe mode" or rebuilding the global-messages-db.sqlite file fixes the problem.
    - Seamonkey has no problems with my Inbox and Inbox.msf file.
    - The Inbox and Inbox.msf files are symlinks to files on a NFS filesystem.
    - Downgrading to an earlier version of thunderbird doesn't fix the problem.
    - Even if i remove the mail file from an account, the problem persists.
    - I confirmed that i can telnet to the server on the pop3 port and login with the raw protocol.
    The above mentioned lockd errors make me think this is a NFS related error, but if that's the case, why is seamonkey able to read my Inbox file without problems but not thunderbird?

  • Connecting to remote server failed - WinRM client cannot complete the operation within the time specified

    Exchange 2010 SP2 Active DAG Node.  Cannot cannot to Exchange Admin Console with the following errors and these errors change from time to time ... and some times it works ...
    attempt to connect to http://DAGNODE.domain.com/powershell using "kerberos" authentication failed: connecting to remote server failed with the following message: The WinRM Client cannot complete the operation
    within the time specified. Check if the machine name is valid and is reachable over the network and firewall exception for windows remote management service is enabled.
    thanks,

    Hi,Philip,
    Are you running the DAG on Windows server 2008 R2?If so check the following KB to see if they apply to your issue
    http://support.microsoft.com/kb/976839
    http://support.microsoft.com/kb/2294243
    And you can check if the solutions in these old threads with similar error message do the trick for you.
    http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/54af902c-d718-4656-8a25-7c150e4b0e81/
    http://social.technet.microsoft.com/Forums/en-US/exchangesvradminlegacy/thread/baa1af25-001a-432d-86a0-25c05655e63c/
    Regards,
    Sharon
    Sharon Shen
    TechNet Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.

  • How to connect a CVS server with remote Hosts(NWDS7.0)

    Hi Frndz..
    I installed CVSNT server in one machine n itz workiing fine with that NWDS in that machine , now i want make connect that CVS server from remote machines NWDS's to use that CVS server as a central repo'
    Can anyone guide me how can i connect that server from remote machines thru NWDS.
    Thnaks in Advance
    Regards
    Rajesh

    rajesh,
    did u check this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d079e754-8c85-2b10-8b9a-b36db5262122
    Thanks
    Bala Duvvuri

  • How to connect to remote MS SQL Server?

    I use:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:iweb",userid,passwd);
    to connect to my "iweb" database on MS SQL Server running locally. Works great.
    But now I want to connect to this same database that is now running on a remote MS SQL Server
    on port 1433 of a machine with IP address 123.456.789.123.
    What is the magic incantation to make this happen? I have been trying variations of:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String conString = "jdbc:odbc:DRIVER={SQL Server};SERVER=123.456.789.123:1433;"
    + "DATABASE=iweb;UID=" userid ";PWD=" passwd ";";
    Connection con = DriverManager.getConnection(conString);
    but no joy. Any help would be greatly appreciated. Surely this is a common problem
    but I'm having a heck of a time finding helpful docs that spell it out.
    -Dave Maffitt [email protected]

    Configuring a local DSN to point to the remote server is a good solution, but, I am still puzzled by something. On page 216 of Core Java 2, Volume 2, Advanced Features, there is an example of a database URL using a network address as part of the value. The example reads in part:
    For example: jdbc:odbc://whitehouse.gov:5000/CATS;PWD=Hillary
    would connect to the CATS database on port 5000 of whitehouse.gov using ODBC attribute value of PWD set to "Hillary".
    This example is what lead me to believe that I might be able to connect to a remote Data Source if I had the right syntax in the URL. My attempts at duplicating this example with my own MS SQL Server 7.0 database are failing. Have you tried this with any success?

Maybe you are looking for

  • Installing OSX on new Raid setup

    HI Everyone, i have four internal 250 Gb hard drives, i switched the startup dick to an external so I could set up the raid. I set up a stripped raid consisting of two mirrored raids per the Apple database. it seems to work in as much as my four disk

  • Running RH8 remotely

    All, my manager wants to install RH8 on a serverinstead of running it locally, so that any authorized developer can update an RH project (he wants to do this in order to maintain a projec i built, as my contract ends this week).  I am concerned that

  • In iPhoto can you label multiple photos in one step or do you have to label them one by one?

    In iPhoto can you label multiple photos in one step or do you have to label them one by one?

  • Char Values on query

    On left hand side of query designer what are the char values on query for an infoobject is it master or transaction data. Regards, Manish

  • HT1218 it is not working at all with windows 8... what can i do?

    hi... i got a new pc with windows 8 OS and airport utility SW is not detecting the time capsule at all. however the pc is perfectly connected to the the TC wireless network. what can i do?