Share via


Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8

Question

Monday, October 3, 2016 7:41 AM

Dears,

I am getting below error with my project in .NET which hosted in Windows 2012

The error as below

Activation context generation failed for "XXXXX.dll". Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.

I've checked in internet the issue might be related to Microsoft Visual C++ 2008 , which is already installed.

Regards,

All replies (5)

Tuesday, October 4, 2016 2:25 AM

Hi Khalil,

Welcome to the MSDN forum.

Did you run the debug build of your application on Windows 2012 that have not installed the corresponding VS version yet? If so, please have a look at this similar issue here and to solve this issue, you need to get the debug CRT dlls from the machine that you developed this application (where you have the VS installed) and copy them into your application directory (along with the manifest file) in Windows 2012.

Those required debug CRT Dlls often locates on the folder: C:\Program Files\Microsoft Visual Studio xx.x\VC\redist\Debug_NonRedist\x86

If you use the 3rd party libraries, you also need to think about pasted the above CRTs in the corresponding bin folders where the 3rd party libraries were present like this issue.

Best regards,

Sara

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.


Tuesday, October 4, 2016 2:20 PM

It shows the error as Microsoft.VC90, which means that's Visual studio 2008, so here does it mean to install the prerequistes of this VS and copy CRT files from developer machine under this server ?! since there is no installation for visual studio 9


Wednesday, October 5, 2016 5:39 AM

Hi Laktor,

Welcome to the MSDN forum.

If you installed the VS 2008, please go to the VS 2008 default installation folder 'C:\Program Files (x86)\Microsoft Visual Studio 9.0', then you can access this folder VC\redist\Debug_NonRedist\x86 and find the required DLLs.

Best regards,

Sara

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.


Monday, April 9, 2018 8:49 AM

Install VS2008 SP1 if there's VS2008 proper installed on the machine (see https://stackoverflow.com/questions/8982996/side-by-side-configuration-error-for-64-bit-debug-build-in-vs2008/49723735#49723735 for details).

If only the debug runtimes are needed, not the entire VS2008, you can install just them with "msiexec /i <path to vs_setup.msi> ADDLOCAL=FT_VCpp_for_VS_Pro_DebugCRT_x86,FT_x64_Toolset_DebugCRT_x64". (The cryptic strings are internal feature IDs from the .msi -- for x86 and x64 debug runtimes, correspondingly.)


Sunday, July 22, 2018 11:58 AM

Solved in 2017 by installing:
Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
https://www.microsoft.com/en-us/download/details.aspx?id=8328
Windows 10 and PCs with Visual Studio will need this fix.

Appreneur Application Architect Software Ronin