473,320 Members | 2,071 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.

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 1447
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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: 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
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
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...

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.