%CLRVERSION%

A

Axel Bender

Hi all!

Since I had to repair my system (Windows Server 2003 R2 SP2) using the
installation CD, and after having applied the system updates that
Windows suggested, I encounter the following error: When I start Visual
Studio, a message appears stating that
*c:\windows\Microsoft.NET\Framework\<two_cryptic_chars> \mscorlib.tlb
cannot be found*. Confirming the message with OK, lets the application
start up w/o further errors.

Searching the Registry, I found that the <two_cryptic_chars> are a
placeholder for the environment variable %CLRVERSION% which is missing
from my environment.

My questions are: Where is the variable set? What value has it - after
installing .NET Framework 3.5?

Below the places in the Registry, that use the %CLRVERSION% environment
variable.

\Registry
Machine
SOFTWARE
Microsoft
Microsoft SQL Server
90
Tools
Shell
TlbAutoRepair
mscorlib.tlb
TlbPath =
%windir%\Microsoft.NET\Framework\%CLRVERSION%\mscorlib.tlb
VisualStudio
8.0
TlbAutoRepair
mscorlib.tlb
TlbPath =
%windir%\Microsoft.NET\Framework\%CLRVERSION%\mscorlib.tlb
9.0
TlbAutoRepair
mscorlib.tlb
TlbPath =
%windir%\Microsoft.NET\Framework\%CLRVERSION%\mscorlib.tlb
VSA
8.0
TlbAutoRepair
mscorlib.tlb
TlbPath =
%windir%\Microsoft.NET\Framework\%CLRVERSION%\mscorlib.tlb
9.0
TlbAutoRepair
mscorlib.tlb
TlbPath =
%windir%\Microsoft.NET\Framework\%CLRVERSION%\mscorlib.tlb
 
C

Ciaran O''Donnell

Could it be an Environment Variable. It isnt on my desktop and its a friday
night so I cant check my servers right now. Add those through the system
control panel (Windows Key + Pause/Break), go to the advance tab and hit the
environment variables button. Then add it as a system one.

Hope it helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top