title: Compilation Error after deoplyment. Doesn't recognize 'Theme' attribute
body: <p>My local copy works fine, then I publish the website and I get this error.</p>
  
  <blockquote>
    <p>Compilation Error </p>
    
    <p>Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. </p>
    
    <p>Compiler Error Message: BC30456: 'Theme' is not a member of 'ASP.invoice_aspx'.</p>
    
    <p>Source Error:</p>
    
    <p>Line 1:  &lt;%@ page title="Invoice" language="VB" masterpagefile="~/MasterPage.master" autoeventwireup="false" inherits="Invoice, App_Web_1d5eb-af" theme="Default" %></p>
    
    <p>Line 2:  </p>
    
    <p>Line 3:  <code>&lt;asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server"&gt;</code></p>
    
    <p>Source File: C:\Inetpub\eSolutions_xyAMP_DEV\Invoice.aspx    Line: 1 </p>
  </blockquote>
  
  <p>What is going on here?</p>
  
  <p>HTML SOURCE</p>
  
  <pre><code>&lt;%@ Page Title="Invoice" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Invoice.aspx.vb" Inherits="Invoice" Theme="Default" %&gt;
  
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server"&gt;
  &lt;/asp:Content&gt;
  &lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"&gt;
      &lt;table style="width:100%;"&gt;    
          &lt;tr&gt;
              &lt;td align="center"&gt;
                  &lt;asp:panel id="pnl"   runat="server"
                  Width="992px" Wrap="False" HorizontalAlign="Center"  &gt;
                  &lt;asp:Button id="btnPrepareInvoice" runat="server"   Text="Trial Invoice"  &gt;&lt;/asp:Button&gt;
                  &lt;asp:Button id="btnFinalize" runat="server"   Text="Final Invoice"   &gt;&lt;/asp:Button&gt;
                  &lt;/asp:panel&gt;
               &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
      &lt;br /&gt;
      &lt;table width="100%"&gt; 
          &lt;tr&gt;
          &lt;td     class="Subhdr" align="center" &gt;
              &lt;asp:Label ID="Label7" Cssclass="ScreenHdr"  runat="server" Font-Bold="True"  
              Font-Size="Medium"   Height="24px" 
                    Width="221px"&gt;Issued Contracts&lt;/asp:Label&gt;
               &lt;/td&gt;
               &lt;/tr&gt;
               &lt;/table&gt;
               &lt;asp:datagrid id="dgrContracts"  
                  runat="server" HorizontalAlign="Center"  BorderColor="#C0C0FF" 
          ForeColor="Blue" Font-Size="8pt" Font-Bold="True" BorderWidth="1px" 
          BorderStyle="Solid" Font-Names="Arial"
                    ShowFooter="True" OnPageIndexChanged="IssueDataGrid_Page" 
          OnSortCommand="IssueDataGrid_Sort" AllowPaging="True" CellPadding="2" 
          GridLines="Horizontal" AutoGenerateColumns="False"
                  AllowSorting="True" OnItemCommand="IssueDataGrid_Command" Width="100%"&gt;
                  &lt;FooterStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Top"&gt;&lt;/FooterStyle&gt;
                  &lt;SelectedItemStyle Wrap="False" BackColor="#E0E0E0"&gt;&lt;/SelectedItemStyle&gt;
                  &lt;EditItemStyle Wrap="False"&gt;&lt;/EditItemStyle&gt;
                  &lt;AlternatingItemStyle Font-Size="8pt" Font-Bold="True" Wrap="False" HorizontalAlign="Left" Height="18px"
                      BorderWidth="1px" ForeColor="#0000C0" BorderStyle="Solid" BorderColor="#C0C0FF" VerticalAlign="Middle"
                      &gt;&lt;/AlternatingItemStyle&gt;
                  &lt;ItemStyle Font-Size="8pt" Font-Names="Arial" Font-Bold="True" Wrap="False" HorizontalAlign="Left"
                      Height="18px" ForeColor="#0000C0" VerticalAlign="Middle"&gt;&lt;/ItemStyle&gt;
                  &lt;HeaderStyle Font-Size="8pt" Font-Names="Arial" Font-Bold="True" Wrap="False" HorizontalAlign="Left"
                      Height="18px" ForeColor="White" BackColor="Blue"&gt;&lt;/HeaderStyle&gt;
                  &lt;Columns&gt;
                      &lt;asp:TemplateColumn&gt;
                          &lt;ItemTemplate&gt;
                              &lt;asp:Button id="btnSelect" runat="server" Width="13px" BackColor="Yellow" ForeColor="White"
                                  Height="13px" CommandName="Select"&gt;&lt;/asp:Button&gt;
                          &lt;/ItemTemplate&gt;
                      &lt;/asp:TemplateColumn&gt;
                      &lt;asp:BoundColumn DataField="MBI_Selected"&gt;&lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="CUST_CombinedNumber" SortExpression="CUST_CombinedNumber" HeaderText="Number"&gt;
                          &lt;HeaderStyle Width="60px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="CUST_Name" SortExpression="CUST_Name" HeaderText="Name" HeaderStyle-Width="110px" /&gt;
                      &lt;asp:BoundColumn DataField="DisplayDate" SortExpression="MBI_Date" HeaderText="Effective"&gt;
                          &lt;HeaderStyle Width="80px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="VEHL_Year" HeaderText="Year"&gt;
                          &lt;HeaderStyle Width="30px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="DisplayMake" HeaderText="Make"&gt;
                          &lt;HeaderStyle Width="100px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="VEHL_Model" HeaderText="Model"&gt;
                          &lt;HeaderStyle Width="120px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="MBI_PlanCode" HeaderText="Plan"&gt;
                          &lt;HeaderStyle Width="30px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="DisplayExchangePrice" HeaderText="Exch"&gt;
                          &lt;HeaderStyle Width="30px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="MBI_DlrCost" HeaderText="Cost" DataFormatString="{0:C}"&gt;
                          &lt;HeaderStyle Width="30px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                  &lt;/Columns&gt;
                  &lt;PagerStyle VerticalAlign="Top" NextPageText="&amp;gt;&amp;gt;&amp;gt;&amp;gt;" Height="18px" PrevPageText="&amp;lt;&amp;lt;&amp;lt;&amp;lt;"
                      HorizontalAlign="Left" ForeColor="White" BackColor="Blue" Wrap="False"&gt;&lt;/PagerStyle&gt;
              &lt;/asp:datagrid&gt;
  
                &lt;table width="100%"&gt; 
          &lt;tr&gt;
          &lt;td     class="Subhdr" align="center" &gt;
              &lt;asp:Label ID="Label1" Cssclass="ScreenHdr"  runat="server" Font-Bold="True"  
              Font-Size="Medium"   Height="24px" 
                    Width="221px"&gt;Cancelled Contracts&lt;/asp:Label&gt;
               &lt;/td&gt;
               &lt;/tr&gt;
               &lt;/table&gt;
  
               &lt;asp:datagrid id="dgrCancels"  
                  runat="server" HorizontalAlign="Center"   BorderColor="#C0C0FF" 
          ForeColor="Blue" Font-Size="8pt" Font-Bold="True" BorderWidth="1px" 
          BorderStyle="Solid" Font-Names="Arial"  PageSize="5" ShowFooter="True" OnPageIndexChanged="CancelDataGrid_Page"
                  OnSortCommand="CancelDataGrid_Sort" AllowPaging="True" CellPadding="2" 
          GridLines="Horizontal" AutoGenerateColumns="False" AllowSorting="True" 
          OnItemCommand="CancelDataGrid_Command" Width="100%"&gt;
                  &lt;FooterStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Top"&gt;&lt;/FooterStyle&gt;
                  &lt;SelectedItemStyle Wrap="False" BackColor="#E0E0E0"&gt;&lt;/SelectedItemStyle&gt;
                  &lt;EditItemStyle Wrap="False"&gt;&lt;/EditItemStyle&gt;
                  &lt;AlternatingItemStyle Font-Size="8pt" Font-Bold="True" Wrap="False" HorizontalAlign="Left" Height="18px"
                      BorderWidth="1px" ForeColor="#0000C0" BorderStyle="Solid" BorderColor="#C0C0FF" VerticalAlign="Middle"
                      &gt;&lt;/AlternatingItemStyle&gt;
                  &lt;ItemStyle Font-Size="8pt" Font-Names="Arial" Font-Bold="True" Wrap="False" HorizontalAlign="Left"
                      Height="18px" ForeColor="#0000C0" VerticalAlign="Middle"&gt;&lt;/ItemStyle&gt;
                  &lt;HeaderStyle Font-Size="8pt" Font-Names="Arial" Font-Bold="True" Wrap="False" HorizontalAlign="Left"
                      Height="18px" ForeColor="White" BackColor="Blue"&gt;&lt;/HeaderStyle&gt;
                  &lt;Columns&gt;
                      &lt;asp:TemplateColumn&gt;
                          &lt;ItemTemplate&gt;
                              &lt;asp:Button id="btnCancelSelect" runat="server" Width="13px" BackColor="Yellow" ForeColor="White"
                                  Height="13px" CommandName="Select"&gt;&lt;/asp:Button&gt;
                          &lt;/ItemTemplate&gt;
                      &lt;/asp:TemplateColumn&gt;
                      &lt;asp:BoundColumn Visible="False" DataField="CNCL_ID"&gt;
                          &lt;HeaderStyle Width="0px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="CNCL_Selected"&gt;&lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="CUST_CombinedNumber" SortExpression="CUST_CombinedNumber" HeaderText="Number"&gt;
                          &lt;HeaderStyle Width="60px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="CUST_Name" SortExpression="CUST_Name" HeaderText="Name"&gt;
                          &lt;HeaderStyle Width="200px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="DisplayIssueDate" SortExpression="MBI_Date" HeaderText="Effective"&gt;
                          &lt;HeaderStyle Width="80px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="DisplayCancelDate" HeaderText="Cancel"&gt;
                          &lt;HeaderStyle Width="80px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="MBI_Miles" HeaderText="Effective"&gt;
                          &lt;HeaderStyle Width="60px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="CNCL_CancelMiles" HeaderText="Cancel"&gt;
                          &lt;HeaderStyle Width="60px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="MBI_Price" HeaderText="Price" DataFormatString="{0:C}"&gt;
                          &lt;HeaderStyle Width="40px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="CNCL_CalculatedNetRefund" HeaderText="Price Refund" DataFormatString="{0:C}"&gt;
                          &lt;HeaderStyle Width="40px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="MBI_DlrCost" HeaderText="Cost" DataFormatString="{0:C}"&gt;
                          &lt;HeaderStyle Width="40px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                      &lt;asp:BoundColumn DataField="CNCL_CalculatedNetAdminRefund" HeaderText="Cost Refund" DataFormatString="{0:C}"&gt;
                          &lt;HeaderStyle Width="40px"&gt;&lt;/HeaderStyle&gt;
                      &lt;/asp:BoundColumn&gt;
                  &lt;/Columns&gt;
                  &lt;PagerStyle VerticalAlign="Top" NextPageText="&amp;gt;&amp;gt;&amp;gt;&amp;gt;" Height="18px" PrevPageText="&amp;lt;&amp;lt;&amp;lt;&amp;lt;"
                      HorizontalAlign="Left" ForeColor="White" BackColor="Blue" Wrap="False"&gt;&lt;/PagerStyle&gt;
              &lt;/asp:datagrid&gt;
                &lt;asp:Label ID="Errormsg" runat="server" ForeColor="#CC0000"  &gt;&lt;/asp:Label&gt;
  &lt;/asp:Content&gt;
  </code></pre>