As mentioned, it's only once and a while. Has anyone experienced this? I have 4 others servers running ad server and I haven't seen this before.">

asp tutorials, asp.net tutorials, sample code, and Microsoft news from 15Seconds
Data Access  |   Troubleshooting  |   Security  |   Performance  |   ADSI  |   Upload  |   Email  |   Control Building  |   Component Building  |   Forms  |   XML  |   Web Services  |   ASP.NET  |   .NET Features  |   .NET 2.0  |   App Development  |   App Architecture  |   IIS  |   Wireless
 
Pioneering Active Server
 Power Search





Active News
15 Seconds Weekly Newsletter
• Complete Coverage
• Site Updates
• Upcoming Features

More Free Newsletters
Reference
News
Articles
Code Samples
Components
Tools
FAQ
Feedback
Books
Links
DL Archives
Community
Messageboard
List Servers
Mailing List
WebHosts
Consultants
Tech Jobs
15 Seconds
Home
Site Map
Press
Legal
Privacy Policy
internet.commerce














internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

HardwareCentral
Compare products, prices, and stores at Hardware Central!

PreviousNext

 

email this FAQ to a colleague

Q: We get this error off and on when trying to create the Commerce.AdServer object:


Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object
//global.asa, line 41

And here's line 41:

Set Ad = Server.CreateObject("Commerce.AdServer")

As mentioned, it's only once and a while. Has anyone experienced this? I have 4 others servers running ad server and I haven't seen this before.

A: The DSN connection string for adserver is hardcoded in the site.csc file. There is no GUI to change it. Therefore, if this file was brought over from another machine or if you have changed your DSN since installation, you have accidentally broken Ad Server.

The only way to fix this problem is to modify the global.asa. Look for the section in the global.asa that reads "The above connection string can be set directly by removing the lines above, and uncommenting the line below. Change the DSN and account information to match your configuration." Uncomment the following line and change the DSN, UID and PWD appropriately:


connectionString = "DSN=admanager;UID=SA;PWD=PASSWORD;"

Comment out the following lines:

  'pathConfig = Server.MapPath("config/site.csc")
  'streamConfig = "ASConfig"
  'set dictConfig = Server.CreateObject("Commerce.Dictionary")
  'set fileDoc = Server.CreateObject("Commerce.FileDocument")
  'call fileDoc.ReadDictionaryFromFile(pathConfig, streamConfig, dictConfig)
  'set fileDoc = Nothing
  'connectionString = dictConfig.MASConnectionString

Here is an example modified global.asa:

<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Application_OnStart
 REM -- read config info:
 'pathConfig = Server.MapPath("config/site.csc")
 'streamConfig = "ASConfig"
 'set dictConfig = Server.CreateObject("Commerce.Dictionary")
 'set fileDoc = Server.CreateObject("Commerce.FileDocument")
 'call fileDoc.ReadDictionaryFromFile(pathConfig, streamConfig, dictConfig)
 'set fileDoc = Nothing
 'connectionString = dictConfig.MASConnectionString

 REM - The connection string can be set directly by removing the lines
 REM - above, and uncommenting the line below.
 REM - Change the DSN and account information to match your configuration.
 connectionString = "DSN=admanager;UID=SA;PWD=PASSWORD;"

 REM -- The URL of the redirect script to use when previewing ads.
   REM -- Some ad types require this to be specified as a fully qualified
URL.
   Application("MASPreviewRedirectScript") = "adredir.asp"

   REM -- create a data functions object for validation:
 set MASDataFunctions = Server.CreateObject("Commerce.DataFunctions")

 REM -- set up Application instrinsic object:
 Application.Lock
  set Application("MASDataFunctions")    = MASDataFunctions
  Application("AppName")    = "AdManager"
  Application("MASConnectionString")  = connectionString
  Application("MASConnectionTimeout") = 15
  Application("MASCommandTimeout")    = 30
 Application.Unlock
End Sub


There's a nice little tool called editdictionary.asp that's buried on the commerce cd. Use it to edit your site.csc file. There's another tool on the cd that will actually package your site to distribute to another server. Located at bottom of page: http://www.microsoft.com/siteserver/commerce/update/tools.asp

- Alan Stuart

Articles
Jun 12, 2001 - You've Got Mail! - Site Server Direct Mailer
In this article, Shiva Manjunath shows us how to configure Site Server Direct Mailer, create test members and distribution lists, create template emails, and finally, create and run a Direct Mailer package to send the personalized emails to the target members.
[Read This Article]  [Top]
Nov 19, 1998 - Credit Card Validation with Site Server Commerce
This article written by Dina Berry explains how to add simple credit card validation to a pipeline in your Commerce site. The article shows you how to create the pipeline, how to add the pipeline to your ASP code and how to debug the pipeline.
[Read This Article]  [Top]

Books
Professional Site Server 3.0 Personalization an...
Robert Howard

Knowledge Base Articles
PRB: Posting Acceptor Destroys Session Data
Q192030 - 1998.09.10
Memory problems with EncodeSMIME component
Q188024 - 1998.09.20
Duplicate hotkeys on Create Certificate Request...
Q188025 - 1998.09.20
SendSMTP: Wrong timezone handling
Q188026 - 1998.09.20
Using Visual InterDev breaks Datafunctions.Mone...
Q188036 Q188036 - 1998.09.20


Support the Active Server Industry



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers