Unidata uniobjects for .net socket connection error.

Posted on 2009-07-07
Medium Priority
Last Modified: 2013-11-08
I have the code shown below which worked until today.  For some odd reason it stopped working.  It won't connect to the unidata database.  It gives me the following error:
connection failed : An address incompatible with the requested protocal was used ::1:31438.

The Visual Studio error reads:
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in UODOTNET.dll

Class App
    Public Shared Function Main(ByVal args() As String) As Integer
        Dim us1 As UniSession = Nothing
            Console.WriteLine("Program started... ")
            us1 = UniObjects.OpenSession("computername", "username", "password", "C:\IBM\ud72\Demo")
        Catch e As Exception
            If Not (us1 Is Nothing) Then
                If (us1.IsActive) Then
                    us1 = Nothing
                End If
            End If
            Dim s As String
            s = "Connection Failed : " + e.Message
            If Not (us1 Is Nothing) Then
                If (us1.IsActive) Then
                    Dim s As String
                    s = "Connection Passed"
                    Console.WriteLine("Program finished... ")
                End If
            End If
        End Try
        Return 0
    End Function 'Main

Open in new window

Question by:smintire001
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Author Comment

ID: 24812669
Edited question.

Accepted Solution

smintire001 earned 0 total points
ID: 24815507
uninstalled it and installed unidata version 7.1 instead of 7.2.  Problem went away.

Featured Post

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question