title: Silverlight Won't Load PivotViewer Collection
body: <p>I'm trying to get a proof-of-concept PivotViewer application up and running, but I can't get the collection to load properly, even in a testing environment.  I'm following these instructions:</p>
  
  <p><a href="http://www.timmykokke.com/2010/08/building-your-first-pivotviewer-application/" rel="nofollow">Building Your First PivotViewer Application</a></p>
  
  <p>I have a clientaccesspolicy XML file in the root, giving all URIs access.  I copied an already existing collection, and have it in the root as well.  The collection XML checks out properly.</p>
  
  <p>Whenever I attempt to debug the application, however, it loads but simply displays the URL for the collection, never actually building the PivotViewer.</p>
  
  <p>MainPage.xaml:</p>
  
  <pre><code>&lt;UserControl x:Class="PivotViewer.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:Pivot="clr-namespace:System.Windows.Pivot;assembly=System.Windows.Pivot"
      mc:Ignorable="d"
      d:DesignHeight="300" d:DesignWidth="400"&gt;
  
      &lt;Grid x:Name="LayoutRoot" Background="White"&gt;
          &lt;Pivot:PivotViewer x:Name="Pivot" /&gt;
      &lt;/Grid&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>MainPage.xaml.cs:</p>
  
  <pre><code>namespace PivotViewer
  {
      public partial class MainPage : UserControl
      {
          public MainPage()
          {
              InitializeComponent();
              Pivot.LoadCollection("http://localhost:55334/Top_Movies.cxml", string.Empty);
          }
      }
  }
  </code></pre>