Connecting Tech Pros Worldwide Forums | Help | Site Map

WebBrowser control hangs

Newbie
 
Join Date: Mar 2008
Posts: 1
#1: Mar 26 '08
Hey everyone,

I have an application with a simple built in webbrowser that allows users to click on a piece of data in another section of the app, and the webbrowser will open a URL for more information. However, after going thru several of these URLs, the webbrowser hangs and the entire app needs to be closed and restarted.

FWIW, these URLs also cause IE to hang if you view them there. Here are some example URLs:

http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=search&db=gene&term=ABCB1%5Bsym%5D%20ho mo%20sapiens%5Borganism%5D
http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=search&db=gene&term=ABCC2%5Bsym%5D%20ho mo%20sapiens%5Borganism%5D
http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=search&db=gene&term=CDA%5Bsym%5D%20homo %20sapiens%5Borganism%5D
http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=search&db=gene&term=CYP1A2%5Bsym%5D%20h omo%20sapiens%5Borganism%5D
http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=search&db=gene&term=CYP2A6%5Bsym%5D%20h omo%20sapiens%5Borganism%5D

I've also replicated this problem by creating a simple, stand alone Windows form with a webbrowser control in VS.

Any ideas on how to fix this? The coding behind my webbrowser is C#. The webbrowser has no other controls or options so I'm hoping a simple method behind the scenes can take care of this. I also don't want the user to have to disable caching in IE which was a recommendation I got on another board.

Thanks for any help you might have!

balabaster's Avatar
Moderator
 
Join Date: Mar 2007
Location: Canada
Posts: 757
#2: Mar 27 '08

re: WebBrowser control hangs


First up - there's a space between the %5 and the D at the end of the last two URLs which shouldn't be there...remove it.

Secondly, my browser works just fine...none of those URLs crash (after I delete the space). It looks to me like if it still occurs after you remove those spaces that your IE might need reinstalling?
Reply