Regsvcs.exe


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: Regsvcs.exe

  1. #1
    MarkH Guest

    Regsvcs.exe


    Trying to create a serviced component, I have followed every example and even
    tried using regsvcs with a .net example to register the assembly. Each time
    I receive the following error "Access to the registry key is denied".

    Here are the following steps:
    1.created a new vb class project
    2.added a vb transactional component
    3.added appropriate assembly info to the transactional component
    4.sn -k keyPair.snk
    5.sn -i keyPair.snk MyContainer
    6.tried to use regsvcs

  2. #2
    Mattias Sjögren Guest

    Re: Regsvcs.exe

    Mark,

    >Each time I receive the following error "Access to the registry key is denied".


    Do you have Admin privileges on your machine?


    Mattias

    ===
    Mattias Sjögren (VB MVP)
    mattias @ mvps.org
    http://www.msjogren.net/dotnet/

  3. #3
    markh Guest

    Re: Regsvcs.exe


    Yes, I do.

    Mattias Sjögren <mattias.dont.want.spam@mvps.org> wrote:
    >Mark,
    >
    >>Each time I receive the following error "Access to the registry key is

    denied".
    >
    >Do you have Admin privileges on your machine?
    >
    >
    >Mattias
    >
    >===
    >Mattias Sjögren (VB MVP)
    >mattias @ mvps.org
    >http://www.msjogren.net/dotnet/



  4. #4
    martin rydman Guest

    Re: Regsvcs.exe


    I don't know what release you're using, but if it's Beta 2, you must register
    the assembly with the GAC in order to have it run under COM+. This, apparently,
    is due to a bug in Beta 2 (all according to MS training material)

    I've got it to work pretty much along your lines, except that I used the
    project properties to generate the keypair (all in Beta 2)

    HTH

    /Martin

    "markh" <mhopkins@sugar-creek.com> wrote:
    >
    >Yes, I do.
    >
    >Mattias Sjögren <mattias.dont.want.spam@mvps.org> wrote:
    >>Mark,
    >>
    >>>Each time I receive the following error "Access to the registry key is

    >denied".
    >>
    >>Do you have Admin privileges on your machine?
    >>
    >>
    >>Mattias
    >>
    >>===
    >>Mattias Sjögren (VB MVP)
    >>mattias @ mvps.org
    >>http://www.msjogren.net/dotnet/

    >



  5. #5
    Kim Guest

    Re: Regsvcs.exe


    Mark,

    I feel your frustration. I am currently using Beta 2 and have encountered
    the same problem. However, I have tried the following:
    - gacutil to add the assembly to the cache
    - manually and dynamically registering the assembly

    Martin, you mentioned using the project properties to generate the keypair.
    How did you accomplish that? Are you referring to the <Assembly: AssemblyKeyFile("scpcDevice.snk")>
    assembly attribute?

    Bye..



    "MarkH" <mhopkins@sugar-creek.com> wrote:
    >
    >Trying to create a serviced component, I have followed every example and

    even
    >tried using regsvcs with a .net example to register the assembly. Each

    time
    >I receive the following error "Access to the registry key is denied".
    >
    >Here are the following steps:
    >1.created a new vb class project
    >2.added a vb transactional component
    >3.added appropriate assembly info to the transactional component
    >4.sn -k keyPair.snk
    >5.sn -i keyPair.snk MyContainer
    >6.tried to use regsvcs



  6. #6
    martin rydman Guest

    Re: Regsvcs.exe


    Hi!

    Nope, it's in the project property pages: Common properties - Strong name.
    However, this might only be available in the Architect version (if that's
    the name, I haven't got the versions down pat yet). Anyway, I ran across
    an installation of RC1 where this feature was missing which led me to suspect
    that. Maybe someone else could clarify this?

    /Martin

    "Kim" <kim@ipx.com> wrote:
    >
    >Mark,
    >
    >I feel your frustration. I am currently using Beta 2 and have encountered
    >the same problem. However, I have tried the following:
    > - gacutil to add the assembly to the cache
    > - manually and dynamically registering the assembly
    >
    >Martin, you mentioned using the project properties to generate the keypair.
    > How did you accomplish that? Are you referring to the <Assembly: AssemblyKeyFile("scpcDevice.snk")>
    >assembly attribute?
    >
    >Bye..
    >
    >
    >
    >"MarkH" <mhopkins@sugar-creek.com> wrote:
    >>
    >>Trying to create a serviced component, I have followed every example and

    >even
    >>tried using regsvcs with a .net example to register the assembly. Each

    >time
    >>I receive the following error "Access to the registry key is denied".


    >>
    >>Here are the following steps:
    >>1.created a new vb class project
    >>2.added a vb transactional component
    >>3.added appropriate assembly info to the transactional component
    >>4.sn -k keyPair.snk
    >>5.sn -i keyPair.snk MyContainer
    >>6.tried to use regsvcs

    >



  7. #7
    Rob Teixeira Guest

    Re: Regsvcs.exe


    "martin rydman" <martin@aprire.se> wrote:
    >
    >Hi!
    >
    >Nope, it's in the project property pages: Common properties - Strong name.
    >However, this might only be available in the Architect version (if that's
    >the name, I haven't got the versions down pat yet). Anyway, I ran across
    >an installation of RC1 where this feature was missing which led me to suspect
    >that. Maybe someone else could clarify this?
    >
    >/Martin
    >


    That's where it was in Beta2, then it went missing in RC.
    However, you can still create a public key and insert the name of the key
    file manually in the assembly info file for your project.

    I don't have the release on this machine, so I can't tell you if the option
    made it back to the dialog.

    -Rob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center