Hi
Im stuck with an Ad Rotator problem. I'd be grateful to any
assistance.
Robert.
Here's my code:
<td style="TEST-ALIGN: right" width="200">
<asp:AdRotator id="AdRotator1"
AdvertisementFile="faces.xml"
width="100px"
height="95px"
runat="server">
</asp:AdRotator>
</td>
--------------------------------------------
Here's my XML, named "faces.xml":
<?xml version="1.0" encoding="utf-8" ?>
<Advertisements>
<ad>
<ImageUrl>images\dave_s_t.gif</ImageUrl>
<NavigateUrl>players.aspx</NavigateUrl>
<AlternateText>Player: Dave Sussman</AlternateText>
<Impressions>80</Impressions>
<Keyword>Dave</Keyword>
</ad>
</Advertisements>
And finally, heres the error msg from my browser:
The AdRotator AdRotator1 found no valid advertisements in the file
'faces.xml'.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The AdRotator AdRotator1
found no valid advertisements in the file 'faces.xml'.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The AdRotator AdRotator1 found no valid
advertisements in the file 'faces.xml'.]
System.Web.UI.WebControls.AdRotator.LoadFile(Strin g fileName) +483
System.Web.UI.WebControls.AdRotator.GetFileData(St ring fileName)
+115
System.Web.UI.WebControls.AdRotator.RetrieveAdData () +77
System.Web.UI.WebControls.AdRotator.OnPreRender(Ev entArgs e) +29
System.Web.UI.Control.PreRenderRecursiveInternal() +90
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+5096
Version Information: Microsoft .NET Framework Version:2.0.40607.42;
ASP.NET Version:2.0.40607.42