|
-
Jun 8th, 2013, 09:29 AM
#1
Thread Starter
Hyperactive Member
Simple Web Browser
I'm trying to create a simple web browser/pinger that loads pages from my web site to keep the app on the web site running.
Code:
Private Sub timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles timer.Tick
If wb.Tag = "a" Then
wb.Navigate("www.16tracks.com")
wb.Tag = "b"
Else
wb.Navigate("www.16tracks.com/contact-16-tracks/")
wb.Tag = "a"
End If
End Sub
When I run the program, a page loads and then I get errors.

Is this a problem with my program or the app on my web site?
Any better solutions for keeping my web app alive?
gs
-
Jun 8th, 2013, 09:44 AM
#2
Fanatic Member
Re: Simple Web Browser
My very first oppinion is your light browser can not resolve scripts.
-
Jun 8th, 2013, 09:47 AM
#3
Re: Simple Web Browser
Can you load that same URL in a regular browser? It's an issue with the web page but the question is whether that's due to a limitation of the WebBrowser control.
-
Jun 8th, 2013, 11:02 AM
#4
Thread Starter
Hyperactive Member
Re: Simple Web Browser
The point of all this is to keep my web app alive. The site will load in a browser and run fine unless you're the first one to hit the site after the app shuts down - which seems to be every 5 minutes or so. I don't know the exact timing of it. My intent was to hit this site with my little browser regularly to keep the shutdown from happening.
So to answer the question, yes it will load in a browser fine, unless you're the first person to the site for a while. Otherwise, it loads with an error. Refreshing will make things run fine.
-
Jun 8th, 2013, 11:56 AM
#5
Re: Simple Web Browser
Is this a problem with my program or the app on my web site?
Any better solutions for keeping my web app alive?
Well I'd say the very fact that you need to go to such lengths to keep it running suggests that there's something fundamentally wrong with it. I trust you don't think it's normal to have to do this? What does the app actually do (when it works) and why is it necessary to have it always on instead of reacting to page loading or link/button triggers?
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Jun 8th, 2013, 12:07 PM
#6
Thread Starter
Hyperactive Member
Re: Simple Web Browser
It's a WordPress web commerce site hosted on GoDaddy. I had the same issue with a full eCommerce app called nopCommerce. The server shuts down any app that doesn't get hit for a few minutes. Anyway, I think I've found a different way to make it work like I want - with little effort from me. www.16tracks.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|