Solved

Unidata uniobjects for .net socket connection error.

Posted on 2009-07-07
2
714 Views
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

Imports IBMU2.UODOTNET
Class App
 
    Public Shared Function Main(ByVal args() As String) As Integer
 
        Dim us1 As UniSession = Nothing
 
        Try
            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
                    UniObjects.CloseSession(us1)
                    us1 = Nothing
                End If
            End If
            Console.WriteLine("")
            Dim s As String
            s = "Connection Failed : " + e.Message
            Console.WriteLine(s)
        Finally
            If Not (us1 Is Nothing) Then
                If (us1.IsActive) Then
                    Console.WriteLine("")
                    Dim s As String
                    s = "Connection Passed"
                    Console.WriteLine(s)
                    UniObjects.CloseSession(us1)
                    Console.WriteLine("Program finished... ")
                End If
 
            End If
 
        End Try
        Console.Read()
        Return 0
    End Function 'Main

Open in new window

0
Comment
Question by:smintire001
[X]
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
2 Comments
 

Author Comment

by:smintire001
ID: 24812669
Edited question.
0
 

Accepted Solution

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

697 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