473,396 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 2053
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 http://www.thecodeproject.com/com/automatingwindowsapps.asp but for managed...
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 the appropriate panel/panels depending on which...
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 mode, or sometimes on checking it in, Sourcesafe...
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. The controls have been test and operate okay in...
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 using Webforms or Winforms and I need advice from...
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 service needs to interact with a WinForms app...
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 have come up with - if anything strikes you as...
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 the buttons..
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 WinForms, in the sense that all the library routines I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.