Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > winforms controls take a long time to load in IE

Reply
Thread Tools

winforms controls take a long time to load in IE

 
 
=?Utf-8?B?Sm9obiBBbGVzc2U=?=
Guest
Posts: n/a
 
      02-02-2004
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
 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      02-03-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
 
john Alesse
Guest
Posts: n/a
 
      02-03-2004

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!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Having compilation error: no match for call to (const __gnu_cxx::hash<long long int>) (const long long int&) veryhotsausage C++ 1 07-04-2008 05:41 PM
load data to remote system using sqlldr+ winforms Deshi ASP .Net 1 06-05-2008 12:23 PM
I am planning to take .NET Winforms exam please suggest me how to Gnanavelu.Munusamy MCAD 1 07-20-2006 04:29 PM
page not load / freeze / long time to load roni ASP .Net 1 08-30-2005 09:15 PM
beginning page load immediately on postback with a long load time ? Mad Scientist Jr ASP .Net 7 06-30-2004 07:40 PM



Advertisments