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.
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.
Works fine me... I think Shawn was also able to download and test it. Try it again or PM me ur email address.
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?
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
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.
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
You can send them the source code (coopad.vb) of the dll. It is included in the zip file you downloaded.
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)
For ASP version go to: http://forums.digitalpoint.com/showthread.php?t=5789 You will need to change your files to .asp or you can ask ur host to map .htm and .html to the ASP dll... so that they are processed on the server like a .asp page.
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?
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?
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.