Unable to connect remote databse via windows XP(using Instant Client)

I have downlaod instant Client and the PATH env variable automatically is set when I install Instant Client. Then I try to connect using the following(from the path C:/XEClient/bin):
sqlplus username/passwd@//host:[port][service name]
I get the following error:
ORA-12170: TNS: Connect timeout occurred
When I ping the host I get reply.
Also I am able to connect to that same database thru perl( so I presume there is no problem with the database not avaiable or port not open etc), where additionally ORACLE_HOME and ORACLE_SID env variable are set to the path in the remote machine. The databse version is Oracle 9.2
Below is the sqlnet.log:
Fatal NI connect error 12170.
VERSION INFORMATION:
     TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
     Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
Time: 30-AUG-2006 14:56:03
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: Message 12535 not found; No message file for product=NETWORK, facility=TNS
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Message 505 not found; No message file for product=NETWORK, facility=TNS
nt secondary err code: 60
nt OS err code: 0
Client address: <unknown>
===========================================================
Am I missing some set up.
Can anybody help please...I have been trying since last 3 days.
Thanks

Hi Laurenz,
Sorry to say...but it still does not connect(incorporated your suggestions), nor is the trace generated. sqlnet.log looks no different. As about any other oracle clients...I did not have any until yesterday evening when we installed the entire 10g oracle...client and database.
Anyways now too after having installed oracle 10g on D drive, no succes in connecting to remote databse.
Two questions:
1. Is XE client compatible with 10g database? As I am trying to connect to 9.2 version as mentioned in my initial query.
2. When I ping the host I do get reply. BUT when I telnet i.e.
telnet host port
....it says "could not open connection to the host, on port XXX: connect failed"
Does it mean there is a firewall at the remote end which is preventing the successfull connection? But then how do I connect thru' Perl with no extra info...
Any other suggestion please let me know...and also do you suggest I uninstall all oracle clients other than XE...or is there any way out ...having multiple clients?
Another query...hope I can use toad after having set up the XE client?
Thanks in advance...
Message was edited by:
user527367

Similar Messages

  • I am unable to connect to my RackSpace Windows Server via ARD. I have added a computer entering the ip address, username, and password but I can't establish a connection. I am missing a setting or to step that is different in ARD?

    I am unable to connect to my RackSpace Windows Server via ARD. I have added a computer entering the ip address, username, and password but I can't establish a connection. I am missing a setting or to step that is different in ARD?

    ARD only works with Windows computers if the Windows computer is running VNC server software.  Even then it can only control and observe.  Do you have this installed?

  • Unable to connect to internet via the proxy - Proxy set up OEM 12c

    Windows server 2008 64 bit
    OEM 12.1
    I have to get agent software for Windows server 2003, and as far as I know the only way is through self update in OEM, is this the only way?
    But when I input my Oracle support credentials I get an error :
    Unable to complete network operation against My Oracle Support. Please check network connectivity to Oracle Support Site.
    Proxy settings in EOM are set for https, but not sure about the realm, I input our damain address "company.corp"
    test successful :
    https://updates.oracle.com was tested successfully using the Proxy.
    Go to set oracle support credentials error :
    Unable to complete network operation against My Oracle Support. Please check network connectivity to Oracle Support Site.
    In the emoms.log file :
    2012-07-22 18:28:50,753 [EMUI_18_28_49_/console/admin/rep/proxy/server] ERROR core.patch logp.251 - [EM-01942] Unable to connect to internet via the proxy. Http Proxy - company:80. Destination URL - https://server:proxy/emd/main/. Protocol - https. Error Message - Cannot establish proxy connection: 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. Forefront TMG is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests.  ).
    java.io.IOException: Cannot establish proxy connection: 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. Forefront TMG is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests.  )

    Please check the following section in
    http://docs.oracle.com/cd/E24628_01/install.121/e24089/firewalls.htm#EMADV626
    Enabling Oracle Management Service to Access My Oracle Support
    Unless online access to the Internet is strictly forbidden in your environment, Oracle Management Service should be enabled to access My Oracle Support. This access is necessary to enable updates and patches to be downloaded, for example.
    At minimum, the following URLs should be made available through the firewall:
    aru-akam.oracle.com
    ccr.oracle.com
    login.oracle.com
    support.oracle.com
    updates.oracle.com
    About the dontProxyfor Property
    When you configure the Oracle Management Service or a Management Agent to use a proxy server, it is important to understand the purpose of the dontProxyFor property, which identifies specific URL domains for which the proxy will not be used.
    For example, suppose the following were true:
    You have installed the Oracle Management Service and several Management Agents on hosts that are inside the company firewall. These hosts are in the internal .example.com and .example.us.com domains.
    You have installed several additional Management Agents on hosts that are outside the firewall. These hosts are installed in the .example.uk domain.
    You have configured Enterprise Manager to automatically check for critical software patches on My Oracle Support.
    In this scenario, you want the Oracle Management Service to connect directly to the Management Agents inside the firewall without using the proxy server. On the other hand, you want the Oracle Management Service to use the proxy server to contact the Management Agents outside the firewall, as well as the My Oracle Support site, which resides at the following URL:
    http://support.oracle.com
    The following properties will prevent the Oracle Management Service from using the proxy server for connections to the Management Agents inside the firewall. Connections to My Oracle Support and to Management Agents outside the firewall will be routed through the proxy server:
    proxyHost=proxy42.example.com
    proxyHost=80
    dontProxyFor=.example.com, .example.us.com
    PS: Cygwin has nothing to do with My Oracle Support connection. Cygwin is ONLY required for agent deployment using agent push from OMS.

  • SQLServer 2008 Unable to connect to databse;

    Hi experts,
    I have been installed MSSQL 2008 and half to install SAPB1 2007 PL49, but when i install common upgrade->Integration component, it show an error " Unable to connect to databse; verify that database TCP/IP port service is started."
    But i have set the port to "1433". Most important, didn't  have choice for me to MS SQLServer2008 only show the MS SQLServer2000 and MS SQLServer2005.
    Can i skip the install or upgrade the integration Component?
    thankls.
    Danny

    Hi Laurenz,
    Sorry to say...but it still does not connect(incorporated your suggestions), nor is the trace generated. sqlnet.log looks no different. As about any other oracle clients...I did not have any until yesterday evening when we installed the entire 10g oracle...client and database.
    Anyways now too after having installed oracle 10g on D drive, no succes in connecting to remote databse.
    Two questions:
    1. Is XE client compatible with 10g database? As I am trying to connect to 9.2 version as mentioned in my initial query.
    2. When I ping the host I do get reply. BUT when I telnet i.e.
    telnet host port
    ....it says "could not open connection to the host, on port XXX: connect failed"
    Does it mean there is a firewall at the remote end which is preventing the successfull connection? But then how do I connect thru' Perl with no extra info...
    Any other suggestion please let me know...and also do you suggest I uninstall all oracle clients other than XE...or is there any way out ...having multiple clients?
    Another query...hope I can use toad after having set up the XE client?
    Thanks in advance...
    Message was edited by:
    user527367

  • Hi, i am having a problem in my ipad 2 , it is not showing main screen just showing a black blank screen in which downloading icon is only shwn which is continously and when i connect to itunes via windows 7 it showing this error (0xE8000065) can any one

    hi, i am having a problem in my ipad 2 , it is not showing main screen just showing a black blank screen in which downloading icon is only shwn which is continously and when i connect to itunes via windows 7 it showing this error (0xE8000065) can any one

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    Finally, if the Restore doesn't work, let the battery drain completely.  Then recharge for at least an hour and Restore again.

  • HT4623 After ios update on my ipad mini i am unable to connect to internet via cellular connection

    i Have update ios 7.0.2 on my ipad mini. But after update of ios 7.0.2 i am unable to connect to internet via cellulau connection. Cellular connection appears on my screen but i get error as "Could not activate cellular data network you are not subscribed to a cellular data service". Cellular connection was working prior to ios 7.0.2 update. Please help.

    GOT MINE FIXED -
    THE 7.0.3 update reported my iPhone as LOST or STOLEN  to Verizon.
    They suspended my iPhone service immediately (as I would expect them to) and THAT is why I couldn't get on.
    Called Verizon wireless - they restored me in 30 seconds - EVERYTHING WORKS AGAIN.
    They said "we've been doing this ALL MORNING."
    Hope this works for others, too!
    You blow bright orange chunks, Microsoft, er, I mean, Apple.

  • Unable to connect wirelessly on an Acer laptop using Vista

    I have a Windows XP connected wirelessly to my Verizon Router M1424WR, but I am unable to connect wirelessly on an Acer laptop using Vista. The Vista can only connect with Ethernet. It will not accept the WEP key.

    #1 Check the level of WEP. Two examples: 64 Bit, 128 Bit.
    #2 And check to be sure, if you use a WEP password of Hex or Ascii.
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • Error in Application.Run(DisplayLoginForm) and Remote Authentication in SharePoint Online Using the Client Object Model

    Hi guys
    I Think that is a simple error, but I don’t have enough knowledge in .NET apps.
    I make an console app that use Remote Authentication in SharePoint Online Using the Client Object Model, that a I downloaded from MSDN.
    This App run ok.
    But when I like to make a Windows From App. This component send me an error in Application.Run(DisplayLoginForm)
    This err msg :
     An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll
    Additional information: Starting a second message loop on a single thread is not a valid operation. Use Form.ShowDialog instead.
    Is there any way to use a form inside a windows form?
    Thank in advance
    Ramiro
    Ramiro B

    Hi,
    Based on the error message, please do as following:
    1. Check your code logic below:
    void btn_Click(object sender, System.EventArgs e)
    Thread t = new Thread(StartMyForm);
    t.TrySetApartmentState(ApartmentState.STA);
    t.Start();
    public static void StartMyForm()
    Application.Run(new MyForm(..));
    2.Try to add the following code line in your code.
    Application.Restart();
    If the issue still exists, please provide your requirement and code for a further research.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • OCIEnvCreate fails with -1 using Instant Client 10.2.0.1 on Windows XP

    I have a working application (using the full Oracle install) and I'm trying to see if I can get it to work using the instant client. I installed the client, changed my path and rebooted. According to the instant client how to install - it should just work but then if everything worked like it was documented then lots of support folks wouldn't have jobs. The only parameter I'm setting is the OCI_THREADED flag. The database is on a different server - but that shouldn't matter I'm not getting that far. I am logged into an administrator account on the client box - so I'm not sure what else could be wrong. Also if anyone knows why we always seam to need administrator accounts that would be a great piece of info too.

    It should work if you follow the instructions on the instant client page on OTN:
    http://www.oracle.com/technology/tech/oci/instantclient/index.html
    Are you able to connect to SQL Plus after setting up instant client ?

  • Unable to Connect to my organization's EAS using MS Mail app since upgrade to Windows 8.1 -- certificate error

    Last November, my ASUS laptop forced me to update to Windows 8.1.  Since then, I cannot connect to my organization's mobile EAS using the Mail/Calendar/People app.  The Mail app says "We could not connect to .... because of problems with its
    digital certificates.  Contact your system administrator for info."  I also tried to delete the account and recreate it.  At the account info screen, it gave a related error message, stating "To connect to this account, you need a
    valid certificate on the PC. Contact your system administrator for more info."
    In trying to recreate the account, I note that the 8.1 Mail app appears to have combined all EAS connections -- I seem to recall different options for connecting previously, including one that was more specific to mobile EAS connections.  My organization
    only supports connection to mobile devices, and I continue to be able to connect via Windows phone, Android (iOS devices also supported).
    I have done some digging and see that in my Windows Certificate Manager, there is a Personal Certificate with an error message. It's a "Token Signing Public Key" for "Client Authentication" using an RSA Public Key, but under the Certification
    Path tab, the status states "The issuer of the certificate could not be found."  I suspect this is the certificate that my organization's server is sending but is no longer being recognized by Windows 8.1.
    My organization has been unwilling to support me on this.  They point to the fact that all other devices work, my connection worked with Windows 8.0, and they don't have enough users that connect via Windows 8.1 laptops/tablets to troubleshoot on their
    end.  They also don't want to change setting that then cause other users to lose connectivity on the more commonly used mobile devices.
    So, to trouble shoot myself, I have looked up posts on related issues and I have done all of the following to no avail:
    - Make sure my Windows is up to date, including that latest Certificate/Credential update;
    - Uninstalled the Mail/Calender/People App, restarted, and reinstalled it;
    - Had MS Online support try to trouble shoot.  They created a test account and tried to connect using that to no avail.
    Notably, I have two Windows 8.1 machines -- my wife and I got matching ASUS laptops that both upgraded to 8.1 from 8.0  -- and I am unable to connect to my organization's mobile EAS using either machine. 
    To me, this is clearly a Windows 8.1 issue.  The Mail/Calendar/People app should interface with mobile EAS exactly the same way that other mobile OSes do.  Apparently this was the case with Windows 8.0, but no longer. 
    The last thing I'll add is that my organization requires password and remote wiping when connecting to the mobile EAS.  But, this wasn't an issue when I had Windows 8.0 -- it connected fine and mandated password and remote wipe features.
    NOTE: I originally posted this question on the Windows 8.1 Tehchnet forum and was told by an MS Engineer Soumya Sunda Debroy to repost in this forum. 
    PLEASE ADVISE.  YOUR HELP IS APPRECIATED.
    - Dan

    Per the post above, I was pointed to Microsoft's remote connectivity analyzer and it appears to me that the GoDaddy Certificate -- which was compatible with Windows 8, is not compatible with Windows 8.1.  (See results below.
    I've also seen posts in other threads to "Ignore SSL errors" -- my Mail app doesn't present me that option, even though I uninstalled and reinstalled it.  So, can anyone help?
    Testing the SSL certificate to make sure it's valid.
    The certificate passed all validation requirements.
    Additional Details
    Elapsed Time: 171 ms.
    Test Steps
    The Microsoft Connectivity Analyzer is attempting to obtain the SSL certificate from remote server damobile.sccgov.org on port 443.
    The Microsoft Connectivity Analyzer successfully obtained the remote SSL certificate.
    Additional Details
    Remote Certificate Subject: CN=*.sccgov.org, OU=Domain Control Validated, Issuer: SERIALNUMBER=07969287, CN=Go Daddy Secure Certification Authority, OU=http://certificates.godaddy.com/repository, O="GoDaddy.com, Inc.", L=Scottsdale, S=Arizona,
    C=US.
    Elapsed Time: 84 ms.
    Validating the certificate name.
    The certificate name was validated successfully.
    Additional Details
    The host name that was found, damobile.sccgov.org, is a wildcard certificate match for common name *.sccgov.org.
    Elapsed Time: 0 ms.
    Validating certificate trust for Windows Mobile devices.
    The certificate is trusted and all certificates are present in the chain.
    Test Steps
    The Microsoft Connectivity Analyzer is attempting to build certificate chains for certificate CN=*.sccgov.org, OU=Domain Control Validated.
    One or more certificate chains were constructed successfully.
    Additional Details
    A total of 1 chains were built. The highest quality chain ends in root certificate OU=Go Daddy Class 2 Certification Authority, O="The Go Daddy Group, Inc.", C=US.
    Elapsed Time: 30 ms.
    Analyzing the certificate chains for compatibility problems with Windows Phone devices.
    Potential compatibility problems were identified with some versions of Windows Phone.
     <label for="testSelectWizard_ctl12_ctl06_ctl02_ctl02_ctl01_tmmArrow">Tell
    me more about this issue and how to resolve it</label>
    Additional Details
    The certificate is only trusted on Windows Mobile 6.0 and later versions. Devices running Windows Mobile 5.0 and 5.0 with the Messaging and Security Feature Pack won't be able to sync. Root = OU=Go Daddy Class 2 Certification Authority, O="The Go
    Daddy Group, Inc.", C=US.
    Elapsed Time: 5 ms.
    The Microsoft Connectivity Analyzer is analyzing intermediate certificates sent by the remote server.
    All intermediate certificates are present and valid.
    Additional Details
    All intermediate certificates were present and valid.
    Elapsed Time: 1 ms.
    Testing the certificate date to confirm the certificate is valid.
    Date validation passed. The certificate hasn't expired.
    Additional Details
    The certificate is valid. NotBefore = 8/7/2013 12:51:02 AM, NotAfter = 8/17/2016 4:07:52 PM
    Elapsed Time: 0 ms.
    Checking the IIS configuration for client certificate authentication.
    Client certificate authentication wasn't detected.
    Additional Details
    Accept/Require Client Certificates isn't configured.
    Elapsed Time: 149 ms.

  • Unable to connect to essbase via EAS & unable to create Planning Applicatio

    we have 2 servers in our environment
    Linux - Essbase Server
    Windows - Planning, Reporting, EAS, Essbase client, workspace etc
    when im trying to connect to essbase via EAS, i could not open the page.
    Im also unable to create the Planning application.
    We have installed essbase server on Linux Server and Essbase client and EAS on windows server and have configured these to a oracle 10g server.
    Please give me your suggestions.
    Thanks in Advance
    Rao

    Hi Rao,
    Could you please post the error message?
    Have you checked all previleges that you are using for login through EAS?
    Check with also defaut username admin once.
    Regards
    Venkat G

  • Unable to connect to Internet via Airport Express - 'cannot contact server'

    I'm unable to connect to the internet via my Airport Express. I'm using OS 10.3.9, and had the same setup with no problems at a previous address, but with a different modem from the same ISP.
    My AE is connected - the light is green - and my mac is connected to the network in Internet Connect. But when I open Safari I get an 'unable to contact server' message.
    I've tried rebooting everything (modem, AE, Mac), and leaving modem/AE off for several minutes. Also reset the AE, but to no avail.
    The connection works fine via Ethernet cable.
    Any ideas?

    Thanks, I checked out that advice doc (106798), but could not connect to the address (http://17.149.160.49) which is given to test if it's a DNS issue. My ISP says I shouldn't need DNS settings.
    The service is PPPoE, and I went into Airport Admin Utility to check if the Airport was configured for this. Under Configure/Internet, I found it was set to 'Ethernet', so changed it to PPPoE. Then when I restarted I got connection status in the bar (and good Airport signal), but status flipped between 'looking for PPPoE host' and 'negotiating PPPoE host', sometimes sticking on one or the other each time I tried rebooting all gear.
    Any other ideas?

  • Obiee 11.1.1.6 installation error: inst:08030 unable to connect the databse

    Hello Gurus,
    I am new to linux and oracle world. trying to install OBIEE 11.1.1.6.0 and getting
    INST-08030 unable to connect to the Database with the given credentials. Listner could be down"
    *_Database_*
    My database(11gR2) and DEV_BIPLATFORM schema is in 64 bit windows 7. I have applied the january 2012 patch for oracle (patch id 10432045). In windows I can login using sqlplus dev_biplatform/password@orcl. windows static IP is 192.168.1.100.
    The tnsnames entry in windows is.
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = HPC1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    _*OBIEE*_
    I am trying to install OBIEE on an oracle linux 64 bit guest on OracleVirtualBox on the above windows host. Guest Linux IP is fixed to 192.168.1.101. The Oracle VM network setting attached to value is set to Bridged Adapter. I can ping from linux to the host winodws 7.
    On step 8 of 14 the this is my input:
    Database Type- oracle database
    connect string- 192.168.1.100:1521:orcl
    BIPLATFORM schema - DEV_BIPLATFORM
    password- password
    _*Problem*_
    I cannot go past step 8 above. INST-08030 unable to connect to the Database with the given credentials. Listner could be down"
    what have I done:_
    somewhere I read that I need to apply oracle January patch to my metadata database. I did that.
    Please help me here!
    Thanks,
    Badal
    Edited by: Badal on Mar 4, 2012 4:51 AM
    Edited by: Badal on Mar 4, 2012 5:11 AM

    I think I got a resolution of the problem. I had to do the following steps to get the installer successfully connect to my repository schemas in Windows 7.
    steps:
    1- Change my home router setting to reserve specifc IP adresses to all MAC addresses on my home network. If your router does not have this "reserve" feature , you need to disable DHCP and assign static IP to all machines in the lome LAN.
    1- Disable firewall in the Linux guest where I am installing OBIEE.
    2- Change Windows firewall rule to allow all port and all protocol connection from range of IP in the home LAN. If you have time you may be able to trim this setting to allow specifc ports and IPs.
    I also installed oracle instant client and sqlplus in the Linux guest to help me troublesoot the connection problem. It does not require a permanent oracle home to be set. So it won't interfere on obiee home etc.
    Thanks all for your help.
    Badal
    Edited by: Badal on Mar 5, 2012 8:52 AM

  • Unable to connect computers to a Windows Server 2012

    I have two brand new Windows 7 Professional computers that I want to connect to a Windows Server 2012 Essentials.  I'm able to download the connector software but when it is searching for the server I receive a message that "Cannot locate or identify
    your server". I tried both with the IP and FQDN but neither works.  I received in the server the following error message:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 3/31/2014 8:53:24 AM
    Event time (UTC): 3/31/2014 12:53:24 PM
    Event ID: 916a5b3024ce43549f54a925866b24d9
    Event sequence: 10
    Event occurrence: 1
    Event detail code: 0
    Application information:
        Application domain: /LM/W3SVC/1/ROOT/Connect-1-130407439956811749
        Trust level: Full
        Application Virtual Path: /Connect
        Application Path: C:\Program Files\Windows Server\Bin\WebApps\Client\
        Machine name: DRALHFS-01
    Process information:
        Process ID: 13760
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE
    Exception information:
        Exception type: HttpException
        Exception message: The remote host closed the connection. The error code is 0x800704CD.
       at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)
       at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()
       at System.Web.HttpResponse.Flush(Boolean finalFlush, Boolean async)
       at Microsoft.WindowsServerSolutions.Client.Website.Default.TransmitFile(String filePath, String nameToTransmit, Boolean endResponse)
       at Microsoft.WindowsServerSolutions.Client.Website.Default.RunComputerConnector(Object sender, EventArgs e)
       at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Request information:
        Request URL: https://dralhfs-01:443/connect/default.aspx
        Request path: /connect/default.aspx
        User host address: 192.168.1.101
        User: 
        Is authenticated: False
        Authentication Type: 
        Thread account name: NT AUTHORITY\NETWORK SERVICE
    Thread information:
        Thread ID: 8
        Thread account name: NT AUTHORITY\NETWORK SERVICE
        Is impersonating: False
        Stack trace:    at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)
       at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()
       at System.Web.HttpResponse.Flush(Boolean finalFlush, Boolean async)
       at Microsoft.WindowsServerSolutions.Client.Website.Default.TransmitFile(String filePath, String nameToTransmit, Boolean endResponse)
       at Microsoft.WindowsServerSolutions.Client.Website.Default.RunComputerConnector(Object sender, EventArgs e)
       at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Custom event details:
    This event entry appears every time I try to connect the machines.  I have verified the DNS entries and resolution and it works correctly. Any advise will be greatly appreciated.
    Thanks,
    Hector M. Devarie

    Hi Hector M.Devarie,
    Would you please check if can ping the server successfully by using server name and IP address? Please temporarily
    disable firewall and then connect to server again. And monitor the result.
    You descript “I'm able to download the connector software”. Would you please let me know the complete error
    message when can’t download. Or provide a screenshot, it will help me to understand this issue clearly.
    By the way, please check if IIS run as normal in the server.
    Hope this helps.
    Best regards,
    Justin Gu

  • Unable to connect to the server - windows sockets

    //////socket connector method////
    bool SocketConnecter::connect(const std::string& ip, size_t port)
    size_t uport = htons(port);
    std::string sPort = toString(uport);
    // Resolve the server address and port
    const char* pTemp = ip.c_str();
    iResult = getaddrinfo(pTemp, sPort.c_str(), &hints, &result); // was DEFAULT_PORT
    if (iResult != 0) {
    Verbose::show("\n -- getaddrinfo failed with error: " + toString(iResult), always);
    return false;
    // Attempt to connect to an address until one succeeds
    for (ptr = result; ptr != NULL; ptr = ptr->ai_next) {
    char ipstr[INET6_ADDRSTRLEN];
    void *addr;
    char *ipver;
    // get pointer to address - different fields in IPv4 and IPv6:
    if (ptr->ai_family == AF_INET) { // IPv4
    struct sockaddr_in *ipv4 = (struct sockaddr_in *)ptr->ai_addr;
    addr = &(ipv4->sin_addr);
    ipver = "IPv4";
    else { // IPv6
    struct sockaddr_in6 *ipv6 = (struct sockaddr_in6 *)ptr->ai_addr;
    addr = &(ipv6->sin6_addr);
    ipver = "IPv6";
    // convert the IP to a string and print it:
    inet_ntop(ptr->ai_family, addr, ipstr, sizeof ipstr);
    printf("\n %s: %s", ipver, ipstr);
    // Create a SOCKET for connecting to server
    socket_ = socket(ptr->ai_family, ptr->ai_socktype, ptr->ai_protocol);
    if (socket_ == INVALID_SOCKET) {
    int error = WSAGetLastError();
    Verbose::show("\n -- socket failed with error: " + toString<int>(error), always);
    return false;
    iResult = ::connect(socket_, ptr->ai_addr, (int)ptr->ai_addrlen);
    if (iResult == SOCKET_ERROR) {
    socket_ = INVALID_SOCKET;
    int error = WSAGetLastError();
    Verbose::show("WSAGetLastError returned " + toString(error));
    continue;
    break;
    freeaddrinfo(result);
    if (socket_ == INVALID_SOCKET) {
    int error = WSAGetLastError();
    Verbose::show("\n -- unable to connect to server, error = " + toString(error));
    return false;
    return true;
    /////////Test stub////
    int main()
    title("Testing Socket Client", '=');
    try
    Verbose v(true);
    SocketSystem ss;
    SocketConnecter si;
    while (!si.connect("localhost", 9080))
    Verbose::show("client waiting to connect");
    ::Sleep(100);
    title("Starting string test on client");
    clientTestStringHandling(si);
    title("Starting buffer test on client");
    clientTestBufferHandling(si);
    si.sendString("TEST_STOP");
    Verbose::show("\n client calling send shutdown\n");
    si.shutDownSend();
    catch (std::exception& ex)
    Verbose::show(" Exception caught:", true);//always = true
    Verbose::show(std::string("\n ") + ex.what() + "\n\n");
    I am trying to connect to the server, but the connector method shows the message "unable to connect to server" 
    While debugging i found the iResult to be -1 which makes the socket INVALID_SOCKET
    Kindly help resolve this

    Hi askatral,
    connect function can return invalid_socket for many reasons, what does the function WSAGetLastError return?
    There are some Variables that I cannot find how it is declared, like "socket_" and "ptr". So I cannot check if there is anything wrong in your code.
    Maybe this sample in the document of connect function is helpful for this issue:
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms737625(v=vs.85).aspx
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for