title: Assembly not found error
body: <pre><code>    using System;
      using System.Collections.Generic;
      using System.Linq;
      using System.Text;
      using System.Windows;
      using System.Windows.Controls;
      using System.Windows.Data;
      using System.Windows.Documents;
      using System.Windows.Input;
      using System.Windows.Media;
      using System.Windows.Media.Imaging;
      using System.Windows.Navigation;
      using System.Windows.Shapes;
      using WebcamControl;
      using System.Drawing.Imaging;
      using Microsoft.Expression.Encoder;
      using System.Reflection;
  
      namespace SMS
      {
      /// &lt;summary&gt;
      /// Interaction logic for camphoto.xaml
      /// &lt;/summary&gt;
      public partial class camphoto : Window
      {
          public camphoto()
          {
              InitializeComponent();
          }
  
          private void Window_Loaded(object sender, RoutedEventArgs e)
          {
              try
              {
              Binding bndg_1 = new Binding("SelectedValue");
              bndg_1.Source = comboBox1;
              webcam1.SetBinding(WebcamControl.Webcam.VideoDeviceProperty, bndg_1);
  
              //set properties
              webcam1.PictureFormat = ImageFormat.Jpeg;
  
              webcam1.FrameRate = 30;
              webcam1.FrameSize = new System.Drawing.Size(320, 240);
  
              comboBox1.SelectedIndex = 0;
              string str = Microsoft.Expression.Encoder.Devices.EncoderDeviceType.Video.ToString();
  
                  FindDevice();
              }
              catch (Exception ex)
              {
                  MessageBox.Show(ex.ToString());
              }
          }
          private void FindDevice()
          {
              var vidDevice = Microsoft.Expression.Encoder.Devices.EncoderDevices.FindDevices(Microsoft.Expression.Encoder.Devices.EncoderDeviceType.Video);
              foreach (var data in vidDevice)
              {
                  comboBox1.Items.Add(data.Name);
              }
          }
      }
  }
  </code></pre>
  
  <p>Hi Friends, This is my code what it is preview to webcam. But one error is coming when I'm debugging this. </p>
  
  <blockquote>
    <p>"File Not found Exception was cought : Could not load file or assembly
    'Microsoft.Expression.Encoder, Version=4.0.0.0, Culture=neutral,
    PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The
    system cannot find the file specified."</p>
  </blockquote>
  
  <p>I'm already added <code>Microsoft.Expression.Encoder</code> reference to project references. But I don't understand why it is coming. please help me.</p>