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 / Interop / November 2005

Tip: Looking for answers? Try searching our database.

How do I avoid registering my C# com component every time I compile?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 25 Sep 2003 17:16 GMT
Basically, I have generated a .snk file and included it in my assembly
and my C# class inherits from ServicedComponent.  The first time I
access my class it self registers (I didn't do anything to make that
happen).  However, every time I build and then run again I have a new
entry in the Registry for the COM stuff and I'm getting gazillions of
entry's.  How can I stop this and stick with only a single
registration.
Phil Wilson - 25 Sep 2003 18:28 GMT
Define a GUID for the Class, and for your interfaces if you're deriving from
one.

[Guid("some guid")]
 public class yourclass etc etc
Signature

Phil Wilson [MVP Windows Installer]
----

> Basically, I have generated a .snk file and included it in my assembly
> and my C# class inherits from ServicedComponent.  The first time I
[quoted text clipped - 3 lines]
> entry's.  How can I stop this and stick with only a single
> registration.
Kevin Westhead - 25 Sep 2003 23:35 GMT
> Basically, I have generated a .snk file and included it in my assembly
> and my C# class inherits from ServicedComponent.  The first time I
[quoted text clipped - 3 lines]
> entry's.  How can I stop this and stick with only a single
> registration.

I assume you're talking about new registry entries under the following keys:

HKEY_CLASSES_ROOT\CLSID
HKEY_CLASSES_ROOT\Interface
HKEY_CLASSES_ROOT\TypeLib

You are probably seeing new Guids generated because either you're not
specifying your own Guids in code or you don't have a fixed version number
(a fixed version should prevent the auto-generated Guids from changing).

Signature

Kevin Westhead

Tia - 20 Nov 2005 15:32 GMT
START YOUR OWN E-MAIL BUSINESS TODAY and TAKE ADVANTAGE OF THE FOLLOWING:

1.ALL CUSTOMERS PAY YOU IN CASH!!!
2. TOP PART-TIME OWNERS HAVE EARNED $5,000+ IN ONE MONTH!
3. TOP FULL-TIME OWNERS HAVE EARNED $10,000+ IN ONE MONTH!
4. YOU WILL SELL A PRODUCT WHICH COSTS NOTHING TO PRODUCE!
5. YOUR MAIN OVERHEAD IS YOUR TIME!
6. YOUR START UP COSTS ARE LESS THAN $25
7. YOU HAVE MORE THAN 40 MILLION POTENTIAL CUSTOMERS

For additional information please E-mail me at  saita@dodo.com.au
=====================================================

New Software that finds leads for YOU for F.R.E.E.!!!!!
http://www.contactthem.com/cgi-bin/at.cgi?a=316161

---
MAF Anti-Spam ID: 20051113184547I1n0UmZ7

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.