locked
Application is not getting certified.

    Question

  • Hello, I have made a simple video media player windows store application. I am submitting the .appxupload file to my developer account but I am getting an error - 

    "Certification Report

    Overall result: failed

    Report generated at 8/19/2014 2:18 PM UTC

    Windows 8

    Security tests: incomplete

    This test scans your app for malware and unwanted behaviors. Learn more

    Technical compliance: failed

    This tests your app with the Windows App Certification Kit. You can also run this the test locally from the SDK. Learn more

    One or more of the Windows App Certification Kit tests failed. Test your app with the Windows App Certification Kit on your computer to get more detailed info about this error."

    Also before submitting the app I am performing the tests with the kit provided from my SDK, where the tests are declared as PASSED. I have gone through my code many times and don't have idea that what had went wrong. Below is the source code of my main.xaml.cs page.

    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    using Windows.Storage;
    using Windows.Media;
    using Windows.Storage.Pickers;
    
    // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
    
    namespace sample
    {
        /// An empty page that can be used on its own or navigated to within a Frame.
        /// </summary>
        public sealed partial class MainPage : Page
        {
            DispatcherTimer _timer = new DispatcherTimer();
            double maxdur,ratio;
            int i = 0;
            public MainPage()
            {
                try
                {
                    this.InitializeComponent();
                    _timer.Interval = TimeSpan.FromMilliseconds(1000);
                    _timer.Tick += timer1_Tick;
                    _timer.Start();
                }
                catch (Exception er)
                {
                    var my = er.Message;
    
                }
            }
            public void timer1_Tick(object sender, object e)
            {
                try
                {
                    if (i == 1)
                        progressbar.Value = media.Position.TotalSeconds / maxdur * 100;
                }
                catch (Exception er)
                {
                    var my = er.Message;
    
                }
            }
           public void media_MediaOpened_1(object sender, RoutedEventArgs e)
           {
               try
               {
                   Duration dur = media.NaturalDuration;
                   TimeSpan t = dur.TimeSpan;
                   maxdur = t.TotalSeconds;
                   progressbar.Maximum = 100;
                   ratio = media.Position.TotalSeconds / maxdur;
                   i = 1;
               }
               catch (Exception er)
               {
                   var my = er.Message;
    
               }
           }
           private void progressbar_PointerPressed_1(object sender, PointerRoutedEventArgs e)
           {
               try
               {
                   Slider s = sender as Slider;
                   media.Position = TimeSpan.Parse(s.Value.ToString());
               }
               catch (Exception er)
               {
                   var my = er.Message;
    
               }
           }
    
        
            
            /// <summary>
            /// Invoked when this page is about to be displayed in a Frame.
            /// </summary>
            /// <param name="e">Event data that describes how this page was reached.  The Parameter
            /// property is typically used to configure the page.</param>
            protected override void OnNavigatedTo(NavigationEventArgs e)
            {
            }
            int flag = 0;
            double rate = 1.0;
            private bool _isFullscreenToggle = false;
            public bool IsFullscreen
            {
                get { return _isFullscreenToggle; }
                set { _isFullscreenToggle = value; }
            }
            private void FullscreenToggle()
            {
                try
                {
                    this.IsFullscreen = !this.IsFullscreen;
    
                    if (this.IsFullscreen)
                    {
                        media.Width = Window.Current.Bounds.Width;
                        media.Height = Window.Current.Bounds.Height;
                    }
                    else
                    {
                        media.Width = 1024;
                        media.Height = 500;
                    }
                }
                catch (Exception er)
                {
                    var my = er.Message;
    
                }
            }
            private void zoom_Click_1(object sender, RoutedEventArgs e)
            {
                try
                {
                    FullscreenToggle();
                    if (flag == 0)
                    {
                        zoom.Visibility = Visibility.Collapsed;
                        nozoom.Visibility = Visibility.Visible;
                        flag = 1;
                    }
                    else
                    {
                        zoom.Visibility = Visibility.Visible;
                        nozoom.Visibility = Visibility.Collapsed;
                        flag = 0;
                    }
                }
                catch (Exception er)
                {
                    var my = er.Message;
    
                }
            }
            private void stop_Click_1(object sender, RoutedEventArgs e)
            {
                try
                {
                    media.Stop();
                    pause.Visibility = Visibility.Visible;
                    play.Visibility = Visibility.Collapsed;
                }
                catch (Exception er)
                {
                    var my = er.Message;
    
                }
            }
            private void rewind_Click_1(object sender, RoutedEventArgs e)
            {
                try
                {
                    rate = rate - 2.0;
                    media.DefaultPlaybackRate = rate;
                    media.Play();
                    pause.Visibility = Visibility.Visible;
                    play.Visibility = Visibility.Collapsed;
                }
                catch (Exception er)
                {
                    var my = er.Message;
    
                }
            }
    
            private void pause_Click_1(object sender, RoutedEventArgs e)
            {
                try
                {
                    if (media.DefaultPlaybackRate != 1)
                    {
                        media.DefaultPlaybackRate = 1.0;
                    }
                    media.Play();
                    pause.Visibility = Visibility.Collapsed;
                    play.Visibility = Visibility.Visible;
                }
                catch (Exception er)
                {
                    var my = er.Message;
    
                }
            }
    
            private void play_Click_1(object sender, RoutedEventArgs e)
            {
                try
                {
                    media.Pause();
                    play.Visibility = Visibility.Collapsed;
                    pause.Visibility = Visibility.Visible;
                }
                catch (Exception er)
                {
                    var my = er.Message;
    
                }
            }
    
            private void forward_Click_1(object sender, RoutedEventArgs e)
            {
                try
                {
                    rate = rate + 2.0;
                    media.DefaultPlaybackRate = rate;
                    media.Play();
                    pause.Visibility = Visibility.Visible;
                    play.Visibility = Visibility.Collapsed;
                }
                catch (Exception er)
                {
                    var my = er.Message;
    
                }
            }
            private async void file_Click_1(object sender, RoutedEventArgs e)
            {
                try
                {
                    var openPicker = new FileOpenPicker();
                    openPicker.SuggestedStartLocation = PickerLocationId.VideosLibrary;
                    openPicker.FileTypeFilter.Add(".wmv");
                    openPicker.FileTypeFilter.Add(".mp4");
                        var file = await openPicker.PickSingleFileAsync();
    
                        if (file.Name.Equals(null))
                        {
                            file = await openPicker.PickSingleFileAsync();
                        }
                        else
                        {
                            var stream = await file.OpenAsync(FileAccessMode.Read);
                            media.SetSource(stream, file.ContentType);
                            media.Play();
                            play.Visibility = Visibility.Visible;
                            pause.Visibility = Visibility.Collapsed;
                            progressbar.Minimum = 0;
                        }
                    }
                catch (Exception er)
                {
                    var my = er.Message;
    
                }
            }
            private void up_Click_1(object sender, RoutedEventArgs e)
            {
                try
                {
                    if (media.IsMuted)
                    {
                        media.IsMuted = false;
                    }
    
                    if (media.Volume < 1)
                    {
                        media.Volume += .1;
                    }
                    vol.Value -= 10;
                }
                catch (Exception er)
                {
                    var my = er.Message;
    
                }
    
            }
    
            private void down_Click_1(object sender, RoutedEventArgs e)
            {
                try
                {
                    if (media.IsMuted)
                    {
                        media.IsMuted = false;
                    }
    
                    if (media.Volume > 0)
                    {
                        media.Volume -= .1;
                    }
                    vol.Value += 10;
                }
                catch (Exception er)
                {
                    var my = er.Message;
    
                }
            }
    
            private void Transportcontrolspanel_PointerEntered_1(object sender, PointerRoutedEventArgs e)
            {
                try
                {
                    Transportcontrolspanel.Opacity = 1.0;
                    progressbar.Opacity = 1.0;
                }
                catch (Exception er)
                {
                    var my = er.Message;
    
                }
            }
            private void Transportcontrolspanel_PointerMoved_2(object sender, PointerRoutedEventArgs e)
            {
                try
                {
                    Transportcontrolspanel.Opacity = 0;
                    progressbar.Opacity = 0;
                }
                catch (Exception er)
                {
                    var my = er.Message;
    
                }
            }
        }
    }

    This is my first time and any help would be highly appreciated.

    </section>
    Tuesday, August 19, 2014 3:56 PM

Answers

  • Hi,

    Please make sure that your app is tested with latest Windows App certification kit.  Try with the current app certification kit which 3.3

    https://dev.windows.com/en-us/develop/app-certification-kit?logged_in=1


    -Malleswar

    Tuesday, August 19, 2014 8:50 PM
  • Hi anasanshu68,

    Take a look at the Certify your app, the failed reason might be as Malleswara mentioned you did not use the latest WACK, please follow the documentation step by step to certify your app.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Monday, August 25, 2014 2:02 AM
    Moderator

All replies