Calling distributed serviced component in vb.net COM+
From: Henrik (h_h_at_mail1.stofanet.dk)
Date: 07/15/04
- Next message: Miron Horodi: "Maxinmum matching in bipartite graph"
- Previous message: Dmitry A. Kazakov: "Re: Static vs. Dynamic typing (big advantage or not)---WAS: c.programming: OOP and memory management"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 15 Jul 2004 04:04:44 -0700
I have created a COM+ component I VB.net, using the article
"Distributed Transactions in Visual Basic .NET" -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/disttranvbnet.asp
The sample works fine on my local machine. But I need to register the
component on a different server (Distributed). The important thing is
that it uses JITA and executes on the server.
I then move my dll-files to the server, alter the reference of my dll
in my form, to point at the server. Then I on the server, loads the
dll to GAC and uses "regsvcs DistributedTransactDLL.dll" but get the
error:
WARNING: The class 'DistributedTransactDLL.MyComponent' has no class
interface, which means that unmanaged late bound calls cannot take
advantage of AutoComplet e methods.
I can se my component I "Component Services" on the server.
Then I alter the code in my form, to create the object on server
"TestServer":
From:
Dim obj As DistributedTransactDLL.MyComponent
obj = CreateObject("DistributedTransactDLL.MyComponent")
To:
Dim obj As DistributedTransactDLL.MyComponent
obj = CreateObject("DistributedTransactDLL.MyComponent",
"\\TestServer")
If I then run's my program from local, I get an error saying: "Cannot
create ActiveX component".
But if I run the same program on the server, it works
What's wrong???
Is it enough to specify it like this?? Without server-extension??
Dim obj As DistributedTransactDLL.MyComponent
obj = New DistributedTransactDLL.MyComponent
Does it then create the object on the server or my local machine??
Can anyone help me.. please
- Next message: Miron Horodi: "Maxinmum matching in bipartite graph"
- Previous message: Dmitry A. Kazakov: "Re: Static vs. Dynamic typing (big advantage or not)---WAS: c.programming: OOP and memory management"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|