Using Coop on ASP.NET website

Discussion in 'Co-op Advertising Network' started by Sjoerd, May 27, 2006.

  1. #1
    Hi all. I am trying to set up coop on a website that uses ASP.NET. When searching the forum I found clead already created a solution*. Unfortunatly I cannot get it to work.

    The included readme tells me to do the following:
    I followed those steps (no problem there) and created a test page using the provided sample implementations**:
    <%@ Register TagPrefix="CoopAds" Namespace="Coop" Assembly="coopad_260705" %>
    
    <p>Coop Test</p>
    
    <CoopAds:AdNet id="ads" runat="server" />
    Code (markup):
    Sometimes the pages loads and I get "The ad files is not writable." but most of the times it gives out the following error:
    Server error in '/' application
    Description: Error processing request.
    
    Error Message: HTTP 500.
    
    Stack Trace:
    
    System.IndexOutOfRangeException: Array index is out of range.
    in <0x00424> Coop.AdNet:Render (System.Web.UI.HtmlTextWriter Output)
    in <0x000e2> System.Web.UI.Control:RenderControl (System.Web.UI.HtmlTextWriter writer)
    in <0x000a4> System.Web.UI.Control:RenderChildren (System.Web.UI.HtmlTextWriter writer)
    in <0x00021> System.Web.UI.Control:Render (System.Web.UI.HtmlTextWriter writer)
    in <0x000e2> System.Web.UI.Control:RenderControl (System.Web.UI.HtmlTextWriter writer)
    in <0x00417> System.Web.UI.Page:InternalProcessRequest ()
    in <0x0010e> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext context)
    Code (markup):
    The 'ad_network_ads.txt' has been given write permissions (666).

    Someone else seems to had the same or a similar problem but no further replies or solution in the thread***.

    Links: /* need another 9 posts before i can place them ;) */
    *http://www.vlead.com/misc/coopad_control.htm
    **http://www.vlead.com/loadcode/coopad_control_sample.aspx
    ***http://forums.digitalpoint.com/showthread.php?t=7748

    Any insight on how to fix this or use coop on ASP.NET in some other way is welcome.

    Thanks in advance!
     
    Sjoerd, May 27, 2006 IP