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

General Question about .NET

The other day I was looking around in the GAC and I noticed
some strange things. For startings, I don't see any Microsoft
libraries that have a version number 1.1. I only see 1.0.5000
and 1.0.3300. I am thinking the 1.0.5000 is .NET v1.1 and
..NET v1.0 is 1.0.3300. So I went to
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705 and
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322.
and looked at System.dll inside 1.1 and it says it's version
1.1.4322.573 and and looked at System.dll inside 1.0 and it says
it's version 1.0.3705.288. Now System.dll in the GAC I see
four times, twice with version number 1.0.5000.0 and twice with
1.0.3300.0. So my first question is, why are there two of each
version and the versions in GAC not marked with
1.0.3705.288(for version 1.0) and 1.1.4322.573 (for version 1.1)?

Another question I have is what is the purpose of the
C:\WINDOWS\Microsoft.NET\Framework\
directories? Why have the System.dll inside
the GAC and inside C:\WINDOWS\Microsoft.NET\Framework\
directories?

Anyway, thanks in advance for any responses.
Michael
Jul 21 '05 #1
3 1450
Michael,
and looked at System.dll inside 1.1 and it says it's version
1.1.4322.573 and and looked at System.dll inside 1.0 and it says
it's version 1.0.3705.288.
Those are the file version numbers, that usually match the framework
version.

Now System.dll in the GAC I see
four times, twice with version number 1.0.5000.0 and twice with
1.0.3300.0.
That's are the assembly version number. As you see, it doesn't
necessarily match the file version.

So my first question is, why are there two of each version
One may actually be in the NGEN cache (if it says Native Images in the
Type column in Explorer), which isn't really the GAC.

Another question I have is what is the purpose of the
C:\WINDOWS\Microsoft.NET\Framework\
directories? Why have the System.dll inside
the GAC and inside C:\WINDOWS\Microsoft.NET\Framework\
directories?


That's where you point to to reference the assemblies. You can't
reference assemblies in the GAC directly.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #2
Mattias
Thanks for your reply. It makes better sense. How can you
see the true file version that you see in GAC when looking at the file
properties? I take it 1.0.5000.0 is AssemblyVersion and
1.1.4322.573 is AssemblyFileVersion. Why didn't
Microsoft stay consistent with these numbers?
Your right, it does say Native Images cache. This
morning there are two 1.0.5000.0 System.dll in GAC
that have Native Images in the type column and one that does
not have it. Guess it needed to cache them? Does that
get cached when a .NET program is using it and it keeps
it in the cach for x amount of time?

So C:\WINDOWS\Microsoft.NET\Framework\
directory is only used when developing and it's
never used when a program is running? The
reason i'm asking is because this gets installed with
Redistributable installer too. Seems like
a waste of memory if it's only used during
developing.

Once again thanks for your reply.
Michael
On Sat, 17 Jul 2004 13:23:16 +0200, Mattias Sjögren
<ma********************@mvps.org> wrote:
Michael,
and looked at System.dll inside 1.1 and it says it's version
1.1.4322.573 and and looked at System.dll inside 1.0 and it says
it's version 1.0.3705.288.


Those are the file version numbers, that usually match the framework
version.

Now System.dll in the GAC I see
four times, twice with version number 1.0.5000.0 and twice with
1.0.3300.0.


That's are the assembly version number. As you see, it doesn't
necessarily match the file version.

So my first question is, why are there two of each version


One may actually be in the NGEN cache (if it says Native Images in the
Type column in Explorer), which isn't really the GAC.

Another question I have is what is the purpose of the
C:\WINDOWS\Microsoft.NET\Framework\
directories? Why have the System.dll inside
the GAC and inside C:\WINDOWS\Microsoft.NET\Framework\
directories?


That's where you point to to reference the assemblies. You can't
reference assemblies in the GAC directly.

Mattias


Jul 21 '05 #3
Michael,
How can you
see the true file version that you see in GAC when looking at the file
properties?
You can see the assembly version with a tool such as Ildasm.exe.

I take it 1.0.5000.0 is AssemblyVersion and
1.1.4322.573 is AssemblyFileVersion. Why didn't
Microsoft stay consistent with these numbers?
Here's some discussion on why you may want to differentiate them.

http://blogs.msdn.com/suzcook/archiv.../29/57148.aspx

This
morning there are two 1.0.5000.0 System.dll in GAC
that have Native Images in the type column and one that does
not have it. Guess it needed to cache them?


There's a slight difference between them. Run Ngen.exe /show to see
the details.

Mattias

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

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

Similar topics

1
by: gcook | last post by:
Hi, I've got an old perl program running on my webserver - so old that I haven't used a perl programmer in about two years :) (we've gone all php for a variety of reasons). Anyway, I'm...
1
by: GChong | last post by:
Hi, Im looking for some general 'marketing' info on dotnet: how long it has been in use (i.e first release date), how many companies are using it, number of .NET developers in the world,...
6
by: Örjan Skoglösa | last post by:
Hi all, My first posting here. I would be very thankful for a general advice about which "way to go" to accheive a certain arrangement on a web page. The page should show a list of items (a...
39
by: Antoon Pardon | last post by:
I was wondering how people would feel if the cmp function and the __cmp__ method would be a bit more generalised. The problem now is that the cmp protocol has no way to indicate two objects are...
1
by: jason | last post by:
Hello everyone, I have some general questions about the DataTable object, and how it works. Moderately new to C#, I have plenty of texts describing the language, but not so much to reference...
6
by: Andy | last post by:
Someone posted this official proposal to create comp.databases.postgresql.general again. He wrote his own charter. As far as I know, he did not consult any of the postgresql groups first. There...
105
by: Christoph Zwerschke | last post by:
Sometimes I find myself stumbling over Python issues which have to do with what I perceive as a lack of orthogonality. For instance, I just wanted to use the index() method on a tuple which does...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
12
by: Arash Partow | last post by:
Hi all, I've ported various hash functions to python if anyone is interested: def RSHash(key): a = 378551 b = 63689 hash = 0
3
by: =?Utf-8?B?Ymxi?= | last post by:
I am posting to the general discussion group - but I cannot find my postings... or replies...
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...
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.