1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ASP.Net version of the Ad Network

Discussion in 'Co-op Advertising Network' started by vlead, Dec 8, 2004.

  1. #1
    I have ported the PHP based Ad Network to ASP.Net. You can now use the Ad Network from ASP.Net pages.

    Simply extract the attachment and place the coopad.dll file in your website's bin directory. An ASP.Net example is included in the attached zip file to help you setup the system.

    You need to have ad_network_ads.txt file on your server and make sure to give write permissions to the .Net process for this file. You can ask your web host for setting the permissions.

    The ASP version by Zinho helped a lot.

    Let me know if you face any problem(s).
    ----
    :edit: Files updated as per Shawn's comment.
     

    Attached Files:

    vlead, Dec 8, 2004 IP
  2. dct

    dct Finder of cool gadgets

    Messages:
    3,132
    Likes Received:
    328
    Best Answers:
    0
    Trophy Points:
    230
    #2
    Thanks vlead I'll give it a go.
     
    dct, Dec 8, 2004 IP
  3. dct

    dct Finder of cool gadgets

    Messages:
    3,132
    Likes Received:
    328
    Best Answers:
    0
    Trophy Points:
    230
    #3
    When trying to open the zip in XP or WinZip its being reported as an invalid or corrupt archive.
     
    dct, Dec 8, 2004 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    One thing that should be changed in that is testing if the ad_network_ads.txt file is writable. If it's not writable, it should not attempt to download a new ad.
     
    digitalpoint, Dec 8, 2004 IP
  5. vlead

    vlead Peon

    Messages:
    215
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Works fine me... I think Shawn was also able to download and test it. Try it again or PM me ur email address.
     
    vlead, Dec 8, 2004 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    I didn't test it, but I was able to download it and unzip it.
     
    digitalpoint, Dec 8, 2004 IP
  7. dct

    dct Finder of cool gadgets

    Messages:
    3,132
    Likes Received:
    328
    Best Answers:
    0
    Trophy Points:
    230
    #7
    Interesting, downloaded at work with IE, it didn't work. Downloaded at home with Firefox and I was able to open it, downloaded again with IE (at home) and it wouldn't open (again appeared corrupt). Is this a problem when downloading from these forums or something else?
     
    dct, Dec 8, 2004 IP
  8. vlead

    vlead Peon

    Messages:
    215
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I have added this check now and have replaced the old files with the new ones.
     
    vlead, Dec 8, 2004 IP
  9. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #9
    Thanks... :)
     
    digitalpoint, Dec 8, 2004 IP
  10. dct

    dct Finder of cool gadgets

    Messages:
    3,132
    Likes Received:
    328
    Best Answers:
    0
    Trophy Points:
    230
    #10
    I have it all working locally but when I attempt it on my site I get:

    Exception Details: System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server.

    Source Error:


    Line 7:
    Line 8: Dim arrAds(4) As String
    Line 9: arrAds = Coop.Ads(Request.ServerVariables("SERVER_NAME"), AD_TYPE, AD_FILE)
    Line 10:
    Line 11: lblAd1.Text = arrAds(0)


    Source File: e:\kunden\homepages\21\d104630716\delphi\asp_dot_net_example.aspx Line: 9


    Is this due to my host blocking outbound traffic and is there anything I can do about it (short of moving hosts just yet)?

    Thanks
     
    dct, Dec 8, 2004 IP
  11. vlead

    vlead Peon

    Messages:
    215
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I have got this up and running on two of my sites. I'll try to find out what's the problem...

    In the meantime try it on a different host/website if you can.

    :edit: It seems that the firewall is blocking the access to the remote site. Contact ur host... they might be able to resolve this.
     
    vlead, Dec 8, 2004 IP
  12. agent_bozo

    agent_bozo Guest

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I wanted to ask if you have any documentation or further information on the ad network files you developed for asp.net.
    I have sent the dll file to an organisation that hosts my site so that it can be added to the bin dirrectory. However before they do this they want to know what it does and what process it will be effecting as they have various other sites running on the server.

    Any help would be appreciated

    Regards

    agent_bozo
     
    agent_bozo, Dec 9, 2004 IP
  13. vlead

    vlead Peon

    Messages:
    215
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    You can send them the source code (coopad.vb) of the dll. It is included in the zip file you downloaded.
     
    vlead, Dec 9, 2004 IP
  14. Openg

    Openg Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    would I have to change all pages in www.flashtemplatestore.com to .asp to have the add work, sorry to be a bit slow (getting slowly up to enough posts to join also ;0)
     
    Openg, Dec 10, 2004 IP
  15. vlead

    vlead Peon

    Messages:
    215
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    vlead, Dec 10, 2004 IP
  16. nates

    nates Peon

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Vlead,

    When I try to open the zip after down load, I am getting an error message
    "Cannot open file; does not appear to be a valid archive"

    has anyone had the same issue?
     
    nates, Dec 16, 2004 IP
  17. vlead

    vlead Peon

    Messages:
    215
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #17
    I don't know why some ppl are getting this error... pm me ur email and I'll send it to you.
     
    vlead, Dec 16, 2004 IP
  18. nates

    nates Peon

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Thanks for sending the zip.

    Should I save the .vb & .dll file in the same bin folder or should the .vb be in a different folder?
     
    nates, Dec 16, 2004 IP
  19. vlead

    vlead Peon

    Messages:
    215
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #19
    You just need to put the .dll file in the bin directory. The .vb file is the source code of the dll. You do not need the vb file on your server.
     
    vlead, Dec 16, 2004 IP
  20. nates

    nates Peon

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    Do the "Co-op Ad Network Bug Found" emails effect asp.net ad_network code?

    Thanks
     
    nates, Jan 6, 2005 IP