Help with AdRotator

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mmurphmsu
    New Member
    • Nov 2006
    • 19

    Help with AdRotator

    I have setup the ad rotator on one of my companies pages. I have also setup the XML file just like it shows on MSDN. I have the AdvertisementFi le Property of the rotator set to the XML file in the Apps_data folder. But nothing shows up when I preview the page, and I actually get an error.

    The AdRotator CNT_Ads could not find the AdvertisementFi le or the file is invalid.
    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.Http Exception: The AdRotator CNT_Ads could not find the AdvertisementFi le or the file is invalid.

    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.


    Can anyone help?
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    could be a couple things. show your code.

    Comment

    • mmurphmsu
      New Member
      • Nov 2006
      • 19

      #3
      Ok, Here is my code:
      [code=asp]
      <%@ Page Language="C#" MasterPageFile= "~/CNTNoNewInfo.ma ster" AutoEventWireup ="true" CodeFile="news. aspx.cs" Inherits="NewsL inks_news" Title="News at the Clinics of North Texas" %>
      <asp:Content ID="Content1" ContentPlaceHol derID="cphMain" Runat="Server">
      <br />
      <asp:AdRotato r ID="AdRotator1 " runat="server" AdvertisementFi le="~/App_Data/Ads.xml"
      Height="376px" Width="751px" />
      <br /><br />
      &nbsp;<br />
      <br />
      <br />
      <br />
      <br />

      </asp:Content>[/code]
      Last edited by Frinavale; Oct 31 '07, 06:48 PM. Reason: Added [code] tags to make more legible

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        Sorry, I thought you were working with ASP. I have moved your post to the .NET forum as per site guidelines (see the sticky at the top of the ASP forum and the posting guidelines). The asp forum is for "classic" ASP and VBScript. ASP.NET and all other .NET components belong in the .NET forum.

        Jared

        Comment

        • mmurphmsu
          New Member
          • Nov 2006
          • 19

          #5
          I have fixed this. I used the AJAX control SlideShow.

          Comment

          Working...