Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / April 2006

Tip: Looking for answers? Try searching our database.

WinForm in IE - Slow Load Times w/ Interface

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Spam Catcher - 24 Apr 2006 13:13 GMT
Hi all,

I've added a shared remoting interface to WinForm in IE control. Since
adding the DLL, load times have double - it takes ~2 minutes to load. The
DLL is 16K and only contains shared interfaces.

I checked the Fusion binding log (as well as my own custom logging),
initial load takes place almost instantenously - all DLLs are downloaded
right away.

The moment I hit my first remoting line - the code stalls and takes ~2
minutes to complete. I noticed in my fusion binding log that .NET seems to
re-request the DLL because it "already exists in the local cache". I've
cleared my local cache to no avail.

Once everything loads, it runs fast - but the inital load is sooooo slow.

Any ideas why code w/ interfaces + remoting take so long to load?

Thanks.
Spam Catcher - 24 Apr 2006 19:34 GMT
> Hi all,
>
[quoted text clipped - 15 lines]
>
> Any ideas why code w/ interfaces + remoting take so long to load?

The problem seems to be related with IE's TCP IP Stack... I found a
google article and it seems to have fixed the problem.

Basically you put this "fake" code before your remoting code:

           Try
               Dim loaderPage As String =
System.Reflection.Assembly.GetExecutingAssembly().CodeBase.Replace
(".dll", ".aspx")
               Dim request As HttpWebRequest = WebRequest.Create
(loaderPage)
           Catch ex As Exception
           End Try

code loads instantly... weird.

http://groups.google.ca/group/microsoft.public.dotnet.framework.aspnet/br
owse_thread/thread/4d4c05a62d37467/5299bf58c242a513?
lnk=st&q=Winform+IE+Remoting&rnum=3&hl=en#5299bf58c242a513

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.