By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,050 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

Adrotator

India777
P: 61
Hai all,
When i run my asp web page i got the Following Error. I am created object For MSWC.AdRotator in Page.

Below is the code i am using to create object for AdRotator.
Expand|Select|Wrap|Line Numbers
  1. Sub DisplayBanner(adSource)
  2.     Dim varAd, objAd
  3.  
  4.     Set objAd = Server.CreateObject("MSWC.AdRotator")
  5.  
  6.     If err.Number = 0 Then
  7.  
  8.         objAd.Border="0" 
  9.  
  10.         objAd.Clickable = True 
  11.  
  12.         objAd.TargetFrame="target=_new"
  13.  
  14.         varAd = objAd.GetAdvertisement(adSource)
  15.         If err.Number = 0 Then
  16.             Response.Write varAd
  17.         Else
  18.             Response.Write("<!-- ERROR: Source DisplayBanner - Error parsing ad file (" & Err.Description & ") -->")
  19.             err.Clear
  20.         End If
  21.     Else
  22.         Response.Write("<!-- ERROR: Source DisplayBanner - Error opening MSWC.AdRotator (" & Err.Description & ") -->")
  23.         err.Clear
  24.     End If
  25.  
  26.     set objAd = nothing
  27.  
  28. End Sub
  29.  
------------------------------------------
Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/inc/layoutlib.asp, line 1222

800401f3
-------------------------------------------

Thanks,
SR
Jul 18 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.