Click here to Skip to main content
16,005,491 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: New to VB - NewFile Dialog / SaveFile Dialog help needed. Pin
Adam.m.Nelson4-Apr-08 9:09
Adam.m.Nelson4-Apr-08 9:09 
Questionhow to show image during saving data? Pin
samrat.net1-Apr-08 2:13
samrat.net1-Apr-08 2:13 
AnswerRe: how to show image during saving data? Pin
Aks 0051-Apr-08 2:48
Aks 0051-Apr-08 2:48 
GeneralRe: how to show image during saving data? Pin
samrat.net1-Apr-08 3:08
samrat.net1-Apr-08 3:08 
GeneralRe: how to show image during saving data? Pin
Luc Pattyn1-Apr-08 3:26
sitebuilderLuc Pattyn1-Apr-08 3:26 
QuestionRun-time error '424' Object required Pin
nilam24771-Apr-08 1:02
nilam24771-Apr-08 1:02 
GeneralRe: Run-time error '424' Object required Pin
Dave Kreskowiak2-Apr-08 3:23
mveDave Kreskowiak2-Apr-08 3:23 
Generalconnecting two machines using sun orb and iiop.net not working Pin
srikar5851-Apr-08 0:22
srikar5851-Apr-08 0:22 
Sir,
I developed an application in .net and java using corba.
My server is sun java jdk1.4.2 in linux platform.
My client is vb.net application in windows.
To link this i used iiop.net which generates a dll of the idl file .this idl is added as
reference to .net program.
I start the naming service as orbd -ORBInitialPort 1050 and then run the application as java AdderServer.
The server gets started and when I run the .net application it gives an
error message like this:

Error: omg.org.CORBA.TRANSIENT: CORBA system exception : omg.org.CORBA.TRANSIENT [Unable to connect to target.] , completed: Completed_No minor: 4000

Server stack trace:

at Ch.Elca.Iiop.IiopClientFormatterSink.AllocateConnection(IMessage msg, Ior target, IIorProfile& selectedProfile, UInt32& reqId)

at Ch.Elca.Iiop.IiopClientFormatterSink.SyncProcessMessageOnce(IMessage msg, Ior target)

at Ch.Elca.Iiop.IiopClientFormatterSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at omg.org.CORBA.IObject._is_a(String repositoryId)
at Ch.Elca.Iiop.IiopClientFormatterSink.CheckAssignableRemote(Type formal, String url)
at Ch.Elca.Iiop.IiopClientFormatterSink.IsInterfaceCompatible(Ior target, Type neededTargetType, String targetUrl)
at Ch.Elca.Iiop.IiopClientFormatterSink.VerifyInterfaceCompatible(Ior target, IMessage msg)
at Ch.Elca.Iiop.IiopClientFormatterSink.SyncProcessMessage(IMessage msg)
at System.Runtime.Remoting.Proxies.RemotingProxy.CallProcessMessage(IMessageSink ms, IMessage reqMsg, ArrayWithSize proxySinks, Thread currentThread, Context currentContext, Boolean bSkippingContextChain)
at System.Runtime.Remoting.Proxies.RemotingProxy.InternalInvoke(IMethodCallMessage reqMcmMsg, Boolean useDispatchMessage, Int32 callType)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(IMessage reqMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at omg.org.CosNaming.NamingContext.resolve(NameComponent[] nameComponents)
at Linuxserver_and_Windowclients.frmMDI.StartServerToolStripMenuItem_Click(Object sender, EventArgs e) in C:\Linuxserver\Form1.vb:line 185

The code for connectivity in .net is


Private Sub StartServerToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StartServerToolStripMenuItem.Click
Try

Dim nameServiceHost As String = ipAdd


Dim nameServicePort As Integer = 1050

Dim channel As New IiopClientChannel()

ChannelServices.RegisterChannel(channel)


Dim init As CorbaInit = CorbaInit.GetInit()

Dim nameService As NamingContext = init.GetNameService(nameServiceHost, nameServicePort)

Dim name() As NameComponent = New NameComponent() {New NameComponent("Adder")}

adder = CType(nameService.resolve(name), Adder)

nameService.resolve(name)

Me.tbl_server.Text = "Client connected to " & ipAdd


Catch ex As Exception
tbl_server.Text = "Error: " & ex.ToString()

End Try
End Sub


This is working if i run the client and server in two windows machines.
Waiting for u r reply.
Yoursfaithfully
M.srikarPradeep
GeneralVS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
mp00011-Apr-08 0:02
mp00011-Apr-08 0:02 
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
Dave Kreskowiak4-Apr-08 5:20
mveDave Kreskowiak4-Apr-08 5:20 
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
mp00014-Apr-08 6:20
mp00014-Apr-08 6:20 
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
Dave Kreskowiak4-Apr-08 8:42
mveDave Kreskowiak4-Apr-08 8:42 
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
mp00014-Apr-08 10:05
mp00014-Apr-08 10:05 
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
mp00016-Apr-08 21:55
mp00016-Apr-08 21:55 
Questionhow to increase timeout expire value in windows application(using C#)? Pin
samrat.net31-Mar-08 21:41
samrat.net31-Mar-08 21:41 
AnswerRe: how to increase timeout expire value in windows application(using C#)? Pin
Ashfield31-Mar-08 21:50
Ashfield31-Mar-08 21:50 
GeneralRe: how to increase timeout expire value in windows application(using C#)? Pin
samrat.net31-Mar-08 21:57
samrat.net31-Mar-08 21:57 
GeneralRe: how to increase timeout expire value in windows application(using C#)? Pin
Colin Angus Mackay31-Mar-08 23:41
Colin Angus Mackay31-Mar-08 23:41 
GeneralRe: how to increase timeout expire value in windows application(using C#)? Pin
samrat.net1-Apr-08 1:24
samrat.net1-Apr-08 1:24 
GeneralSMTP vrs Proxy server Pin
plural31-Mar-08 21:10
plural31-Mar-08 21:10 
GeneralRe: SMTP vrs Proxy server Pin
Dave Kreskowiak1-Apr-08 10:29
mveDave Kreskowiak1-Apr-08 10:29 
Questionhow to identify tab key press in vb.net Pin
codelinks31-Mar-08 20:56
codelinks31-Mar-08 20:56 
AnswerRe: how to identify tab key press in vb.net Pin
christoph3331-Mar-08 22:20
christoph3331-Mar-08 22:20 
QuestionHow to create Pdf in windows application? Pin
Piyush Vardhan Singh31-Mar-08 19:18
Piyush Vardhan Singh31-Mar-08 19:18 
AnswerRe: How to create Pdf in windows application? Pin
Mitch F.31-Mar-08 20:16
Mitch F.31-Mar-08 20:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.