Click here to Skip to main content
15,914,500 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: .Net and Windows NT 4.0 Pin
André Ziegler27-Oct-05 2:09
André Ziegler27-Oct-05 2:09 
AnswerRe: .Net and Windows NT 4.0 Pin
Kevin McFarlane27-Oct-05 9:32
Kevin McFarlane27-Oct-05 9:32 
QuestionImport CSV file using .NET Pin
vandan_desai27-Oct-05 0:47
vandan_desai27-Oct-05 0:47 
AnswerRe: Import CSV file using .NET Pin
Robert Rohde29-Oct-05 22:53
Robert Rohde29-Oct-05 22:53 
QuestionReplacing a .NET Dll Pin
PeteConc26-Oct-05 23:10
PeteConc26-Oct-05 23:10 
AnswerRe: Replacing a .NET Dll Pin
Mike Dimmick27-Oct-05 2:21
Mike Dimmick27-Oct-05 2:21 
GeneralRe: Replacing a .NET Dll Pin
PeteConc27-Oct-05 2:55
PeteConc27-Oct-05 2:55 
GeneralRe: Replacing a .NET Dll Pin
Mike Dimmick27-Oct-05 8:27
Mike Dimmick27-Oct-05 8:27 
When a program or DLL references a strongly-named DLL, all components of the DLL's identity are recorded - assembly name, version number, culture, and public key token. Only that version of the DLL will be loaded.

The GAC can contain multiple assemblies with the same base name if they have different version numbers, cultures, and/or public key tokens. That last allows different vendors to use the same base name independently, although this will be pretty confusing to a user!

When loading a strongly-named DLL, the GAC is searched first, then the application's directories. See How the Runtime Locates Assemblies[^] for more.

To cause a different version of an assembly to be loaded from that listed in the referencing assembly's manifest, you have two options: Publisher Policy[^], or <assemblyBinding>[^] elements in the application's configuration file. The former allows all uses of an assembly to be directed to a new version, but the documentation is a bit unclear. The latter has to be applied to every executable that will use the updated assembly.

I'll reiterate that for components that aren't going to be released to third-party developers, I'd recommend keeping your class library assemblies private, without strong naming. If the assembly isn't strongly named you can overwrite without regard to version numbers. It does make deployment slightly more difficult, since you have to copy the updated assembly to the directories of every application you want to use it, but then you should probably only update those applications which are experiencing the problem you've fixed in the newer version of the assembly.

Stability. What an interesting concept. -- Chris Maunder
Questionencoding/decoding prob Pin
toto567826-Oct-05 0:31
toto567826-Oct-05 0:31 
AnswerRe: encoding/decoding prob Pin
Farhan Noor Qureshi26-Oct-05 18:28
Farhan Noor Qureshi26-Oct-05 18:28 
GeneralRe: encoding/decoding prob Pin
toto567826-Oct-05 20:36
toto567826-Oct-05 20:36 
GeneralRe: encoding/decoding prob Pin
Farhan Noor Qureshi27-Oct-05 6:55
Farhan Noor Qureshi27-Oct-05 6:55 
GeneralRe: encoding/decoding prob Pin
toto567827-Oct-05 23:01
toto567827-Oct-05 23:01 
Question'DragDrop', 'throw' and 'Application.ThreadException' Pin
__alex25-Oct-05 22:55
__alex25-Oct-05 22:55 
AnswerRe: 'DragDrop', 'throw' and 'Application.ThreadException' Pin
Daniel Grunwald27-Oct-05 5:00
Daniel Grunwald27-Oct-05 5:00 
GeneralRe: 'DragDrop', 'throw' and 'Application.ThreadException' Pin
__alex27-Oct-05 5:15
__alex27-Oct-05 5:15 
QuestionConverting old C library into .NET Pin
wgaiw25-Oct-05 5:03
wgaiw25-Oct-05 5:03 
AnswerRe: Converting old C library into .NET Pin
Christian Graus25-Oct-05 15:55
protectorChristian Graus25-Oct-05 15:55 
QuestionRe: Converting old C library into .NET Pin
wgaiw26-Oct-05 11:35
wgaiw26-Oct-05 11:35 
AnswerRe: Converting old C library into .NET Pin
Christian Graus26-Oct-05 11:38
protectorChristian Graus26-Oct-05 11:38 
Questiondisco Pin
tekken2224-Oct-05 9:26
tekken2224-Oct-05 9:26 
QuestionIlease and ISponsor why need for both ? Pin
tekken2224-Oct-05 8:58
tekken2224-Oct-05 8:58 
QuestionCall COM+ services on other machines with my local .NET framework Pin
olmo24-Oct-05 8:20
olmo24-Oct-05 8:20 
QuestionRemote debugging : Windows form apps Pin
Md Saleem Navalur24-Oct-05 0:39
Md Saleem Navalur24-Oct-05 0:39 
QuestionImage Converting Pin
idris cinn23-Oct-05 20:46
idris cinn23-Oct-05 20:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.