-1

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.

simba
  • 11
  • 8

2 Answers2

0

One of the common trouble shooting tool is to look at the Event Viewer to see whether it has logged any exceptions.

It is likely that there are missing dependencies for your unmanaged DLL. One common tool to check this is the Dependency Walker.

Subbu
  • 2,130
  • 1
  • 19
  • 28
  • There are no logs in event viewer. And I tried dependency walker, adding dlls didn't help much. – simba Jul 11 '17 at 15:24
0

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.

simba
  • 11
  • 8