We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,151 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Track usage of application

Hi Guys,
I need to track the application usage statistics using webservice. Basically i need to write a service which can be used in any application to record the usage of application which is calling this service. or Could be a DLL.
I need idea's for this.

Thanks,
pgmer..

2
Contributors
9
Replies
4 Months
Discussion Span
1 Month Ago
Last Updated
13
Views
Pgmer
Practically a Posting Shark
881 posts since Apr 2008
Reputation Points: 60
Solved Threads: 158
Skill Endorsements: 1

Codeproject has a webservices intro, with a client-side console application to consume it.
Click Here to view the article.

john.knapp
Posting Whiz in Training
221 posts since Oct 2012
Reputation Points: 25
Solved Threads: 22
Skill Endorsements: 3

John Thanks for the reply. I know how to write and consume web service in .Net application. My query is i need to capture usage stats record it in DB using webservice. Any help or directions in this would be great.

Pgmer
Practically a Posting Shark
881 posts since Apr 2008
Reputation Points: 60
Solved Threads: 158
Skill Endorsements: 1

Bear with me, I'm working up a demo project - I had a long post I had been writing as well, but apparently lost it during the day...

john.knapp
Posting Whiz in Training
221 posts since Oct 2012
Reputation Points: 25
Solved Threads: 22
Skill Endorsements: 3

IE issue apparently - able to post just fine from Chrome

john.knapp
Posting Whiz in Training
221 posts since Oct 2012
Reputation Points: 25
Solved Threads: 22
Skill Endorsements: 3

Rough diagram of db to record stats, see attached

Attachments db_designer_diagram.zip (45.07KB)
john.knapp
Posting Whiz in Training
221 posts since Oct 2012
Reputation Points: 25
Solved Threads: 22
Skill Endorsements: 3

Code Complete.
See attached project.

NOTE The application recorded is always (sic).Net SQL Client Provider, but hostnames, ip addresses, and which web method are recorded. This is not going to be a straight "drop in and go" to plug into any application, but it's a good start!

Attachments MyWebServiceAndConsumer.zip (110.95KB)
john.knapp
Posting Whiz in Training
221 posts since Oct 2012
Reputation Points: 25
Solved Threads: 22
Skill Endorsements: 3

John,
Thanks a lot for your effort. I will look into code today.

Pgmer
Practically a Posting Shark
881 posts since Apr 2008
Reputation Points: 60
Solved Threads: 158
Skill Endorsements: 1

There's a syntax error in one of the exception handlers.. :)
Apparently I did an "Undo" between last compile and packaging up the source.
You'll find it when you try to compile. It's in one the section that handles the update I believe, and instead of :

Try
... <code>
Catch sqlex as exception
    ' stuff
Catch ex as exception
    'other stuff
End try

I have two sqlex exceptions instead of a sqlex and an ex:

Try
... <code>
Catch sqlex as exception
    ' stuff
Catch sqlex as exception
    'other stuff
End try
john.knapp
Posting Whiz in Training
221 posts since Oct 2012
Reputation Points: 25
Solved Threads: 22
Skill Endorsements: 3

John,
Sorry i did not get a chance to come back to this forum. Thanks for your effort. I have implemnted the sollution which simillar to ur approach. I had some specific things to capture.

Pgmer
Practically a Posting Shark
881 posts since Apr 2008
Reputation Points: 60
Solved Threads: 158
Skill Endorsements: 1

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.1078 seconds using 2.66MB