Solved

Unidata uniobjects for .net socket connection error.

Posted on 2009-07-07
2
710 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
  • 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now