.Net component and locked classid

Discussion in 'ASP .Net' started by Mario Hébert, Jul 4, 2003.

  1. Is it possible to lock a specific classid for a .net component directly in
    the C# source code? I mean like putting an attribute in the assembly.cs file
    or elsewhere... Each time i register my new version of the component with
    regasm, i want that the objet always keep the initial classid or the one
    that i will assign to...

    Thanks


    Mario Hebert
     
    Mario Hébert, Jul 4, 2003
    #1
    1. Advertisements

  2. Mario Hébert

    Arild Fines Guest

    Mario Hébert wrote:
    > Is it possible to lock a specific classid for a .net component
    > directly in the C# source code? I mean like putting an attribute in
    > the assembly.cs file or elsewhere... Each time i register my new
    > version of the component with regasm, i want that the objet always
    > keep the initial classid or the one that i will assign to...


    Apply the GuidAttribute to your class.

    --
    Arild Fines

    http://ankhsvn.tigris.org
    A Visual Studio .NET Addin for the Subversion version control system.
     
    Arild Fines, Jul 5, 2003
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Karuppasamy

    com+ component and Component Service

    Karuppasamy, Jan 13, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    786
    Karuppasamy
    Jan 13, 2004
  2. Karuppasamy

    com+ component and Component Service

    Karuppasamy, Jan 13, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,781
  3. Matthew Louden
    Replies:
    0
    Views:
    658
    Matthew Louden
    Dec 4, 2003
  4. nicholas
    Replies:
    3
    Views:
    1,052
    nicholas
    Oct 4, 2004
  5. =?Utf-8?B?UmV6YSBTb2xvdWtp?=

    The web serve has been locked down and is blocking the Debug verb.

    =?Utf-8?B?UmV6YSBTb2xvdWtp?=, Nov 24, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    3,815
    Ben Strackany
    Nov 24, 2004
  6. Randy
    Replies:
    0
    Views:
    577
    Randy
    Mar 29, 2006
  7. ilocke
    Replies:
    2
    Views:
    550
    ilocke
    Jun 2, 2007
  8. Miguel Minora
    Replies:
    1
    Views:
    312
    Miguel Minora
    Jan 11, 2005
Loading...