I'm having a pretty wierd problem. I'm trying to finish our new standard masterpage, and VS2005 won't render my header table if I have my AdRotator in it. Here's <form> content of my Masterpage:
Sorry about the formatting, I can't seem to get it to format more legibly.
<
form id="form1" runat="server">
<asp:Table ID="PresHeaderBlackTable" runat="server" Width="100%" BackColor="Black" BorderColor="Black" BorderWidth="0" CellPadding="0" CellSpacing="0" >
<asp:TableRow ID="TableRow1" VerticalAlign="Top" runat="server" >
<asp:TableCell ColumnSpan="2" Height="18px" VerticalAlign="Bottom" BackColor="Black" runat="server">
<asp:Label ID="topBlackBarLabel" runat="server" BackColor="Black" Font-Names="Verdana" Font-Size="Small"
ForeColor="White"
Width="723px" Font-Bold="True" Text="test"></asp:Label>
</asp:TableCell>
</asp:TableRow>
</
asp:Table>
<
asp:Table ID="PresHeaderLogoAdRotatorTable" runat="server" Width="100%" BackColor="#990033" BorderColor="#990033" BorderWidth="0" CellPadding="0" CellSpacing="0" >
<asp:TableRow runat="server" >
<asp:TableCell runat="server" >
<asp:Table ID="LogoTable" runat="server" BorderWidth="0" CellPadding="0" CellSpacing="0" BackColor="#990033" Height="85px">
<asp:TableRow VerticalAlign="Top" runat="server">
<asp:TableCell runat="server">
<asp:Image ID="PresLogoImage" ImageUrl="~/images/pres_logo.gif" AlternateText="Presbyterian Logo" runat="server" width='236px' height='28px'/>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow VerticalAlign="Bottom" runat="server">
<asp:TableCell runat="server" VerticalAlign="Bottom">
<asp:ImageButton ID="PresNetImageButton" runat="server" ImageUrl="~/images/presnet_block.gif" ImageAlign="AbsBottom"/>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:TableCell>
<asp:TableCell VerticalAlign = "Top" runat="server" width='105px' >
<asp:AdRotator id="PresHeaderAdRotator" runat="server" AdvertisementFile="~/Ads.xml"></asp:AdRotator>
</asp:TableCell>
</asp:TableRow>
</
asp:Table>
<div>
<asp:contentplaceholder id="MainContent" runat="server">
</asp:contentplaceholder>
</div>
</form>
This seems to render fine in IE and Firefox, but when I try to switch to the design view, it shows a rendering error in for the whole table which reads "Error Rendering Control- PresHeaderAdRotatorTable
An Unhandled Exception has occured.
Object Reference not set to an instance of an object.
This error goes away if I move the adrotator outside the table.
This probably seems like no big deal since the page renders correctly in a browser but I'm not going to be able to get the rest of my time to accept ASP until if it won't even render the masterpage correctly in the IDE.
Thanks for any help