469,588 Members | 2,680 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,588 developers. It's quick & easy.

Registering .NET Component

I have written a COM Server in C# and its working perfectly. I am not ready
to deploy to client computers to begin the real testing and am now wondering
how to perform. The part that confuses me is that you can not use regsvr32
to register the COM server so I'm wondering if placing it inside the .NET
library will automatically take care of registering it so non managed code
programs can access it or do I have to manually use the regasm program to
register it on each computer.

And if regasm is what I use, then what is the best method since this program
is not in a windows path and there are different versions of it on most
computers.

Thanks,

glenn
Nov 17 '05 #1
2 1838
Hi glenn,

RegAsm is the right tool, and you have two options:

a) Deploying the .NET assembly to the GAC and registering it with regasm
from there. The assembly will need to be strong-named.
b) Deploying the assembly elsewhere and specifying the /codebase option when
registering it with RegAsm.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"glenn" <gh******@softeksoftware.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I have written a COM Server in C# and its working perfectly. I am not
ready
to deploy to client computers to begin the real testing and am now
wondering
how to perform. The part that confuses me is that you can not use
regsvr32
to register the COM server so I'm wondering if placing it inside the .NET
library will automatically take care of registering it so non managed code
programs can access it or do I have to manually use the regasm program to
register it on each computer.

And if regasm is what I use, then what is the best method since this
program
is not in a windows path and there are different versions of it on most
computers.

Thanks,

glenn


Nov 17 '05 #2
The version corresponding to the version of the Framework your application
targets.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]\
"glenn" <gh******@softeksoftware.com> wrote in message
news:uS**************@TK2MSFTNGP15.phx.gbl...
Thanks,

However, I'm still stuck as running regasm from inside another program
doesn't seem to be working and it is not found in windows path so what
version is best to run?

Thanks,

glenn
"Dmytro Lapshyn [MVP]" <x-****@no-spam-please.hotpop.com> wrote in message
news:uF*************@TK2MSFTNGP12.phx.gbl...
Hi glenn,

RegAsm is the right tool, and you have two options:

a) Deploying the .NET assembly to the GAC and registering it with regasm
from there. The assembly will need to be strong-named.
b) Deploying the assembly elsewhere and specifying the /codebase option

when
registering it with RegAsm.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"glenn" <gh******@softeksoftware.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
>I have written a COM Server in C# and its working perfectly. I am not
>ready
> to deploy to client computers to begin the real testing and am now
> wondering
> how to perform. The part that confuses me is that you can not use
> regsvr32
> to register the COM server so I'm wondering if placing it inside the .NET > library will automatically take care of registering it so non managed code > programs can access it or do I have to manually use the regasm program to > register it on each computer.
>
> And if regasm is what I use, then what is the best method since this
> program
> is not in a windows path and there are different versions of it on most
> computers.
>
> Thanks,
>
> glenn
>
>



Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Catherine Jones | last post: by
1 post views Thread by peter.jakes | last post: by
6 posts views Thread by Daniel Bass | last post: by
3 posts views Thread by automation_mark | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.