The error shows that it is looking for the ad network text file in your forum folder, not the files folder. Try changing the variable ad_file to be the same path as you use for your databases.
Well... I am having this problem on some of my websites as well.. Along with a few other random problems. I am not sure what is causing this. The weird thing is, I had it working fine for a little while then I got error alerts in my email so now I had to pull the ads off entirely because I cant get them to work properly. Any suggestions? Thanks!
Hey Design, Make sure you have the latest ASP version, dowload it here: http://forums.digitalpoint.com/showpost.php?p=74892&postcount=30 Cheers Frank
Thanks for your response! I grabbed that file and replaced it just in case, although im positive it was the same one I used before. Someone earlier had posted that they had to dim a line, and I noticed earlier when I had the new page on my site that after I viewed the main page then viewed a second page I got the error 'name redefined' for the dim ad_params so when I dim that i get the error: ------------------------------------------------ Microsoft VBScript runtime error '800a0009' Subscript out of range: '[number: 0]' *website location info is here*../ad_network.asp, line 39 ------------------------------------------------ Otherwise on my testing page with just the ad code this is the error I get: ------------------------------------------------- Microsoft VBScript runtime error '800a000d' Type mismatch: 'cdate' *website location info is here*../ad_network.asp, line 44 ------------------------------------------------- One strange thing I did notice was I first went to the site and the error was: Subscript out of range: '[number: 1]' Then, after i refreshed the page and ever since, it has been: Subscript out of range: '[number: 0]' I tried deleting the txt file, rebooting the web server, clearing my cache, trying on another computer, etc. Thanks for any help, it is greatly appreciated!
Design, try to PM/Email stupot he may be able to help as he posted the file. There were small issues with previous releases but I'm running the latest without a prob. Sorry and good luck. Cheers Frank
Hi all, the latest version of the ASP code, if you find any errors please PM me with example code and I will fix and repost.
Actually, the error simply referenced ad_network.asp in the forum folder (line 21). But, adding a trailing slash to the path no longer generates the permission error. However, I now have a new error. WinHttp.WinHttpRequest error '80072ee7' The server name or address could not be resolved /forum/ad_network.asp, line 124 The test page is: http://www.audience-response-rentals.com/forum/test.asp Again, any clues on resolving this are appreciated.
This looks like it maybe a problem with your host not allowing domain resolution or communications from your server hence the call to ads.digitalpoint.com fails.
Stupot, You've published the latest version of the ASP code. I was just wondering what the DP.ASP file is for? I have neve seen it or used it and my ads are working fine. Thanks and cheers Frank
I am still having the same problem as I was before.. with the new version and following the format suggested by the dp.asp page. Any suggestions? Thanks!
I'm trying a different forum now, on a different server. But, I got the same cdate error as Design1. Type mismatch: 'cdate' /ad_network.asp, line 44 Line 44 is: LinksDate = cdate(spParam(0)) I know a bit of asp, but I don't know the ad network parameters in order to trouble shoot. /*tom*/
Ahh! Well at least I am not the only one. Here is my status.. I thought I had it fixed on all of my site, then I noticed as I kept browsing through the different pages of my site to look it over, the error started happening. I deleted the txt file and browsed the site again for awhile just fine till I got the error again! It almost looks like it has something to do with displaying certain ads because if i delete the page and refresh the page over and over it works fine then it will just stop with that same error: Microsoft VBScript runtime error '800a000d' Type mismatch: 'CDate' WWW.MYSITE.COM\../ad_network.asp, line 44 This does not happen on all of my websites I have this running on, to my knowledge. They are all coded about the same, Im not sure why this is happening on some and not the others. Thanks for any help!
This version now displays an ad ! However, ads(1) is the only variable that will display. ads(0,2,3,4) do not display. They are in fact zero length strings. I tested against IsEmpty and IsNull which returned false. But, ads(0) = "" returns true. Getting close. . .
hmm, strange anyone else having this problem? I have tested it and the only time i can reproduce what is happening to you is when the ad_network_ads.txt file cannot be written to, try making sure that you have write permissions set in the root folder.
Although my forum dbase still works, there is definitely a server config problem. My reseller account uses virtual hosts and the hosting company constantly screws up the path. Using the cpanel admin interface, it won't even display a directory structure. Once that has been cleared I'll see how things are. Many thanks stupot.
I am a little stumped... I have dowloaded stupots new ad_network.asp file and dp.asp file I have replaced the old ad_networ.asp and ad_network_ads.txt file and all the ads are displaying fine. Yet my site will not validate, any ideas??