Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Registering COM+ dll in VB.Net

Status
Not open for further replies.

asraj16

Programmer
May 15, 2004
19
US
Hi,
I am new to this topic and doing R & D. I created on DLL file and using WIN2K server. I created one Web Service also which calls my Mid-Tier Component. I am calling this Web service from ASP.Net page. How do I remotely register these two services ( Web service and COM Component) and how can I call this COM Component remotely from Web Service. If my question is wrong, Please correct me.

Thanks
 
Is it a COM component, or a COM+ component? The two are very different.

If COM, then you just run RegSvr32 on it on the remote machine (you'll need to be at the console, or terminaled-into it). You could also have it registered via an install script (*.msi file, etc).

If COM+, then you'll need to again be on the console for that machine, or terminaled-in, and register it via the COM+ Component Services MMC snap-in (Start | Settings | Control Panel | Administrative Tools | Component Services). Some install utilities will have the ability to register it with COM+ for you, but not all.

You *cannot* register either of them by browsing out to them using Windows Explorer. This will just end up registering it on your local machine with a remote path (not what you want).

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
How can I do remote register COM Component or COM+ Component. In NT we used clireg32 command to connect from IIS to MTS components? Is there any way to do in WIN2k. How can I call a COM+ Component from a IIS Component ( Web Service ).
 
AFAIK, there's no way to 'remote register' a component. Think about it -- it'd be a huge security hole if this were possible.

To call it (once it's been registered with one of the methods I detailed earlier), you call it like any other COM method -- you reference it in your project, instantiate a copy using the New operator, then call the methods it exposes.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top