473,320 Members | 1,965 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,320 software developers and data experts.

Questions about recompiling a registered dotNet COM library

I have written a library in dotNet and registered it using the REGASM
tool with the TLB option and then used GACUTIL to enter it into global,
what do I need to when I need to recompile this library? Do I need to
first remove it from the global assembly and then unregister it? After
compiling will I need to re-register it and run GACUTIL again?

Thanks.

Aug 29 '06 #1
3 1193
>Do I need to first remove it from the global assembly and then unregister it?

You don't have to remove the old version from the GAC unless you want
to. As long as the new one has a different version they can coexist in
the GAC.

>After compiling will I need to re-register it and run GACUTIL again?
If you change the version number, yes. If you keep the version number
and exported COM interfaces unchenged, you don't have to register
again.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Aug 29 '06 #2
When you said "If you change the version number...", did that refer to
the whole version string containing the Major Version, Minor Version,
Build Number and Revision or just a certain part of the version string?

In my AssemblyInfo.cs file I have the AssemblyVersion attribute set to
"1.0.*" which will be updated each time I build with a new build number
and revision. would this require me to run GACUTIL /i again? I first
don't remove the entry using GACUTIL /u, will I end up with two entries
of the library in the GAC, but only one version of the DLL existing on
the system.
Mattias Sjögren wrote:
Do I need to first remove it from the global assembly and then unregister it?

You don't have to remove the old version from the GAC unless you want
to. As long as the new one has a different version they can coexist in
the GAC.

After compiling will I need to re-register it and run GACUTIL again?

If you change the version number, yes. If you keep the version number
and exported COM interfaces unchenged, you don't have to register
again.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Aug 29 '06 #3
>When you said "If you change the version number...", did that refer to
the whole version string containing the Major Version, Minor Version,
Build Number and Revision or just a certain part of the version string?
Any change to the version number.

>In my AssemblyInfo.cs file I have the AssemblyVersion attribute set to
"1.0.*" which will be updated each time I build with a new build number
and revision. would this require me to run GACUTIL /i again?
Yes, and that can be a major pain. Auto-incrementing version numbers
and using the GAC don't go well together IMO. I would set a fixed
version or skip the GAC for now.
>I first
don't remove the entry using GACUTIL /u, will I end up with two entries
of the library in the GAC, but only one version of the DLL existing on
the system.
Both will still exist if installed in the GAC. But if the client is
COM based, you're probably only interested in a single version (the
latest) anyway.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Aug 30 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ramesh | last post by:
hi, Let me ask some basic questions. Can anybody explain me about the following questions: 1. When we have to create sn key? Whenever we compiled Component we have to create or it is a one time...
3
by: rua17 | last post by:
I add tow Com libraries to my project, I can see their content with intellisense, but when I instantiate a class contained in the library: PDDirectLib.PDDatabaseQuery pDbQuery = new...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
9
by: Nak | last post by:
Hi there, I have been messing around with remoting in an attempt to create a "shared application" as mentioned in another thread by that name. I have created a singleton object just like the...
1
by: Jim | last post by:
Have fully operational software package developed on VB.NET that worked until Jan 1 2003, with early stage deployments on Oct 10, Oct 23, Nov 11, Dec 12 and Dec 30. When attempted final...
4
by: Java Challenge | last post by:
I am trying to work hard to become a programmer and eventually get a job as a programmer, I have a low paying job at the moment as technical support and a family to maintain. 1 - I started to...
4
by: Christopher Ireland | last post by:
Hi all, I've got an app written under the v1.1 of the .Net framework and I'm now considering recompiling it under v2.0. Can I expect my app to run any faster? Are there any advantages to...
0
by: Jeff K | last post by:
I have been searching and trying to figure out this issue for several days now but I can not find any answers. I have a windows service written in vb dotnet. This service is on a timer. It polls...
5
by: gbraux | last post by:
Hello, I am trying to implement IInternetZoneManager Com Interface into my c# project to be able to programaticaly edit the "Require server verification (HTTPS) for all sites in this zone"...
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
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.