Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 20th, 2004, 05:10 PM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default AdRotator Problem

I have an error with what seems to be the simplest add rotator. The code is pretty much straight from the Beggining ASP's 3.0

Here is the page where the add should display:

-------------------------------------------------------
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">


THIS Is My ADD ROTATOR PAGE!

<%
   Dim ad_rotator
   Set ad_rotator = Server.CreateObject("MSWC.AdRotator")
   Response.Write (ad_rotator.GetAdvertisement("AdRotatorSchedule.tx t"))
%>

</body>
</html>
----------------------------------------------------------

Here is the output that I am getting:
------------------------------------------------------------
THIS Is My ADD ROTATOR PAGE!

MSWC.Adrotator error '80004005'

ERROR Unknown header name

/ad_rotator/sample_add_page.asp, line 15
-------------------------------------------------------------

Any help would be great. Can anyone help me? I don't have access to a server. I am using Readyhosting to host my site. The permissions and asp seems to be pretty much on top of things.

Thanks.

-Camille



 
Old August 21st, 2004, 06:35 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Take a look at this link. Using the AdRotator

Scroll to the bottom of the page)Step 4), where it reads as... If you get an error that says "Unknown Header", look at your .txt file. You have probably left something out of the header and/or misspelled something.

But you should have posted this on a CLASSIC ASP forum here.
Best fit - Beginning ASP 3.0
Other classic ASP forums - ASP category


Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old August 21st, 2004, 08:45 PM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you so much! I had Weight instead of Height, like a moron.

Sorry for posting in the wrong forum. I searched, and this is the best place that I found.

Again, thanks.

-Camille






Similar Threads
Thread Thread Starter Forum Replies Last Post
Adrotator problem 2 bodhibrata General .NET 1 August 3rd, 2004 03:19 AM
AdRotator problem bodhibrata General .NET 1 August 3rd, 2004 02:16 AM
AdRotator error krista BOOK: ASP.NET Website Programming Problem-Design-Solution 1 April 20th, 2004 05:09 AM
Adrotator tonyo Classic ASP Components 1 February 28th, 2004 09:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.