Search code examples
c#c++mfcwindows-server-2008-r2windows-server-2012-r2

Application built on Windows Server 2012 R2 fails on windows server 2008 R2


I have MFC application built on windows server 2012 R2. It works fine on non-build machines Windows Server 2012 R2. But It fails to start on Windows Sevrer 2008 R2.

Both machines are 64bit. Some more information about the MFC application. My app has both managed and unmanaged code.I have one dll which has support for common language runtime CLR. I load it on runtime. My application is targeted for .NetFramework4.0

I have installed both .netframework4.0 and .netframework4.5 on Windows Server 2008 R2 machine. Still it fails to start the application.


Solution

  • The application which was built on Windows Server 2012 R2 and it was statically linked with Boost Library.

    The scenario was like this, I had both managed and native built libraries. When I referred a C++\CLI library which was statically linked to Boost libraries was failing to load with the linker.

    Solution: Link boost libraries dynamically.