Re: Hosting Windows Forms Controls in IE & Compression
From: Wells Caughey (wellscaughey_at_hotmail.com)
Date: 08/03/04
- Next message: Peter Cook: "Exception Handling and Call stack unwinding"
- Previous message: Joel Rumerman: "DataColumn Expression"
- In reply to: Wells Caughey: "Re: Hosting Windows Forms Controls in IE & Compression"
- Next in thread: Ying-Shen Yu[MSFT]: "Re: Hosting Windows Forms Controls in IE & Compression"
- Reply: Ying-Shen Yu[MSFT]: "Re: Hosting Windows Forms Controls in IE & Compression"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 3 Aug 2004 13:41:24 -0400
Hmm, that is weird, my last post is showing up twice...
I looked at my IIS log file and it does appear to be using the cached
version of my assembly, but I found something else that is even stranger.
Even though the runtime finds my assembly on the first try it continues
looking for it in different virtual folders. It even looks for a resource
assembly which I am not using. If this were just a few attempts, I wouldn't
worry about it too much, but depending on the request, the runtime tries
somewhere between 47 and 57 different urls, even though it has already found
the assembly. This probably isn't a bottleneck but it is still 47-57 round
trips to the server for nothing. Is this normal and expected behaviour?
Thanks,
Wells
"Wells Caughey" <wellscaughey@hotmail.com> wrote in message
news:uKHMdVXeEHA.3928@TK2MSFTNGP11.phx.gbl...
> Ying-Shen,
>
> Thank you for the response. I have not considered a multi-file assembly;
I
> will follow the links and research it further to see if it will help, but
> really, if the assembly is only downloaded once and from there on out
cached
> on the client, I don't really care how long it takes to download it the
> first time (within reason of course). I will check the IIS logs to make
> sure that everything is being cached correctly. It could be the case that
I
> have set up the cache headers incorrectly, and that may be why it appears
to
> take so long to load the assembly. As for the CAB file, I do not think
that
> the IE host supports it. I have tried several variations using the CAB
file
> and each failed, which is unfortunate because I got a 5:1 compression
ratio.
>
> Thanks again,
> Wells
>
> "Ying-Shen Yu[MSFT]" <v-yiy@online.microsoft.com> wrote in message
> news:9j4DF0UeEHA.3756@cpmsftngxa06.phx.gbl...
> > Hi Wells,
> >
> > I apologize for the delay.
> >
> > 1), the assemblies will not be download every time you access the
webpage,
> > the download cache will cache the webpage, so if there is no update on
> > server side, no file download will occur, you may verify this by
> analyzing
> > the log of your WebServer. However, when fusion load the assembly, it
> dooes
> > need to send get request to the Web Server and wait for the server
reply,
> > (server will reply 304 in case the client cache is valid). the process
> will
> > increase the loading time.
> >
> > 2). I'm not clear about it, but it looks to me an internal
implementation
> > detail, IE must have done many optimization here.
> >
> > 3) I'm still researching if there is a way to load .NET Winform control
> > from a .CAB file, but have you considered using multi-file assembly to
> > speed up the downo load concurrency and speed?
> > The following the document in the .NET Framework developer guide will
give
> > more explaination about the multi-file assembly and how to build a
> > multi-file assemly.
> > <Building a Multifile Assembly>
> >
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
> > l/cpconbuildingmulti-fileassembly.asp
> >
> > You may also try the workaround in Robert's blog to see if will help
> >
> > http://blogs.msdn.com/robgruen/archive/2004/07/21/190600.aspx
> >
> > Thanks!
> >
> > Best regards,
> >
> > Ying-Shen Yu [MSFT]
> > Microsoft Community Support
> > Get Secure! - www.microsoft.com/security
> >
> > This posting is provided "AS IS" with no warranties and confers no
rights.
> > This mail should not be replied directly, please remove the word
"online"
> > before sending mail.
> >
>
>
- Next message: Peter Cook: "Exception Handling and Call stack unwinding"
- Previous message: Joel Rumerman: "DataColumn Expression"
- In reply to: Wells Caughey: "Re: Hosting Windows Forms Controls in IE & Compression"
- Next in thread: Ying-Shen Yu[MSFT]: "Re: Hosting Windows Forms Controls in IE & Compression"
- Reply: Ying-Shen Yu[MSFT]: "Re: Hosting Windows Forms Controls in IE & Compression"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|