BUG: Changes to images are not displayed in the Visual Studio .NET design environment (316945)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2003), Professional Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Academic Edition
  • Microsoft ASP.NET (included with the .NET Framework 1.1)
  • Microsoft ASP.NET (included with the .NET Framework) 1.0

This article was previously published under Q316945

SYMPTOMS

If you alter an image file that is used in a Microsoft Visual Studio .NET project, an older version of the image may be displayed in the design environment. If a WebForm contains an image, and that image has been deleted from the project and then altered and re-added to it, the WebForm may still display the original image in Design view of the WebForm. Additionally, if you create a new WebForm and drag the new image into the Web Forms Designer, the old image may still be displayed.

CAUSE

This behavior can occur because the integrated development environment (IDE) uses the Temporary Internet files folder to cache the view of the Web page. Unless these files are updated, cleared, or the IDE is refreshed, the IDE displays the view from the cached file.

RESOLUTION

To work around this issue, use any of the following methods:
  • On the View menu in the IDE, click Refresh.

    -or-
  • Browse to the Web page in question, and then reload the page.

    -or-
  • Delete the contents of your Temporary Internet files folder in Internet Explorer, and then reload the page.

STATUS

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

MORE INFORMATION

Steps to Reproduce the Problem

  1. Create a new ASP.NET Web application project in Visual Studio .NET.
  2. Add a Graphics Interchange Format (GIF) file to the project.
  3. Add a WebForm to the project, and then drag the GIF file into the Web Forms Designer.
  4. Build the project, and then browse to the Web page in question.
  5. Close the WebForm, and delete the GIF file from the project.
  6. Edit the original copy of the GIF file so that it looks different, and then add it to the project again.
  7. Double-click the WebForm to view the design.

    The old version of the image is still displayed.
  8. Create a new WebForm.
  9. Drag the image into the Web Forms Designer. The original image is still displayed.

Modification Type:MajorLast Reviewed:7/29/2005
Keywords:kbvs2002sp1sweep kbbug kbIDEProject kbnofix KB316945