473,325 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

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 1971
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Takuya Matsumoto | last post by:
Greetings to all, I am creating a setup project for a COM component I created in C#, but I can't get the component to be registered in the client system. What I would like to achieve is an...
16
by: Catherine Jones | last post by:
I need to register a Vb DLL under restricted acess privilages please provide me a solution Regards and thanks
1
by: Kelly G. | last post by:
I need to register a Vb DLL under restricted acess privilages please provide me a solution. Here is the complete issue: I building a MSI using Vs.net ,One of the Dll's is Vb Component ( A shim...
1
by: wesley | last post by:
Hello, I have managed dll which I want to register as LocalServer, I am under the impression that using regasm is registering the COM component in InProc. Is there a way to register the COM...
1
by: peter.jakes | last post by:
Hello, I am straggling with an issue than may not have a solution. I have a windows application that is composed of com components. Normally one registers all components the application uses and...
6
by: Daniel Bass | last post by:
The scenario: ------------- I've created a simple COM object according to a tutorial I found: http://www.csharphelp.com/archives/archive281.html It automatically creates a Type Library...
3
by: InteropNut | last post by:
Hi, My ASP.NET application uses the MSOWCF.dll COM component (ms office functions) and it works fine on my computer with MS Office installed. But I am trying to upload the application to my web...
3
by: automation_mark | last post by:
I am having a problem registering a component using regasm. The following error appears C:\Windows\microsoft.NET\Framework\v2.0.50727\RegAsm.exe is not a valid Win32 application. Any...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.