Hello, all,

I'm geting the error
The AdRotator adRotator1 could not find the AdvertisementFile or the file is invalid.

I've looked around the net and on this forum and it looks like what I have is correct. But for some reason, I'm still geting this error.

I'm including a very basic example that doesn't even work. What am I doing wrong? I'm using ASP.NET 2.0

Thanks,

Strick


Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:AdRotator ID="AdRotator1" AdvertisementFile="/App_Data/FrontPagePics.xml" runat="server" />
    
    </div>
    </form>
</body>
</html>
Here is my xml file code:
Code:
<?xml version="1.0" encoding="utf-8" ?>

<Advertisments>
  
  <Ad>
    <ImageURL>images/banner1.jpg</ImageURL>
    <NavigateURL>http://www.microsoft.com</NavigateURL>
    <AlternateText>Microsoft Site</AlternateText>
    <Keyword>Computers</Keyword>
    <Impressions>50</Impressions>
  </Ad>

</Advertisments>