Solved

Unidata uniobjects for .net socket connection error.

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

17 Experts available now in Live!

Get 1:1 Help Now