title: WCF WiX deployed app Commands not functioning
body: <p>I have a WCF application that I have built and deployed using WiX.  In my development environment, the application runs fine.  When I attempt to launch the app after installation on a test machine, the app launches fine, but no 'buttons' work.  </p>
  
  <p>(I quoted buttons because I have an actual button and a pair of menu items that will not work.)</p>
  
  <p>I am using an MVVM pattern and all of the buttons use Commands.  I have set the Datacontext to be an instance of the ViewModel where the command methods are stored.</p>
  
  <p>MainWindow.xaml.cs:</p>
  
  <pre><code> public MainWindow(Configuration config)
      {
          InitializeComponent();
          log.Info("Application started.");
          MainWindowViewModel _model = new MainWindowViewModel(config);
          _model.Config = config;
          DataContext = _model;
          Closing += _model.OnClosing;
      }
  </code></pre>
  
  <p>MainWindowViewModel.cs</p>
  
  <pre><code>public MainWindowViewModel(Configuration config)
      {
          try
          {
              Config = config;
  
              ...
  
              PlayCommand = new PlayCommand(this);
              StopCommand = new StopCommand(this);
              PauseCommand = new PauseCommand(this);
              OptionsCommand = new OptionsCommand(this);
              ExitCommand = new ExitCommand(this);
  
              ...
  
          }
          catch(Exception ex)
          {
              log.Error(ex.Message, ex);
          }
      }
  
  
  public void Play()
      {
          &lt;Play logic&gt;
      }
  </code></pre>
  
  <p>PlayCommand.cs</p>
  
  <pre><code>public class PlayCommand : ICommand
  {
      private MainWindowViewModel _viewModel;
  
      public event EventHandler CanExecuteChanged;
  
      public PlayCommand(MainWindowViewModel viewModel)
      {
          _viewModel = viewModel;
      }
  
      public bool CanExecute(object parameter)
      {
          return _viewModel.IsPlaying;
      }
  
      public void Execute(object parameter)
      {
          _viewModel.Play();
      }
  }
  </code></pre>
  
  <p>Any advice?</p>