Not able to run C# sample application


#1

Hi,

I want to use affectiva SDK for video analyser, and for that I download “https://github.com/Affectiva/csharp-sample-apps” and try to run this demo but always give runtime error (see below), Please help me how to run this. Even this video not helping(https://knowledge.affectiva.com/docs/getting-started-with-the-emotion-sdk-for-windows).

Error log
{An unhandled exception of type ‘System.IO.FileNotFoundException’ occurred in mscorlib.dll

Additional information: Could not load file or assembly ‘Affdex.dll’ or one of its dependencies. The specified module could not be found.}

Thanks And Regard

Avinash


#2

check in the properties that the configuration is release and the platform is 64


#3

Is this resolved then?


#4

Thanks for the response,
I have already configured same in the visual studio 2015, release mode and platform is 64bit and also added the reference to affdex-native.dll as shown in the video. Then also I am getting same errors.


#5

Hi, please try running Dependency Walker (http://www.dependencywalker.com/) on Affdex.dll to identify what you’re missing.


#6

Using Dependency Walker, it gave

Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

please help.


#7

Hi, I found another resource that may be helpful, take a look at
https://www.codeproject.com/Articles/560816/Troubleshooting-dependency-resolution-problems-usi


#8

Hi,
I ran into the same problem today. I used the Process monitor to investigate which dependency was missing.
The problem is in “tensorflow.dll” which isn’t linked to project.

So, to make “sample project” working I did these steps:

  • Delete the “affdex-native.dll” and “opencv_ffmpeg248_64.dll” from project
  • Add them again: Project > Add existing item… > choose “affdex-native.dll”, “opencv_ffmpeg248_64.dll” and also “tensorflow.dll” from C:\Program Files\Affectiva\AffdexSDK\bin
  • In the properties of the libs change parameter to “Always copy”

After that AffdexMe finally launched successfully


Affdex.dll dependency issue
#9

@umang_mehta, this is not directly related to this post, but I’ve written a post about a similar error last week, and it seems that it is still being reviewed by an administrator (he’s supposed to be checking if it’s spam). Could someone tell me how long does that checkup process usually take? Thank you.


#10

@francisco_homem I was able to mark your post as not spam.


#11