Solved

VB Application needs to report when online

Posted on 2004-09-13
6
145 Views
Last Modified: 2010-05-02
I have a VB Application which I would really like to "notify" a web application (ASP, IIS) when it comes online, goes offline, or send an away message.

NOTE:  VB App is on a different server than the webserver

The only way I could imagine to accomplish this is to make a file with a status in it.  However that makes the web app slower since it has to read a file using the filesystem object everytime it loads.  Also can have issues with Norton Script Blocking


Any ideas?
0
Comment
Question by:Rowdyone52
6 Comments
 
LVL 50

Expert Comment

by:Ryan Chong
ID: 12050321
Maybe you can try to "ping" your web server via VB?

See:

Demonstrates 3 ways to Detect Whether Internet Connection is Active
http://www.freevbcode.com/ShowCode.Asp?ID=632
0
 

Author Comment

by:Rowdyone52
ID: 12050402
How would the web app recongnize the ping?
0
 
LVL 50

Expert Comment

by:Ryan Chong
ID: 12050495
Is you going to check whether a website (web server) is online / reachable or not? Is this what you trying to archive?

regards
0
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 12050669
Based on my knowledge of ASP applications they aren't actively running all the time so there's really nothing for the VB app to talk to.  The ASP portion only runs when some user asks for a page associated with it.  So until a page in the app is requested there's no way I can think of to pass any information to it.  I don't see any way to avoid having to read the information in when the ASP page runs.  But it doesn't have to be a text file read via the filesystem object.  You could have the VB application write the information into a database which would also be available to the ASP app.  Another approach might be to have the VB app write the information into an HTML file that could be read in via a server side include.  Personally, I'd go the database route.  That's what ASP is all about anyway.
0
 
LVL 7

Expert Comment

by:_agj_
ID: 12052316
can u clarify on the requirement?
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question