Calling distributed serviced component in vb.net – COM+

From: Henrik (h_h_at_mail1.stofanet.dk)
Date: 07/15/04


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



Relevant Pages

  • Re: Calling distributed serviced component in vb.net - COM+
    ... generate a proxy installation file for the component from your server. ... > The sample works fine on my local machine. ... > Dim obj As DistributedTransactDLL.MyComponent ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: nested OUs
    ... Derek Melber ... > I am trying to access users in nested ou's. ... > structure is server domain top OU ... > Dim obj as Object ...
    (microsoft.public.windows.server.active_directory)
  • Re: Send email
    ... prints it to a designated printer. ... Dim obj As System.Web.Mail.SmtpMail ... failed to connect to the server." ... I thought it may have been an smtp problem, perhaps I had the syntax of ...
    (microsoft.public.dotnet.languages.vb)
  • Calling distributed serviced component in vb.net – COM+
    ... The sample works fine on my local machine. ... But I need to register the component on a different server. ... The class 'DistributedTransactDLL.MyComponent' has no class interface, which means that unmanaged late bound calls cannot take advantage of AutoComplet e methods. ... Dim obj As DistributedTransactDLL.MyComponent ...
    (microsoft.public.dotnet.distributed_apps)
  • nested OUs
    ... structure is server domain top OU ... nested OU (California) nested OU (Norco-22) ... Dim obj as Object ...
    (microsoft.public.windows.server.active_directory)