MTS As HOST

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

From: Navis via .NET 247 (anonymous_at_dotnet247.com)
Date: 08/28/04


Date: Sat, 28 Aug 2004 05:37:07 -0700

To call a remote object we need to host the type on a remote machine using a hosting application ( May be a Console,Win or Windows services). This server may host the type library on a particular channel and port number and on the same scenario the client also able to connect. This works fine.

I do not want to rely on .Net hosting mechanism instead I want to host the library on MTS (inorder to get all MTS services viz., Object Pooling,Transaction Management etc.,) and want to call or instantiate remotely from another machine. I tried this and successfully my .Net dll was deployed in MTS using Enterprise Services namespace. In Visual Basic we have done remoting using MTS and through CreateObject("Type Name","Machine Name") function call we instantiated a remote object.

My Question :
1. How shall I call or instantiate a dll which is deployed in the MTS on another machine.
2. What substitutes Visual Basic's CreateObject("") function.

Please share your experience with this scenario.

With anticipation.

Navis S

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>LOU8I4SZGkCQPnNirtLfQg==</Id>



Relevant Pages

  • Re: calling from one workbook the classes and functions in another
    ... having discovered the vb trick recently I'm suddenly a big fan ... > reference to the instantiated class. ... you can't instantiate the class. ... >> Copy your cls into a VB Project for an activex dll. ...
    (microsoft.public.excel.programming)
  • Re: Object Variable or With Block Variable not set
    ... Yes I do create the create the class variable and instantiate it before ... I know the code suceeds because of the end result - the Dll that I call both ... from a local class or from a module in the driver program. ... > Dim oTest As ClassX ...
    (microsoft.public.vb.bugs)
  • COM object with CLSID is either not valid or registered issue with ASP.NET not Windows.
    ... I'm having an issue calling a dll from an ASP.NET page. ... tries to instantiate a COM dll is in a Class Library. ... An unhandled exception occurred during the execution of ... adding ASPNET user to the web directory, the windows app directory ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to instantiate a class?
    ... of the dll, ... reflection to identify and then instantiate the class. ... the dll to implement an interface. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How can I tell if my program is running in the IDE
    ... work fine ONLY if the DLL project itself is running in the IDE. ... Private Declare Function GetModuleHandle Lib "kernel32" Alias ... 'Now that we know if an attempt was made to instantiate it in VB, ... 'Check Microsoft Development Environment, which is used ...
    (microsoft.public.vb.general.discussion)