-
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
-
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/
-
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/
-
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/
>
-
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
-
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
>
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks