title: Failed certification process of the Windows Phone 8 App Store
body: <p>I am developing a Windows Phone 8 App. The App detects the current geo-coordinates and tries to determine the address of the detected coordinates.
  It works fine in emulator and on my device (HTC 8X), at home (WLAN available) and also somewhere outside (even if the setting 'Data Connection' on the mobile (see below) is off).</p>
  
  <p>I deployed the App to the Microsoft Store and Microsoft's certification process returned the following error Report (I'm not allowed to upload an image of the report...):</p>
  
  <pre><code>Requirements
  The app must handle exceptions raised by the any of the managed or native System 
  API and not close unexpectedly. During the certification process, the app is 
  monitored for unexpected closure. An app that closes unexpectedly fails 
  certification. The app must continue to run and remain responsive to user input 
  after the exception is handled.
  
  Tip:
  A Windows Phone 7 or 8 application may run flawlessly during development and testing, 
  but after submitting it for certification testing, the application may crash or 
  perform unexpectedly. Along these same lines, your application may not perform as 
  expected after publication. 
  This resource, http://support.microsoft.com/kb/2859130, explains the most common 
  reasons for this along with remedies.
  
  Expected Result
  1. Launch your app.
  2. Navigate throughout the app, and then close the app.
  3. Verify that unexpected behavior does not occur during the closing process.
  4. Verify that the app remains responsive to user input and user interaction following 
     an app error.
  
  Comments: 
  Result: Fail
  When the device does not have an active data connection, the application terminates 
  unexpectedly in response to user input.
  
  Steps to Reproduce:
  1. Disable active data connections on the device.
  2. Launch the application.
  3. Enter valid details in 'SMS Contacts' and 'Settings' pages in Panoramic view.
  4. Select 'red' button in 'Emergency Call' page in panoramic view.
  5. Observe the application unexpectedly terminates.
  </code></pre>
  
  <p>My Problem: 
  <strong>I can't reproduce the error.</strong></p>
  
  <p>My question:
  <strong>In the 'steps to reproduce', what does the report exactly mean with "Disable active data connection on the device"?</strong></p>
  
  <p>These are the current settings on my mobile:</p>
  
  <ul>
  <li>Internet sharing = off </li>
  <li>WiFi = on </li>
  <li>Flight Mode = off</li>
  <li>Mobile Network:
  <ul>
  <li>Data Connection = off</li>
  <li>Data Roaming Options = don't roam</li>
  <li>Location Services = on</li>
  </ul></li>
  </ul>
  
  <p>In my code I have inserted the following condition, but I'm not sure if this does really fix the problem:</p>
  
  <pre><code>if (!NetworkInterface.GetIsNetworkAvailable())
  {
      MessageBox.Show(AppResources.ErrMsg_NoDataConnection);
      return;
  }
  </code></pre>
  
  <p>Has anyone a good idea?</p>