Wrox Programmer Forums
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 15th, 2006, 12:37 PM
Registered User
Join Date: Jan 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Assembly

Hi There,

I have some doubts about dotnet framework. If someone can please clear it.

I have read...

.Net Framework gives advantage of using dotnet application without registering with system registry. This is made possible due to following reasons

.Net can automatically locate referenced assemblies. It contains manifest which has information about assemblies information with other assemblies.

Does it mean that the folder of dotnet application directory has all referenced files. If so then isn't it waste of diskspace if i already have the file in harddisk in someother location.when a dotnet application is copied from one computer to other it copies all the files even though if they are there. Does it finds out before copying the application wheather all refered dll files are there or not?

Thanking you and waiting for some kind replies.


Old January 15th, 2006, 02:12 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma

Well you need to complete you information Amit.
Registry is no where in the equation if you are talking
.NET assemblies that are created entirely within
.NET and that are gonna be used by an application
made to run on .NET Framework.

There are several ways of looking up for the
assemblies that your application is looking to use.
One is to place it in the application's directory
only and load it from there. This requires no
settings what so ever and such assemblies are
called private assemblies. This is the case that
you queried about in your post and your fear would
have been right if this was the only way.

Assemblies that are commonly used by a number of
applications are stored in a special repository
called GAC (Global Assembly Cache). Any assembly
that’s referred from the GAC, does not get copied to
the applications directory and is used from the GAC only.
Such assemblies are also known as shared assemblies.
Your application can identify what assembly to load from
the GAC using the public/private key matching.

You can even configure assemblies to load from
application directory's subdirectories by doing
appropriate probing settings or from network
locations by doing appropriate codebase settings.

I believe you will be realieved a lot if you would
read about flexibility that assemblies provide you
and while you are on it you might also wanna read
about publisher policies.

Ankur Verma

Similar Threads
Thread Thread Starter Forum Replies Last Post
New to Assembly OnlyHuman925 Assembly Language 4 January 10th, 2010 07:28 AM
Assembly upadhyayharish83 ASP.NET 3.5 Basics 1 August 5th, 2008 01:25 AM
Converting .NET 2.0 Assembly to .Net 1.x Assembly pskaushik .NET Framework 2.0 1 November 25th, 2006 01:51 PM
assembly sreenu.pocha C# 4 July 26th, 2006 07:31 AM
Assembly arv1980 VS.NET 2002/2003 1 January 15th, 2006 11:42 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.