Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Managed ActiveX control refresh bug in Visual Studio 2003 and 2005


Author: Alvin Bruney MVP

View products that this article applies to.

Summary

This article describes the Microsoft Visual Studio bug that prevents changes made to ActiveX controls from being displayed.

↑ Back to the top


Abstract

ActiveX controls can be either managed or unmanaged. These controls encapsulate specific functionality such as file downloads or Excel spreadsheets and are usually embedded in the html page or aspx page at design time or at run-time. The controls are downloaded on demand by the browser and provide the client with the encapsulated functionality. With Microsoft Visual Studio 2003/2005, managed user controls can be used as a base to creating ActiveX controls that may be embedded in a browser. However, you may find that, after changes are made to the design surface of the user control, the changes are not reflected in the internet browser. This typically happens after a few iterations of development.

Resetting IIS will not correct the problem. Rebooting will usually correct the problem. However, there is a better solution. Use the gacutil application to clear the cache. The command is gacutil /cdl at the command prompt.

As already stated, managed controls that run in internet explorer must be downloaded to the client. These managed controls cannot be stored in the GAC. The managed controls are stored in a special assembly download folder in the windows directory. The /cdl command is especially adapted to clean that particular directory.

Note that the command may fail if there is a lock on the assembly. You should close Visual Studio, Internet Explorer and any program that may have access to the directory and re-run the /cdl command.

Also note that unmanaged ActiveX controls typically do not cause this problem.

↑ Back to the top


Community solutions content disclaimer

Microsoft corporation and/or its respective suppliers make no representations about the suitability, reliability, or accuracy of the information and related graphics contained herein. All such information and related graphics are provided "as is" without warranty of any kind. Microsoft and/or its respective suppliers hereby disclaim all warranties and conditions with regard to this information and related graphics, including all implied warranties and conditions of merchantability, fitness for a particular purpose, workmanlike effort, title and non-infringement. You specifically agree that in no event shall Microsoft and/or its suppliers be liable for any direct, indirect, punitive, incidental, special, consequential damages or any damages whatsoever including, without limitation, damages for loss of use, data or profits, arising out of or in any way connected with the use of or inability to use the information and related graphics contained herein, whether based on contract, tort, negligence, strict liability or otherwise, even if Microsoft or any of its suppliers has been advised of the possibility of damages.

↑ Back to the top


Keywords: KB555661, kbhowto, kbpubmvp, kbpubtypewp, kbpubtypecca

↑ Back to the top

Article Info
Article ID : 555661
Revision : 1
Created on : 7/12/2006
Published on : 7/12/2006
Exists online : False
Views : 257