Last Reviewed: August 9, 2011

Article: DTS0228

Applies to: dtSearch 7.67

This article provides current links for Microsoft components required by the dtSearch Engine's .NET interface.  The components install the Microsoft Foundation Classes and Microsoft Visual C++ Runtime Library.  

vcredist_x86.exe and vcredist_x64.exe (Visual Studio 2010, .NET 4.0 and later)

dtSearchNetApi4.dll requires the MFC and CRT components included with Visual Studio 2010 Service Pack 1. To install these components, you can use the Microsoft redistributable installers vcredist_x86.exe and vcredist_x64.exe that are available from these links:

Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package MFC Security Update (August 9, 2011)

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=26999

vcredist_x86.exe is required for 32-bit applications.

vcredist_x64.exe is required for 64-bit applications.

vcredist_x86.exe and vcredist_x64.exe (Visual Studio 2005 and 2008, .NET 2.0 and later)

dtSearchNetApi2.dll requires the MFC and CRT components included with Visual Studio 2005. To install these components, you can use the Microsoft redistributable installers vcredist_x86.exe and vcredist_x64.exe that are available from this link:

Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package MFC Security Update (June 7, 2011)
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=26347

vcredist_x86.exe is required for 32-bit applications.

vcredist_x64.exe is required for 64-bit applications.

There have been several versions of vcredist_x86.exe and vcredist_x64.exe as they have been updated for service packs and security patches since 2005. Use of older versions with the current version of the dtSearch .NET API will result in an "application configuration is incorrect" exception when you try to run your application.

Why these components are required

Unfortunately there is no way in Visual Studio to build dtSearchNetApi2.dll or dtSearchNetApi4.dll so they do not depend on the CRT DLLs. An API wrapper that connects .NET and the dtSearch Engine's C++ API must be a mixed-mode DLL, so it has to dynamically link with the CRT DLLs.