Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to start program, unrecognized error in windows web services framework

Tags:

c++

c#

My c# console app calls a managed c++ dll. The dll is added as a reference to the c# project. If I try to start in debug mode it says error while trying to run project. unable to start program, unrecognized error in windows web service framework. It is not a web application. If I run without debugging, the console pops up and my dll produces an error that the hdf5 header files don't match the hdf5 library my c++ dll is linked to (though it compiles and builds just fine). Both c# driver and c++ dll are 64 bit on a 64 bit machine. Both the F5 and ctrl F5 errors are puzzling. Hope someone has info on this. thanks, sb

like image 208
User720153 Avatar asked Feb 23 '13 05:02

User720153


Video Answer


2 Answers

Try to change your target CPU. Go to Properties of your project->Build-Platform Target and set value to x86.

That worked for me.

like image 60
Daniel03 Avatar answered Oct 16 '22 02:10

Daniel03


  1. Clean solution old files using Menu -> Build -> Clean Solution
  2. In your project properties select compile tab and enable the checkbox Prefer 32bit or change the Target CPU to X86
  3. Try to compile/debug again after applying steps above
like image 22
Mojtaba Rezaeian Avatar answered Oct 16 '22 00:10

Mojtaba Rezaeian