Forums

This topic is locked

Ad Rotation Scheduling

Posted 31 Jul 2002 09:00:55
1
has voted
31 Jul 2002 09:00:55 Dave Thomas posted:
Lo All <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Just got a new book, ASP in a Nutshell and am working on one of the examples for an Advertisement Rotator.

Keep getting an error ((MSWC.Adrotator error '80004005'
ERROR Cannot load rotation schedule file
/default.asp, line 28

According to the book if this error is recieved then it is down to the way the .txt file storing the links is written, and seeing as i've never done this before, I'm a little confused.

Does the .txt file need any tags of any kind??

Anyways, as per say example in book, this is what i did.

## Ad Rotate Text File ##
REDIRECT /AdRecord.asp
WIDTH 400
HEIGHT 80
BORDER 0
*
beta.webworldfx.net/banners/banner1.gif
beta.webworldfx.net/banner1.html
Check out Banner One's Homepage
50
beta.webworldfx.net/banners/banner2.gif
beta.webworldfx.net/banner2.html
Check out the latest on Banner 2's site.
50

## ASP Script which i am recieving error from ##

'Dimension Local Variables
Dim adrotSample
Dim strAdrotScheduleFile
Dim strAdString

Set adrotSample = Server.CreateObject("MSWC.AdRotator"
'Set the ad to have no border
adrotSample.Border = 0

'Set the ad so that it's corresponding URL is loaded into a second, blank browser window
adrotSample.TargetFrame = "_blank"

'adrotSample.Clickable = False //Uncomment to prevent click thru's

strAdRotScheduleFile = "/getadv.txt"
strAdString = adrotSample.GetAdvertisement '(strAdRotScheduleFile) (LINE GIVING ERROR)

## End of Script ##
(Tags not included for display reasons)

"Get the kettle on, time for a brew"

Reply to this topic