Forum Moderators: open

Message Too Old, No Replies

New to ASP and Stuck!

         

Neural

1:56 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



Hi everyone. I have been perusing this board for a time, while I got my ASP act together. Forgive me but I am completely new to ASP. I know html quite well, I used to program assembly and have done a bit of BASIC programming too. I have a book that I am ploughing through and only believe in asking for help when truly stuck. Well, here I am folks!:)

I am simply trying to run one of the examples in the book that uses the Page Counter Component, ie:-

<%
set PageCount=Server.CreateObject("MSWC.PageCounter")
Response.write('You are the ' & PageCount.PageHit & ' person to visit this page.')
%>

OK, so far so good except I get this error:-

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

I looked across the internet and found this site that explains quite a lot:- [4guysfromrolla.com...]

So, I try their example to confirm that the relevant bits are installed on my WINDOWS 2003 ENTERPRISE Server:-

<% Set obj = Server.CreateObject("MSWC.PageCounter") %>

I try it on another WINDOWS 2003 SERVER and its still the same error. So I now conclude that the server is missing the components. I follow the instructions on the 4guysfromrolla site, download and install the IIS Resource Kit. Guess what? Still the same. Now I am stuck.

Is this something really simple? I am not too hot on server configuring but all seems well. I have even added the Frontpage extension components to the server too, using Add/Remove Windows Components.

Could anyone steer me in the right direction please? I know that the ASP side of the server is working perfectly because I have other custom scripts (not written by me) connecting into Access databases etc and running fine. I have also added iusr_ to the folder as well so I don't think it's permissions.

Please help if you can.

Thanks very much.

duckhunter

2:27 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



Is the Pagecnt.dll registered? Looks like the object is not registered on your server.

Search for that DLL and if you find it, from the directory where it lives, run:

regsvr32 Pagecnt.dll

Neural

4:57 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



Hi duckhunter and thanks for replying. Maybe this is the problem, I don't know but I have just done a search for pagecnt.dll and it didn't find it. What is also interesting is that I also searched for it on the other server and it wasn't on that one either. So it looks like this dll isn't on the server, but that is really confusing because according to the 4guysfromrolla topic it should now be there. Do you have any other ideas?

duckhunter

5:13 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



Try IISSample.PageCounter instead of MSWC.PageCounter. Some reports using IIS 4.0 say this is a workaround

Neural

5:33 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



Thanks again for replying.. I tried it but still no joy. I believe that IISSample.PageCounter is more for PWS and Windows98, but hey, it was worth a shot.

Any more help would be greatly appreciated. I just can't believe that something as simple as this could be this difficult to get to work.

Neural

6:32 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



I think I may have found the problem... Can you belive that Windows Server 2003 DOESN'T come with pagecnt.dll or Hitcnt.cnt... I can't belive this. Also I am now trawling through the internet trying to find these files, however I have only found one place and they want my credit card.

This can't be right can it? Have Microsoft removed this feature in the latest Server OS's?

Does anyone have a copy of pagecnt.dll they can email to me please?

duckhunter

6:58 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



Sticky your email to me, I have a copy

Neural

8:53 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



Sent you an email. Many thanks for your help.

Neural

6:36 pm on Nov 2, 2004 (gmt 0)

10+ Year Member



Thank you very much... it works a treat now.