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
Try to change your target CPU. Go to Properties of your project->Build-Platform Target and set value to x86.
That worked for me.
Menu -> Build -> Clean Solution
project properties
select compile tab
and enable the checkbox Prefer 32bit
or change the Target CPU
to X86
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With