Microsoft KB Archive/814663

= BUG: Frameset Page that Hosts Windows Forms Control that Uses Localized Assemblies Does Not Load the Control the First Time =

Article ID: 814663

Article Last Modified on 1/24/2004

-

APPLIES TO


 * Microsoft .NET Framework 1.1
 * Microsoft .NET Framework 1.0

-



SYMPTOMS
When you try to browse through a frameset page with frames that host Microsoft .NET Windows Forms (Winforms) Controls that use localized assemblies, Microsoft Internet Explorer may not respond the first time. The page may load correctly with successive tries to browse it.



WORKAROUND
There are two ways to work around this problem:  Increase the maximum number of connections for each server.

Note This technique increases the connection load on all HTTP servers that Microsoft Internet Explorer visits, and then globally forces Internet Explorer to violate the HTTP specification. This workaround is only recommended if Internet Explorer frequently does not respond, and if you cannot change the code for the Web site. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

183110 INFO: Winlet Limits Connections Per Server

 You can initially host the frame in a non-frameset page. Mark the page as hidden, to make download of the control easier. Subsequently, when you locate the frameset page, the control in the frames loads correctly. You can initially browse the non-frameset page that hosts the control. When you browse the page, the control downloads to a local computer. Subsequently, when you locate the frameset page, the control in the frames loads correctly.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Create a Windows Control Library

 * 1) Open Visual Studio .NET, and then create a new Visual C# project.
 * 2) Select the Windows Control Library template, and then name the project MyControl.
 * 3) Under Location, select ..\Inetpub\wwwroot. Click OK.
 * 4) In the Windows Forms toolbox, double-click ImageList.
 * 5) Select the new ImageList control. In the Properties window, click Images to add images to this control.
 * 6) In Image Collection Editor, click Add.
 * 7) Click the image, and then close Image Collection Editor.
 * 8) In the Windows Forms toolbox, double-click ToolBar.
 * 9) Select the new ToolBar control. In the Properties window, click Buttons to add menu items.
 * 10) In ToolBarButton Collection Editor, click Add.
 * 11) In Text Property, type MyTestToolButton1.
 * 12) Click OK to close ToolBarButton Collection Editor.
 * 13) Build the application.
 * 14) Close the project.

Steps to Create Framed Pages
  Open Microsoft Notepad and copy the following code:    In the ..\Inetpub\wwwroot\MyControl folder, name the file Page.htm .</li>  Open Notepad and then copy the following code: <frameset id=&quot;demo&quot; rows=&quot;50%,*&quot;> <frame src=&quot;page.htm&quot;> <frame src=&quot;page.htm&quot;> </li> In the ..\Inetpub\wwwroot\MyControl folder, name the file Default.htm .</li>  Open Notepad and then copy the following code: <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?> <assemblyBinding xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot;> <dependentAssembly> <assemblyIdentity name=&quot;MyControl&quot;/> <codeBase href=&quot;http://localhost/MyControl/bin/Debug/MyControl.dll&quot;/> </dependentAssembly> </assemblyBinding> </li> In the ..\Inetpub\wwwroot\MyControl folder, name the file MyControl.myconfig .</li></ol>

Steps to Browse the Framed Page

 * 1) Open Internet Explorer.
 * 2) Locate http://localhost/MyControl/default.htm
 * 3) Internet Explorer stops responding.
 * 1) Internet Explorer stops responding.

Keywords: kbbug kbctrl KB814663

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.