Forum Moderators: open

Message Too Old, No Replies

An error on counter

counter

         

Jsuper

1:12 pm on Feb 26, 2004 (gmt 0)

10+ Year Member



Hello everyone,I'm an asp beginner.I have a counter and I put it on the web,then it runs well. but when I test the page under PWS,The page was halted and there are some information as following:

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/counter.asp, line 3
800401f3

the counter page code:

<!--counter.asp-->
<%
set mycounter=server.createobject("mswc.counters")
mycounter.increment(counts)
%>
<html>
<head>
<title>My2003</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<p><font face="tahoma" size="2">Hello and welcome you <b><%=mycounter.get(counts)%></b>
visitor.</font><br>
</p>
</body>
</html>

I wonder why and what should I do? Thanks :)

mattglet

1:21 pm on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your local machine does not have the Counter component installed.

check out the 4guysfromrolla article:
ht*p://www.4guysfromrolla.com/webtech/032201-1.shtml

-Matt

Jsuper

2:56 pm on Feb 26, 2004 (gmt 0)

10+ Year Member



Good solution!
Thank you very much.