Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateObject/Custom Object/counter.dll

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello!
I'm tryin' to use the MSWC.Counters object
with the old ASP it worked like
dim COUNTERS
set COUNTERS = Server.CreateObject("MSWC.Counters")
counter.Increment("a1_"&id)

but how is this in ASP.NET??
I tryed arround like
object counter = new Server.CreateObject("MSWC.Counters");
counter.Increment("a1_"+id);

I getting an error back:
'object' does not contain a definition for 'Increment'

I also tryed to use following code in global.asax like in global.asa:
<object id=&quot;Counter&quot; runat=server progid=&quot;MSWC.Counters&quot; scope=&quot;Application&quot; />

There I also get the same error!
Does anyone know to use MSWC.Counters ???(included in IIS 5.0)

Please HELP!!

powerwave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top