.NET Framework po chińsku?
Włączam sobie Microsoft SQL Server Management Studio i ni stąd, ni zowąd wyskakuje mi dziwny błąd:
The file C:\Windows\Microsoft.NET\Framework\(znaczki po chińsku)\mscorlib.tlb could not be loaded. An attempt to repair this condition failed because the file could not be found. Please reinstall this program.
Nie wiem czy te znaczki są po chińsku, ale na pewno nie po naszemu. Komunikat dosyć nie ciekawy i na pewno zaskakujący. Bo w końcu co jest nie tak z moim .NET Frameworkem?
Na szczęście znalazłem rozwiązanie na stronach Microsoftu. Nie trzeba instalować na nowo ani frameworka, ani MSSQL. Całość ogranicza się do podmiany wartości w rejestrze.
W wersji Express odnajdujemy klucz
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\Tools\ShellSEM\TlbAutoRepair\mscorlib.tlb.
Powininna tam znajdować się wartość TlbPath. Cały trick polega na zamianie wartości %CLRVERSION% na v2.0.50727, czyli aktualną wersję .NET.
Całość rozwiązuje problem, ale co gdy zmieni się wersja .NET? Nie wiem, czy nazwa zostanie podmieniona…

Mocrosoft pisze wprost:
If you install a SQL Server 2005 service pack or hotfix, the service pack or hotfix will change the value that you replace in step 4 back to %CLRVERSION%. If the problem that is described in this article still exists after you install the service pack or the hotfix, you must following these steps again to work around this problem.
Step 4, to zmiana %CLEARVERION% na „v2.0.50727″