Re: Calling distributed serviced component in vb.net - COM+

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Paul Glavich [MVP - ASP.NET] (glav_at_aspalliance.com-NOSPAM)
Date: 07/15/04


Date: Thu, 15 Jul 2004 23:50:27 +1000

If I understand you correctly, try putting the [ClassInterface.AutoDual] on
the clas definition (from memory) and also, use the COM+ export wizard to
generate a proxy installation file for the component from your server. In
your VB6 (once you install the library that you exported from the previous
step), you can reference the component and it will execute on the server via
DCOM.

-- 
- Paul Glavich
Microsoft MVP - ASP.NET
"Henrik H" <Henrik H@discussions.microsoft.com> wrote in message
news:015F159C-7F25-4CA4-97E7-DF36B384E733@microsoft.com...
> 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

  • Calling distributed serviced component in vb.net – COM+
    ... "Distributed Transactions in Visual Basic .NET" - ... The sample works fine on my local machine. ... component on a different server. ... Dim obj As DistributedTransactDLL.MyComponent ...
    (comp.programming)
  • 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)