BUG: Windows Forms Resource Editor cannot open inherited forms (814732)
The information in this article applies to:
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# .NET (2002)
SYMPTOMSThe Windows Forms Resource Editor (Winres.exe) is a visual
layout tool that helps localize Windows Forms. You use the .resource file or
the .resx file as input to Winres.exe. When you use Winres.exe to edit
inherited Windows Forms, you may receive the following error message: An error occurred while loading the document. Fix the error, then
try loading the document again. The error message follows: Value does not fall
within the expected range. CAUSE WinRes.exe uses the assembly mentioned in the .resource
file or .resx file to edit the form. The file contains an entry for the
inherited class and for the assembly name (for example, System.Windows.Form). When the resource is loaded, WinRes.exe checks for assembly in
the Global Assembly Cache (GAC), and then displays the resource by
instantiating the object. However, for inherited Windows Forms, the entry in
the file is the inherited base form, and the assembly name is the application
name. The error occurs because WinRes.exe does not find the assembly in the GAC
or in the directory where WinRes.exe is located when it reads from the
inherited Windows Forms file.WORKAROUNDTo work around this issue, use one of the following methods:
- Copy the assembly in the directory where WinRes.exe is
located. For example, put the assembly in C:\Program Files\Microsoft Visual
Studio .NET\FrameworkSDK\Bin
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Minor | Last Reviewed: | 1/25/2006 |
---|
Keywords: | kbvs2005swept kbvs2005doesnotapply kbvs2002sp1sweep kbWindowsForms kbForms kbbug KB814732 kbAudDeveloper |
---|
|