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,
Smilenet.dll
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Smilenet.dll
The Microsoft's document linked below deals with the error 0x8007045A:
https://blogs.msdn.microsoft.com/tess/2 ... x8007045a/
https://blogs.msdn.microsoft.com/tess/2 ... x8007045a/
Re: Smilenet.dll
Hi,
I solved the issue by adding the following line in the app.config.
<startup useLegacyV2RuntimeActivationPolicy="true">
I solved the issue by adding the following line in the app.config.
<startup useLegacyV2RuntimeActivationPolicy="true">