Results 1 to 6 of 6

Thread: Simple Web Browser

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fox, OK
    Posts
    381

    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.
    Name:  errors.JPG
Views: 230
Size:  110.4 KB

    Is this a problem with my program or the app on my web site?

    Any better solutions for keeping my web app alive?
    gs

  2. #2
    Fanatic Member Flashbond's Avatar
    Join Date
    Jan 2013
    Location
    Istanbul
    Posts
    646

    Re: Simple Web Browser

    My very first oppinion is your light browser can not resolve scripts.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fox, OK
    Posts
    381

    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.

  5. #5
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    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!

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fox, OK
    Posts
    381

    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
  •  



Click Here to Expand Forum to Full Width