Thursday, 6 March 2008

To Dot NET or not to Dot NET

The other day we had a large problem with applications and server that have .NET install for running scripts on server side such as ASP and thanks to a registry key missing the wrong version of .NET was detected so in response to that I thought I'd show you how to find the real version number.

find the VBC.exe on your computer you might have more than one, I have three in fact and the folder location as you can see shows the version numbers however this doesn't show the true version of the files in them
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727


in order to know the true version number you must run the file from command line

C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705>vbc
Microsoft (R) Visual Basic .NET Compiler version 7.00.9951
for Microsoft (R) .NET Framework version 1.00.3705.6060
Copyright (C) Microsoft Corporation 1987-2001. All rights reserved.

Now you see the true value is 1.00.3705.6060 showing the service pack and hotfix version on the end this is the only way sometimes of knowing what version is really installed as the registry has missing lines

No comments: