Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / January 2006

Tip: Looking for answers? Try searching our database.

COM+ Client without Exported Proxy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
amanjit.singh.gill@googlemail.com - 24 Jan 2006 15:23 GMT
Hello,

I would like to know whether it is possible to create ad-hoc
connections to a COM+ Server without needing to install a corresponding
proxy first. Basically, I am already doing this (C#):

guid    = new Guid("XXXXXX-XXXXX-XXXX-XXX-etc");
Type typeSrv = Type.GetTypeFromCLSID(guid, sServer, false);
Object obj = Activator.CreateInstance(typeSrv);
// then casting obj to the desired type.

I get an "class not registered" error on startup, when no proxy exists.
Of course, when trying to use RegSvcs on the assembly, I register an
COM+ "Application" which I do not want to. Can I use RegSvcs just to
create the proxy? I am right now dissecting the created proxy to find
out what the msi installer is doing.

Thank you for your help and cheers,
Amanjit Singh Gill
Johannes Passing - 24 Jan 2006 20:23 GMT
Unless you are using custom marshalling, you only have to register the
typelib on the client machine. Registering it with regsvcs is not
neccessary.

/Johannes

> Hello,
>
[quoted text clipped - 15 lines]
> Thank you for your help and cheers,
> Amanjit Singh Gill
amanjit.singh.gill@googlemail.com - 26 Jan 2006 22:46 GMT
Thank you Johannes, regasm or the corresponding msi installer
functionality ist my friend. I could not to see the wood for the trees.

Thanks again + cheers

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.