title: windows universal app development cognitive services
body: <pre><code>private async void getemotion_Click(object sender, RoutedEventArgs e)
  {
      try
      {
          emotionresult = await emotionServiceClient.RecognizeAsync(imageStream.AsStream());
  
          if(emotionresult !=null)
          {
              Scores score = emotionresult[0].Scores;
              Output.Text = "Your emoptions are:\n" +
                  "Happiness: " + score.Happiness + "\n" +
                  "Sadness: " + score.Sadness + "\n" +
                  "Suprise: " + score.Surprise + "\n" +
                  "Fear: " + score.Fear + "\n" +
                  "Anger:" + score.Anger + "\n" +
                  "Contempt: " + score.Contempt + "\n" +
                  "Disgust: " + score.Disgust + "\n" +
                  "Neutral: " + score.Neutral + "\n";
          }
      }
  </code></pre>
  
  <p>This is the code which i implemented on a button click after capturing an image to get emotional score but getting error in the code in the line
  below</p>
  
  <pre><code>Scores score = emotionresult[0].Scores;
  </code></pre>
  
  <blockquote>
    <p>Error CS0266  Cannot implicitly convert type 'Microsoft.ProjectOxford.Common.Contract.EmotionScores' to 'Microsoft.ProjectOxford.Emotion.Contract.Scores'. An explicit conversion exists (are you missing a cast?)    App1    C:\Users\Akshay\Documents\Visual Studio 2015\Projects\App1\App1\MainPage.xaml.cs    93  Active</p>
  </blockquote>