This article has been archived. It is offered "as is" and will no longer be updated.
On a computer that is running Microsoft Windows XP Service Pack 2 (SP2), when you add a reference to a COM object in Microsoft Visual Studio .NET, you may receive an error message that is similar to the following:
A reference to 'COMObject' could not be added.
The type library wrapper tool 'tlbimp' cannot be found on this system. Please re-install Visual Studio.
This issue may occur if the following conditions are true:
Your computer is configured to use one of the new locales that are included in Windows XP SP2.
The version of the Microsoft .NET Framework that you are running does not support the locale that your computer is configured to use.
In this situation, you receive the error message that is mentioned in the "Symptoms" section when the .NET Framework tries to create a CultureInfo object for the locale. The versions of the .NET Framework that do not support the new locales that are included in Windows XP SP2 are listed as follows:
.NET Framework 1.1
.NET Framework 1.0 Service Pack 2 (SP2)
.NET Framework 1.0 Service Pack 1 (SP1)
.NET Framework 1.0
To work around this issue, install a version of .NET Framework that supports culture fallback. The versions of the .NET Framework that support culture fallback include the following:
.NET Framework 1.0 Service Pack 3 (SP3) and later
.NET Framework 1.1 Service Pack 1 (SP1) and later
After you install a version of the .NET Framework that supports culture fallback, you can configure your computer to use a locale that is not supported in the .NET Framework. If you do this, and if you use the default setting for the current culture in managed code, the CultureInfo object is created based on user settings and locales that are available in the .NET Framework. The fallback order is listed as follows:
The default LCID of the system, as specified by the GetSystemDefaultLCID function.
The lLanguage of the user interface of the system, as specified by the GetSystemDefaultUILanguage function.
The invariant culture.
For additional information about the new locales that are supported in Windows XP SP2, click the following article number to view the article in the Microsoft Knowledge Base:
883262 New locales supported in Windows XP Service Pack 2