Smilenet.dll

The engine.
Post Reply
kyc212
Posts: 4
Joined: Thu Apr 13, 2017 12:59 pm

Smilenet.dll

Post by kyc212 »

Hi,

I implemented the tutorial for C# (Success and Failure ), I added the smilenet.dll and there are no errors displaying on the console program. However, when I run the program I get an exception as below:

An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll

Additional information: Could not load file or assembly 'smileNet.dll' or one of its dependencies. A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)


Can anyone help and advise? Just so you know I am running Visual Studio Enterprise 2015 on a virtual machine

Thanks,
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: Smilenet.dll

Post by shooltz[BayesFusion] »

The Microsoft's document linked below deals with the error 0x8007045A:

https://blogs.msdn.microsoft.com/tess/2 ... x8007045a/
kyc212
Posts: 4
Joined: Thu Apr 13, 2017 12:59 pm

Re: Smilenet.dll

Post by kyc212 »

Hi,

I solved the issue by adding the following line in the app.config.

<startup useLegacyV2RuntimeActivationPolicy="true">
Post Reply