Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
.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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 15th, 2006, 12:37 PM
Registered User
 
Join Date: Jan 2006
Location: Mumbai, Maharastra, India.
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.


Amit

Reply With Quote
  #2 (permalink)  
Old January 15th, 2006, 02:12 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
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
Default

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.

Regards
Ankur Verma
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:04 AM.


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