title: Object not set to a reference for SlideshowExtender
body: <p>I'm at my wits end with this issue. I am wanting to use a SlideShowExtender from the AjaxControltoolkit for a "CMS-like" website but I am getting the error message...
  "ajaxcontroltoolkit.slideshowextender object reference not set to an instance of an object. ajaxcontroltoolkit.slideshowextender.oninit(eventargs e)." I am using masterpages and have included a scriptmanagerproxy on the default page and a tookitscriptmanager in the PDAP.master masterpage. Here is the code. It's rough draft and only in concept stage.  </p>
  
  <p>PDAP.master</p>
  
  <blockquote>
    <p>&lt;%@ Master Language="C#" AutoEventWireup="true" CodeFile="PDAP.master.cs" Inherits="PDAP" %>
    Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"></p>
    
    <p>
      
      </p>
  
  <pre><code> &lt;title&gt;&lt;/title&gt;
  </code></pre>
    
    <p></p>
    
    <p></p>
  
  <pre><code>   &lt;form id="form1" runat="server"&gt;
     &lt;ajax:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"&gt;
     &lt;Services&gt;
         &lt;asp:ServiceReference Path="~/Slideshow.asmx" /&gt;
     &lt;/Services&gt;
     &lt;/ajax:ToolkitScriptManager&gt;
     &lt;asp:ContentPlaceHolder id="HeadContent" runat="server"&gt;
  
     PDAP  
     &lt;/asp:ContentPlaceHolder&gt;
  
     &lt;div&gt;
     &lt;div id="centercontent" &gt;
         &lt;asp:ContentPlaceHolder id="CenterContent" runat="server" &gt;
         CenterContent
         &lt;/asp:ContentPlaceHolder&gt;
     &lt;/div&gt;
     &lt;div id="rightcontent"&gt;
         &lt;asp:ContentPlaceHolder ID="RightContent" runat="server"&gt;
         RightContent
         &lt;/asp:ContentPlaceHolder&gt;
     &lt;/div&gt;
     &lt;div id="leftcontent"&gt;
         &lt;asp:ContentPlaceHolder ID="LeftContent" runat="server" &gt;
         LeftContent
         &lt;/asp:ContentPlaceHolder&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;/form&gt;
  </code></pre>
    
    <p>
       </p>
  </blockquote>
  
  <p>default.aspx
      &lt;%@ Page Title="Home Page" Language="C#" MasterPageFile="~/PDAP.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %></p>
  
  <pre><code>&lt;asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="CenterContent"&gt;
      &lt;asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server" ProfileService-Path="~/Slideshow.asmx"&gt;
      &lt;Services &gt;
      &lt;asp:ServiceReference Path="~/Slideshow.asmx" InlineScript="false" /&gt;
      &lt;/Services&gt;
      &lt;/asp:ScriptManagerProxy&gt;
          Default page with Slideshow
      &lt;ajax:SlideShowExtender ID="SlideShowExtender1" 
                              runat="server"
                              Loop="true"
                              SlideShowAnimationType="SlideRight"
                              PlayInterval="4000"
                              SlideShowServiceMethod="GetSlides"  
                              SlideShowServicePath="Slideshow.asmx" &gt;
      &lt;/ajax:SlideShowExtender&gt;
      &lt;asp:Image ID="imgslides" 
                 runat="server" /&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>Web Service - Slideshow.cs</p>
  
  <blockquote>
    <p>using System;
       using System.Collections.Generic;
       using System.Linq;
       using System.Web;
       using System.Web.Services;</p>
    
    <p>/// 
       /// Summary description for Slideshow
       /// 
       [WebService(Namespace ="http://microsoft.com/webservices/")]
       [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
       // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the     >following line. 
       [System.Web.Script.Services.ScriptService]
       public class Slideshow : System.Web.Services.WebService {</p>
  
  <pre><code>   public Slideshow () {
  
        //Uncomment the following line if using designed components 
         //InitializeComponent(); 
     }
  
     [System.Web.Services.WebMethod] 
     [System.Web.Script.Services.ScriptMethod]
     public AjaxControlToolkit.Slide[] GetSlides()
     {
         string[] imagenames = System.IO.Directory.GetFiles(Server.MapPath("~/Images"));
         AjaxControlToolkit.Slide[] photos = new AjaxControlToolkit.Slide[imagenames.Length];
         for (int i = 0; i &lt; imagenames.Length; i++)
         {
             string[] file = imagenames[i].Split('\\');
             photos[i] = new AjaxControlToolkit.Slide("Images/" + file[file.Length - 1], file [file.Length - 1], "");
     }
     return photos;
     }
  </code></pre>
    
    <p>} </p>
  </blockquote>
  
  <p>I took an example and was using this to learn by but the code is on a dev server where i don't have access to IIS.</p>
  
  <p>Please take a look and see what I'm doing wrong.</p>