473,385 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

IIS number of connection

Hello,

I wan't to know how many user are connected in my web site. But i didn't
find any methode in c# about how show IIS statitics. Maby with WMI provider?

Thanks for your help.

Regards

Dragan

Oct 6 '06 #1
4 2866
You can do this a lot easier with ASP.NET. Whenever a new user Session is
begun, in Session_Start, you can increment a static counter variable. On
Session_End, decrement the variable. If it is in Global.asax, then you can
refer to it anywhere in your app as "Global.CurrentUserCount".

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Draggi" wrote:
Hello,

I wan't to know how many user are connected in my web site. But i didn't
find any methode in c# about how show IIS statitics. Maby with WMI provider?

Thanks for your help.

Regards

Dragan
Oct 6 '06 #2
thanks :)
"Peter Bromberg [C# MVP]" wrote:
You can do this a lot easier with ASP.NET. Whenever a new user Session is
begun, in Session_Start, you can increment a static counter variable. On
Session_End, decrement the variable. If it is in Global.asax, then you can
refer to it anywhere in your app as "Global.CurrentUserCount".

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Draggi" wrote:
Hello,

I wan't to know how many user are connected in my web site. But i didn't
find any methode in c# about how show IIS statitics. Maby with WMI provider?

Thanks for your help.

Regards

Dragan
Oct 6 '06 #3
On Fri, 6 Oct 2006 04:40:02 -0700, Peter Bromberg [C# MVP]
<pb*******@yahoo.nospammin.comwrote:
>You can do this a lot easier with ASP.NET. Whenever a new user Session is
begun, in Session_Start, you can increment a static counter variable. On
Session_End, decrement the variable. If it is in Global.asax, then you can
refer to it anywhere in your app as "Global.CurrentUserCount".
There are situations where the no event is fired when the session
ends. I believe this is the case when a session is shared across
several machines in a web farm. In 2.0 the MembershipProvider type has
a method named GetNumberOfUsersOnline.

regards
A.G.
Oct 6 '06 #4

"Draggi" <Dr****@discussions.microsoft.comwrote in message
news:E7**********************************@microsof t.com...
| Hello,
|
| I wan't to know how many user are connected in my web site. But i didn't
| find any methode in c# about how show IIS statitics. Maby with WMI
provider?
|
| Thanks for your help.
|
| Regards
|
| Dragan
|

That's what the Performance counters are for. The 'Web Service' object
maintains a 'Total Connections' counter per site and a total count.
Willy.
Oct 6 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: sumithradevi | last post by:
Hello Friends, I am getting the following error. java.sql.SQLException: ORA-00020: maximum number of processes (100) exceeded I am closing all my resultsets and all my connections in the try...
3
by: Mettá | last post by:
I was given the basics of the code below to display an Access DB. Can anyone tell me how to limit the number of db records that come up using the code below... Thanks M <%Dim DSN_NameX...
3
by: Clemens Chiba - Greentube I.E.S. AG | last post by:
Hi! If the user has no LAN connection I have to dialup to the internet in my application. This works fine, but in some case I'll have to change the phone number (if the provider changes) and the...
1
by: mike g | last post by:
Hello, I have postgres set to log all connections. I run it on port 5432. I have noticed in the postgres logs that the port being used to connect to the database is logged but never equal to...
3
by: Jason | last post by:
If I've got a string like x = " Intel(R) PRO/1000 CT Network Connection" How do I get x = "Intel(R) PRO/1000 CT Network Connection" I basically want to make a comparison to Intel(R) PRO/1000...
10
by: CJM | last post by:
I'm trying to call a package/procedure in oracle (from an ASP page) which requires a number of parameters. I have got this working using OO40 but unfortunately the transaction rollback function...
5
by: alingsjtu | last post by:
Hello, every body. When execute dynamic generated multiple OPENQUERY statements (which linkes to DB2) in SQLServer, I always got SQL1040N The maximum number of applications is already connected...
1
by: tensi4u | last post by:
Hello, everyone. I began to work with DB2 V8.1 for Linux on debian from last month, I'm beginner to DB2, and I have two questions. First, searched articles related to "number of connection" at...
1
by: anneaunimme | last post by:
I have a program which allow my computer to communicate to another device using an ethernet Cable. The thing is that this program is set so that it can only work through a specific IP address and a...
1
by: -pb- | last post by:
Hi, Following is our different database infrastructure. Server1 on NetwrokDomain1 SQL Server 2000 Server2 on NetwrokDomain2 SQL Server 2000 The database on Server2 is being used by third...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.