trying to run sample wpf application throws an exception 