title: App keeps crashing during certification when using Microsoft Advertising SDK for XAML
body: <p>In my already published app, I tried adding ADs using “Microsoft Advertising SDK for XAML” (tried adding reference via both NuGet and msi). On my dev machine both debug and release builds work fine, even .appxbundle created as part of packaging works as expected, but the app always crashes at launch for the reviewer when submitted for review/certification (.appxupload file).</p>
  
  <p>Note: The app is a Desktop Bridge app. There is a UWP app which communicates with a win32 exe. The call to launch Feedback hub or Ads are in the UWP app.</p>
  
  <p>Following are the max and min supported versions of my project-</p>
  
  <pre><code>&lt;TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' "&gt;10.0.17134.0&lt;/TargetPlatformVersion&gt;
  &lt;TargetPlatformMinVersion&gt;10.0.14393.0&lt;/TargetPlatformMinVersion&gt;
  </code></pre>
  
  <p>I also tried adding following entries in the rd.xml file hoping to fix any reflection related issue, but no luck</p>
  
  <pre><code>&lt;Type Name="Microsoft.Advertising" Dynamic="Required All"/&gt;   
  &lt;Type Name="Microsoft.Advertising.WinRT.UI" Dynamic="Required All"/&gt;
  
  &lt;Namespace Name="Microsoft.Advertising" Serialize="All"/&gt;   
  &lt;Namespace Name="Microsoft.Advertising.WinRT.UI" Serialize="All"/&gt;
  </code></pre>
  
  <h2>Edit</h2>
  
  <p>On removing reference to Ad SDK the app passed certification and didn't crash for the reviewer. The app packages which crashed during review had reference to <code>Microsoft.Advertising.Xaml</code> <code>10.1811.1.0</code>.</p>