• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • Last Modified:

("IISSample.PageCounter") on Windows 2000

The code below was working great on Windows NT 4.0.  When my website was upgraded to Windows 2000 - results in an error!  Please help!


<%
 Set PageCount = Server.CreateObject("IISSample.PageCounter")
 PageCount.PageHit
 PageHits = PageCount.Hits

 Response.write("<font face=arial size=1 color=#ffffff>This site has been accessed " & PageHits & " times.</font>")
%>

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/main.asp, line 135

Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.

Line 135 is:

Set PageCount = Server.CreateObject("IISSample.PageCounter")
0
mraible
Asked:
mraible
1 Solution
 
TheNigeCommented:
try chaning it to this for ASP 3.0

Server.CreateObject("MSWC.PageCounter")
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now