WebBrowser control freeze main application

Hello Experts,
I have a big problem.

My winform application (VB.NET 2008) using WebBrowser control for show remote  aspx pages.
During develop and testing, application worked well,  but when I went in production I discovered a trouble.
When application open webpages not responsive (some time wait more of 60 secs) entire application remain hang until the asp page is loaded.
This behavior has  created a disappoint in my customer and I have to fix it in hurry.

I tryed to create a usercontrol, using webbrowser control inside to a thread but  without results.

Anybody can help me?
Any suggestion is really appreciated.
Thanks

ErikIce
 

ErikIceAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alfred A.Commented:
Hi,

When you access the web pages, does the web pages retrieve or manipulate a database such as SQL Server?

It is possible that when you developed and tested it, it is accessing local resources, and that is why it was fast.
0
ErikIceAuthor Commented:
Hi Alfreed1,
ASP web page calling remote web service and wait for their answer before to complete the page load.
Remote web services, some time answer slow and some time are quick, but in any case I can't manage them because they are remoting and out of my competence.
0
Alfred A.Commented:
Hi,

OK. So, it is a web service access then.  Are you accessing the web service asynchronously?  I suspect you are accessing it synchronously and that is why it is locking up your threads.  You application is waiting for a response from the web service.  Can you switch to asynchronous if this is possible?  What kind of web service are you accessing?  Does it have a WSDL or are you accessing it directly through a SOAP client?
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Alfred A.Commented:
Hi,

Also, what is the level of concurrency (parallel hits) happening to this web service provider?  Is there any other win form application accessing this web service?
0
ErikIceAuthor Commented:
Hi,
I don't know what really happen behind my call, I know only that I have an URL to call, waiting and receive back some data. Remote web service is developed in Delphi I believe.
My problem is that my application isn't responsive when .NET webbroser control waiting for remote answer.
If I'm able to run webbrowser control in a separate thread the problem could be fixed.
0
ErikIceAuthor Commented:
I try many samples but webbrowser doesn't work if used it in other threads.
Somebody has other ideas?
Thanks
0
Alfred A.Commented:
Hi,

Have you tried doing an Application.DoEvents() in your code?

Check this out:

http://msdn.microsoft.com/en-us/library/system.windows.forms.application.doevents.aspx
0
ErikIceAuthor Commented:
Thank you Alfred1 for your support,

Yes I tried it, and I noticed that the application freeze exactly when the doevents is fired.
I believe that webbrowser control has a problem.
I tried to navigate on the aspx pages using IE8, Firefox and Crome,  and I discovered that Firefox and Chrome working well and they are responsive, on the contrary IE8 freeze all browser application.

Really I haven't idea on how turnaround it.


0
Alfred A.Commented:
Hi,

One thing I noticed is that IE8 is more memory-resource intensive than Firefox when using AJAX Calendar Control for example.

How about IE7 and IE6?  Have you tried them if they are working as well?

Check this out, this might help.

How to optimize Internet Explorer:

http://support.microsoft.com/kb/936213

How to troubleshoot Internet Explorer issues in Windows Vista and in Windows XP

http://support.microsoft.com/kb/936215
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ErikIceAuthor Commented:
Thank you Alfred1 for your suggestions,
I tested in IE6 and IE7 but also with these webbrowser control freeze and there isn't difference on memory usage.

I tried using webrequest statement instead of webbrowser control and the application is responsive, now the problem is how merge webrquest answer into webbrowser control. I saw that when I load the datastream received from webquest in webbrowser control I lost all refernce of images and objects.

At the end I believe that there isn't a solution of this behaviour using MS WebBrowser.

Thak you for your help.
Erik
0
yu0307Commented:
what i will basically suggest you is to use axwebbrowser rather than the default limited webbrowser from the right bar.
to add the axwebbrowser:
right click, choose items-> goto COM, choose "microsoft web browser"
then use this browser instead. see if this helps you a little bit~ :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.