Minimizing load time for explorer hosted winforms

G

Guest

Hi,
I'm trying to minimize the load time of a winform hosted in ie.
This winform calls a webservice.

It needs to download the XmlSerializers.dll, when doing this it start
probing in some wrong places (but not on the directory where the original dll
was downloaded).
If it didn't find an assembly containing the serialization info it
constructs reflecting on the assembly.

I found that the unwanted probing goes away adding in the html page where
the assembly is loaded a

<link rel="Configuration" href="myAssembly.htm" />

with this file containing only the envelope configuration tags:
<configuration>
<runtime>
</runtime>
</configuration>

(the Application base became the directory where the assembly was downloaded).

Anyway I see that the file is downloaded 2 times per assembly no matter if
the file is the same.

Why is this happening?
Is the correct way to handle this situation?
 
L

Linda Liu [MSFT]

Hi Carlo,

I performed a test based on your description but I didn't reproduce the
problem you mentioned.

When I navigate the web page hosting a winform, I use File Monitor (from
Sysinternals company) to monitor the config file, i.e. the Assembly.htm
file in your sample. I see the config file is downloaded only once at the
begining of the navigating.

Could you tell me how you see the 'myAssembly.htm' file is downloaded 2
time per assembly?

I look forward to your reply.


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Hi Linda,
I didn't use filemon to monitor the file (maybe some caching is going on).

You can see what I mean by taking a look at the IIS logfile and/or using
some net monitor (Fiddler works great).

Let me know if you can reproduce this...if not I would sent you a specific
repro.

Ciao
 
L

Linda Liu [MSFT]

Hi Carlo,

Firstly, I would say that your method to minimize load time for loading
Windows Forms/Controls in Internet Explorer is correct. There's a KB
article about this problem and you could reference it. The link is
http://support.microsoft.com/?id=814668.

I performed another test using Fiddler to monitor HTTP requests when I
navigate the web page hosting a winform. However, I still see that the
configuration file is downloaded only once at the beginning of web page's
loading.

Would you please explain more to me what you mean the configuration file is
downloaded 2 times per assembly? You may send your specific repro to me. To
get my actual email address, remove 'online' from my displayed email
address.

I look forward to your reply.


Sincerely,
Linda Liu
Microsoft Online Community Support
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top