If you plan on using the Expression Encoder 3 SDK on an 64-bit box, then there is one additional setup step that is necessary that the SDK documentation doesn’t cover.
Here are the steps I took:
1. Create a new C# Console application.
2. Add a Reference to the Expression Encoder 3 Assemblies located in “%SYSTEMDRIVE%\Program Files (x86)\Microsoft Expression\Encoder 3\SDK”
3. Add a Reference to WindowsBase.dll
4. If you try to use anything in the Microsoft.Expression.Encoder namespace, you will get a runtime error:System.IO.FileNotFoundException was unhandled
Message="Could not load file or assembly 'Microsoft.Expression.Encoder, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."
5.To fix this problem, you need to compile your application targeting a 32-bit (x86) platform:
For lots of great tips, I recommend checking out the Expression Encoder Blog at https://blogs.msdn.com/expressionencoder.