title: Initialize Component throws a null reference exception
body: <p>I have a menu item in a large program that opens a new window. Nothing gets passed into it, it loads a calendar, 3 empty  text boxes, 3 labels, 2 buttons and an empty Crystal Report Viewer. </p>
  
  <p>When its running the user clicks on the calendar and this automatically inserts the first and last dates of the selected month into 2 of the text boxes. One button loads a CR report with data from a DB, the other button prints the report.</p>
  
  <p>This works fine on my system but the Initialize Component throws a null reference exception when deployed on a colleagues system. I cannot recreate the exception on my system.</p>
  
  <p>Has anyone any ideas on where I should even start?</p>
  
  <p>Updated</p>
  
  <p>ERROR</p>
  
  <pre><code>System.NullReferenceException: Object reference not set to an instance of an object.
     at System.Windows.Baml2006.Baml2006Reader.Process_PropertyWithConverter()
     at System.Windows.Baml2006.Baml2006Reader.Process_OneBamlRecord()
     at System.Windows.Baml2006.Baml2006Reader.Process_BamlRecords()
     at System.Windows.Baml2006.Baml2006Reader.Read()
     at System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector)
     at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
     at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
     at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
     at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
     at KeyInScreen.RebatesReports.InitializeComponent()
     at KeyInScreen.RebatesReports..ctor()
     at KeyInScreen.Menu.FertiliserRebate_Click(Object sender, RoutedEventArgs e)
  </code></pre>
  
  <p>XAML Code </p>
  
  <pre><code>&lt;Window x:Class="KeyInScreen.RebatesReports"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="Fertiliser Rebates" WindowState="Maximized" 
      xmlns:my="clr-namespace:SAPBusinessObjects.WPF.Viewer;assembly=SAPBusinessObjects.WPF.Viewer" 
      mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Height="700" 
      Width="1350"&gt;
  &lt;Window.Resources&gt;
      &lt;Style TargetType="{x:Type Label}"&gt;
          &lt;Setter Property="FontSize" Value="14" /&gt;
      &lt;/Style&gt;
      &lt;Style TargetType="{x:Type Button}"&gt;
          &lt;Setter Property="FontSize" Value="14"/&gt;
      &lt;/Style&gt;
      &lt;Style TargetType="{x:Type Calendar}"&gt;
          &lt;Setter Property="FontSize" Value="14"/&gt;
      &lt;/Style&gt;
      &lt;Style TargetType="{x:Type TextBox}"&gt;
          &lt;Setter Property="FontSize" Value="14"/&gt;
      &lt;/Style&gt;
  &lt;/Window.Resources&gt;
  
  &lt;Grid Background="#FFEFEDDF"&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height=".5*"/&gt;
          &lt;RowDefinition Height=".5*"/&gt;
          &lt;RowDefinition Height="4*"/&gt;
          &lt;RowDefinition Height="*"/&gt;
          &lt;RowDefinition Height="*"/&gt;
          &lt;RowDefinition Height="*"/&gt;
          &lt;RowDefinition Height="*"/&gt;
          &lt;RowDefinition Height="*"/&gt;
          &lt;RowDefinition Height="*"/&gt;
          &lt;RowDefinition Height="5*"/&gt;
      &lt;/Grid.RowDefinitions&gt;
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width=".2*"/&gt;
          &lt;ColumnDefinition Width=".7*"/&gt;
          &lt;ColumnDefinition Width=".7*"/&gt;
          &lt;ColumnDefinition Width=".7*"/&gt;
          &lt;ColumnDefinition Width=".5*"/&gt;
          &lt;ColumnDefinition Width="4*"/&gt;
          &lt;ColumnDefinition Width=".1*"/&gt;
      &lt;/Grid.ColumnDefinitions&gt;
      &lt;Calendar x:Name="cDatePicker" Grid.Column="1" Grid.Row="2" Grid.RowSpan="2" Grid.ColumnSpan="2" SelectedDatesChanged="cDatePicker_SelectedDatesChanged" /&gt;
      &lt;Label Content="Start Date:" Grid.Column="1" Grid.Row="4" Margin="5"/&gt;
      &lt;TextBox x:Name="txtStartDate" Grid.Column="2" Grid.Row="4" Margin="5" VerticalContentAlignment="Center" /&gt;
      &lt;Label Content="End Date:" Grid.Column="1" Grid.Row="5" Margin="5"/&gt;
      &lt;TextBox x:Name="txtEndDate" Grid.Column="2" Grid.Row="5" Margin="5" VerticalContentAlignment="Center"/&gt;
      &lt;Label Content="Supplier Number:" Grid.Column="1" Grid.Row="6" Margin="5"/&gt;
      &lt;TextBox x:Name="txtCustomerNumber" Grid.Column="2" Grid.Row="6" Margin="5" VerticalContentAlignment="Center" TabIndex="1" /&gt;
      &lt;Button x:Name="btnShowRport" Content="View Report" Grid.Column="1" Grid.Row="8" Margin="0,0,10,0"  Click="btnShowRport_Click" IsDefault="True" /&gt;
      &lt;Button x:Name="btnPrintReport" Content=" Print Report" Grid.Column="2" Grid.Row="8" Margin="10,0,0,0"  Click="btnPrintReport_Click" /&gt;
      &lt;my:CrystalReportsViewer  x:Name="crReportViewer" Grid.Column="3" Grid.RowSpan="10" HorizontalAlignment="Center" VerticalAlignment="Center" 
                                Height="656" Width="845" Margin="94,-7,62,12" ToggleSidePanel="None" Panel.ZIndex="0" Grid.ColumnSpan="3" 
                                ShowPrintButton="False" ShowRefreshButton="False" ShowSearchTextButton="False" ShowToggleSidePanelButton="True"
                                ShowToolbar="True" ShowNextPageButton="True" ShowGoToPageButton="True" ShowExportButton="False" 
                                ShowCopyButton="False" SnapsToDevicePixels="True" ShowLogo="False" ShowPrevPageButton="True" 
                                ShowStatusbar="True" /&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thanks</p>