472,351 Members | 1,524 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,351 software developers and data experts.

winforms controls take a long time to load in IE

Hi, I've created a very simple winforms control using the c# wizard in VS .net 2003 that is nothing but a System.Windows.Forms.UserControl. There are no other controls on the form

It takes IE 12 seconds to load this control into the page. CPU usage is at only 1% to 2% during the 12 sec
All of this is on a single machine

XP Pro sp1 (all critical updates loaded)
2.6GHz, P4, 512MB ra
IE v6.0.2800.1106.xpsp2.030422-1633
IIS 5.1
..net framework 1.1.4322.573 (my computer, intranet security set to "Full Trust"

Here is the html page I use to load it

<html><body><object id="SlowLoad1" classid="http:SlowLoad1.dll#SlowLoad1.UserControl1 " height="500" width="500" VIEWASTEXT></object></body></html

The real control I'm trying to build takes over 40 seconds to load. I'm finding that it hangs when calling ResourceManager functions that load an imagelist, but finally it does load, and work once loaded

Worth noting that before running the test

- I cleared out everything under my user account\VSWebCach
- Removed everything under C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET File
- killed (auto restarted) aspnet_wp.ex

Here is a dump of the gac and dll loading when launching the web app from VS .net

Auto-attach to process '[2396] aspnet_wp.exe' on machine 'JJAHOME' succeeded
'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols loaded
'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.dll', No symbols loaded
'DefaultDomain': Loaded 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll', No symbols loaded
'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.dll', No symbols loaded
'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.thunk.dll', No symbols loaded
'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.data\1.0.5000.0__b 77a5c561934e089\system.data.dll', No symbols loaded
'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded
'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.dll', No symbols loaded
'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.web.regularexpress ions\1.0.5000.0__b03f5f7f11d50a3a\system.web.regul arexpressions.dll', No symbols loaded
'/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols loaded
'/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.dll', No symbols loaded
'/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll', No symbols loaded
'/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.dll', No symbols loaded
'/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.thunk.dll', No symbols loaded
'/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.data\1.0.5000.0__b 77a5c561934e089\system.data.dll', No symbols loaded
'/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded
'/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.dll', No symbols loaded
'/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.web.regularexpress ions\1.0.5000.0__b03f5f7f11d50a3a\system.web.regul arexpressions.dll', No symbols loaded
'/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.web.services\1.0.5 000.0__b03f5f7f11d50a3a\system.web.services.dll', No symbols loaded
'/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temp orary asp.net files\slowloadwebapp\f7c3f075\b19a58a7\assembly\dl 2\2a9d5b70\fa1a0416_e5e9c301\slowloadwebapp.dll', Symbols loaded.
'/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.web.mobile\1.0.500 0.0__b03f5f7f11d50a3a\system.web.mobile.dll', No symbols loaded.
'/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temp orary asp.net files\slowloadwebapp\f7c3f075\b19a58a7\tcmapekp.dl l', Symbols loaded.
'/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temp orary asp.net files\slowloadwebapp\f7c3f075\b19a58a7\kbhl-mnz.dll', Symbols loaded.

I believe this to be a server side issue because I've tried with various other remote client machines and I get the same results.

Any help to resolve this would be appreciated.

Thanks,

John Alesse
Zaptose Technologies
Nov 18 '05 #1
2 1987
your timing's seems about right, actually kinda quick. for IE to host a
WinForm control, it has to load the .net runtime, create an appdomain to
host the control, download the code, jit and load it. Your 40 seconds also
seems right for a control of any complexity. You can proably get the 40
seconds back down to about 12 seconds by preinstalling it in the GAC.

If you want to use controls with IE, you should really should stick with
true active/x controls.

-- bruce (sqlwork.com)

"John Alesse" <ja*****@comcast.net> wrote in message
news:28**********************************@microsof t.com...
Hi, I've created a very simple winforms control using the c# wizard in VS ..net 2003 that is nothing but a System.Windows.Forms.UserControl. There are
no other controls on the form.
It takes IE 12 seconds to load this control into the page. CPU usage is at only 1% to 2% during the 12 secs All of this is on a single machine:

XP Pro sp1 (all critical updates loaded)
2.6GHz, P4, 512MB ram
IE v6.0.2800.1106.xpsp2.030422-1633
IIS 5.1
.net framework 1.1.4322.573 (my computer, intranet security set to "Full Trust")
Here is the html page I use to load it:

<html><body><object id="SlowLoad1" classid="http:SlowLoad1.dll#SlowLoad1.UserControl1 " height="500" width="500"
VIEWASTEXT></object></body></html>
The real control I'm trying to build takes over 40 seconds to load. I'm finding that it hangs when calling ResourceManager functions that load an
imagelist, but finally it does load, and work once loaded.
Worth noting that before running the test:

- I cleared out everything under my user account\VSWebCache
- Removed everything under C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files - killed (auto restarted) aspnet_wp.exe
Here is a dump of the gac and dll loading when launching the web app from VS .net:
Auto-attach to process '[2396] aspnet_wp.exe' on machine 'JJAHOME' succeeded. 'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols
loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.
dll', No symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll', No
symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50
a3a\system.enterpriseservices.dll', No symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50
a3a\system.enterpriseservices.thunk.dll', No symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.data\1.0.5000.0__b 77a5c561934e089\system.dat
a.dll', No symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.
drawing.dll', No symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.
dll', No symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.web.regularexpress ions\1.0.5000.0__b03f5f7f1
1d50a3a\system.web.regularexpressions.dll', No symbols loaded. '/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols
loaded. '/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.
dll', No symbols loaded. '/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll', No
symbols loaded. '/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50
a3a\system.enterpriseservices.dll', No symbols loaded. '/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50
a3a\system.enterpriseservices.thunk.dll', No symbols loaded. '/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.data\1.0.5000.0__b 77a5c561934e089\system.dat
a.dll', No symbols loaded. '/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.
drawing.dll', No symbols loaded. '/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.
dll', No symbols loaded. '/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.web.regularexpress ions\1.0.5000.0__b03f5f7f1
1d50a3a\system.web.regularexpressions.dll', No symbols loaded. '/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.web.services\1.0.5 000.0__b03f5f7f11d50a3a\sy
stem.web.services.dll', No symbols loaded. '/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temp orary asp.net
files\slowloadwebapp\f7c3f075\b19a58a7\assembly\dl 2\2a9d5b70\fa1a0416_e5e9c3
01\slowloadwebapp.dll', Symbols loaded. '/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\assembly\gac\system.web.mobile\1.0.500 0.0__b03f5f7f11d50a3a\syst
em.web.mobile.dll', No symbols loaded. '/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temp orary asp.net
files\slowloadwebapp\f7c3f075\b19a58a7\tcmapekp.dl l', Symbols loaded. '/LM/w3svc/1/root/SlowLoadWebApp-2-127202564634218750': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temp orary asp.net
files\slowloadwebapp\f7c3f075\b19a58a7\kbhl-mnz.dll', Symbols loaded.
I believe this to be a server side issue because I've tried with various other remote client machines and I get the same results.
Any help to resolve this would be appreciated.

Thanks,

John Alesse
Zaptose Technologies

Nov 18 '05 #2

Bruce,

Thanks for the reply. The thing is, when I build our real control into a
local winforms App and launch it, 40 seconds becomes 2. My guess is that
IE must be doing lot's of security stuff before allowing the control to
run.

I think I'm going to explore a Smart Client based solution instead of
going back to Active-X

-J

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Shamil Salakhetdinov | last post by:
Hi All, Have anybody seen somewhere techniques like the one described here: Automating Windows Applications...
3
by: Leo J. Hart IV | last post by:
OK, here's another question for the experts: I am building a multi-step (3 steps actually) form using a panel for each step and hiding/displaying...
0
by: guy | last post by:
Two of us are working on a Winforms solution (5 projects) and are using VSS, and VB.NET 2003 with one form, regularly on closing it in design...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories....
4
by: 3Cooks | last post by:
I have a windows application written in Visual Basic 6.0 that is going to be redeveloped in dotNET. We are trying to decide if we should deploy...
2
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the...
5
by: brian.wilson4 | last post by:
Our group is currently comparing winforms vs webforms.....app is Corp LAN based - we have control of desktops.....Below is pros and cons list we...
4
by: parez | last post by:
Hi, Whats the winforms equivalent of asp.net page load event? I am trying to clear a status message field every time a user clicks on any of...
23
by: raylopez99 | last post by:
Here I am learning WinForms and two months into it I learn there's a WPF API that is coming out. Is this WPF out yet, and is it a threat to...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.