Thursday, May 13, 2010

Expression Encoder 3 SDK on a 64-bit Box

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”

* Microsoft.Expression.Encoder.dll
* Microsoft.Expression.Encoder.Types.dll
* Microsoft.Expression.Encoder.Utilities.dll

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=3.0.0.0, 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:

No comments:

Post a Comment