Re: Calling distributed serviced component in vb.net - COM+
From: Paul Glavich [MVP - ASP.NET] (glav_at_aspalliance.com-NOSPAM)
Date: 07/15/04
- Next message: Sendhil Annamalai: "Re: Finding Bandwidth Utilization"
- Previous message: Brad Simon: "Re: Strong Named Key Files - Deployment"
- In reply to: Henrik H: "Calling distributed serviced component in vb.net – COM+"
- Next in thread: Henrik H: "Re: Calling distributed serviced component in vb.net - COM+"
- Reply: Henrik H: "Re: Calling distributed serviced component in vb.net - COM+"
- Messages sorted by: [ date ] [ thread ]
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 >
- Next message: Sendhil Annamalai: "Re: Finding Bandwidth Utilization"
- Previous message: Brad Simon: "Re: Strong Named Key Files - Deployment"
- In reply to: Henrik H: "Calling distributed serviced component in vb.net – COM+"
- Next in thread: Henrik H: "Re: Calling distributed serviced component in vb.net - COM+"
- Reply: Henrik H: "Re: Calling distributed serviced component in vb.net - COM+"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|