471,350 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Ad Rotator and XML

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
Jul 21 '05 #1
0 1016

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Carolyn Gill | last post: by
1 post views Thread by jonathanthio | last post: by
4 posts views Thread by Leon | last post: by
2 posts views Thread by Bredahl jensen | last post: by
3 posts views Thread by Mark A. Sam | last post: by
reply views Thread by Mat | last post: by
2 posts views Thread by Muhammad Ahsin Saleem | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.