???? ID: 318603 - ????? ???????: 04 ?????? 2010 - ??????: 2.0

???? ?? "System.Resources.MissingManifestResourceException" ?????? ????? ??????? ?? ???? ?? ?? ?? ????? ??? ??????? ?? .resources ????? ?? ?????

?????? ??????This article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.

?? ????? ??

??? ?? ??????? ???? | ??? ?? ??????? ????

?????

?? ?? ???? Visual Basic .NET ?? Visual Basic 2005, ????? C# .NET, ?? ????? J# .NET Windows ????????? ??? ??? ???, ?? ?? ???? ?? ???? ????? ?????? ????? ?? ?? ???? ?? ?? ??? ??????? ???:
'System.Resources.MissingManifestResourceException' ?????? ?? ??? ????? unhandled mscorlib.dll ??? ? ?? ??

???????? ???????: ??? ???? ???? ???? ?? ?????? ????????? culture (?? neutral culture) ?? ??? ??????? ??? ?? ??????? ???? ?? ????????? ???? ?? "Form1.resources" ???????? ?? ?????? ??? ??????? "myApplication" ??? ?? ???

baseName: Form1 locationInfo: WindowsApplication4.Form1 ?????? ????? ???: Form1.resources ???????: myApplication, ??????? 1.0.781.33026, Culture = neutral, PublicKeyToken = ?? =
??? ??????? ????????? ????? ????? ???, ?? ??? ?? ??? ?? ?????? ????? ??????? (IDE) ??? ??? ??? ???, ?? ?? ?? ????? ?? ???? ??? ?? ?? ??????InitializeComponent??? ?? ?????? ?? ???? ???? ??? ?????? ?? ???, ??? ?? ????? "???? ???????" ??? ?? ??? ??, ?? ?? ?????? ?? ???? ?? ??? ??? ??ImageList???????? ??? ?????? ????? ???? ???? ?? ???????? ?? ?????? ?? ???? ??, ?????? ????? ??resources.GetObject??? ?????? ????? ??? ?? ?? ?????? ?? ????? ???? ??:
this.imageList1.ImageStream ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); =

????

?? ?????? ?? ???? ?? ?????????????????? ??????? ?? ??? ??????? ??? ????? ?????? ???? ???

???:?? ???? ????????? ?? ??????? ?? ?????? ?? ???? ??? ???? ???????????? ?? ???? ???????? ?? ??? ?? ?? ???? ??? ?? ?? ???? ???

????????

?? ?????? ?? ?? ???? ?? ??? ?? ??? ???? ???? ????????? ?? ?? ?? ??????? ???? ?? ???????? ???? ?? ??? ????? ???? ????

????? ?????????

?? ?????? ?? ??, ??? ??????????? ????? ???????????? ?? .resX ????? ???? ??? ???? ?? ???, ????? ????? ?? ???? ????::
  1. Visual Studio .NET 2003 ?? ??????? ?????? Visual Studio 2005.
  2. ???? ???? "?????" ??? ??? ?????? ?????? ????? ??????? ?????????? ??????? ???? ??? ????????? ??????
  3. ?????? Explorer ???, ??? ????????? ?? ??????? ?????
  4. ????-????? ????Form1.resX?? ????-????? ????, ?? ???? ??????.
  5. ?????Form1.resX ??? ?????????? ????? ???, ??????? ??????????????? ????? ????-????? ????, ?? ???? ???????????? ??????????????? ??????.
  6. ????????? ?????????? ????? ????? ???(IntDir) $ / <placeholder></placeholder>. Form1.resources???? ?? ???(IntDir) $ / <placeholder>.</placeholder>MyForm.resources?? ????-????? ????, ?? ???? ???OK.

    ???:MyForm???? ???????? ??????? ???? ?? ???? ?? ??? ?? ??? ?? ??????????? ???
  7. ????????? ?????? ?? ??? CTRL + SHIFT + S ?????? ?????? ????? ?? ??? CTRL + SHIFT + B ?????????? ??????? ?? ???, Microsoft ?????? ??? ??? ???? ????? ?? ??? ????? ???? ?????? ????? ????::
    824495  (http://support.microsoft.com/kb/824495/ ) FIX: ???? ?? "MissingManifestResourceException" ?????? ????? ??????? ???? ?? ?? Visual Studio .NET 2003 ??? ???? ???? ??? ?? ?????? ??????
  8. ????????? ?? ????? ?? ??? F5 ?????? ????????? ???? ??, ?? Form1 ??????? ????????? ???? ???? ???
.

??????

?? ??????? ??????? ?????? ??..

???? ???????

???? ??????? ??? ??????? ??? ?? ?? ???? ???? ?? ???? ???? ????????? ????? ??, ?? ????? ?????? ???-?? ???? .resources ????? ????? ?? ??? ????? ???? ????? ?? ?? ???? ????? ????????? ????? ?????? ?? ??????? ??? ??????? ??? ????? ???? ?? ??? ?? .resources ????? ?????? ?? ???? ????????? ???? ??? ?? ????, ??????? ?? ???? ??? ?? ?????? .resources ????? ?? ??? ???? ??? ??????? ?????? ???, ?? ?? ??? ???? ???? ??? ??, ??? ?? ??? ??????? ??? ??, ?? ???? ?????? ????? ?? "?????" ??? ??? ????? ??? ???

????? ??? ?? ??????? ??? ???? ???InitializeComponent???? .resources ????? ?? ???????? ?? ??????? ???? ?? ??? ?? ???? ???InitializeComponent????? ??Form_Name.resources ??????? ??? ????? ??? ??????? initialForm_Name.resources ????? ??? ???? ???? ?? ?? ??????? ???? ???? ??? ??, .resources ????? ?? ???????????? ???? ?? ?????? ???? ???? ???

??????? ?? ???: ??????? ???? ?? ??? ???

  1. Visual Basic .NET ?? Visual Basic 2005, ????? C# .NET ?? ????? J# .NET ??? ???? Windows ????????? ????????? ?????? Form1 ???????? ??? ?? ???? ??..???:Visual Studio 2005, ??? ???? ????? ??????? ????? ??????? ???? ??:
    ??? ?????????? ??? ??? ???? ????? ?? ???? ??? ??????? ??????? ?? ???? ???? ?? ??? ?? ?????? ?? ??? ???? ??? ??? (???????) ?? ??? ?????
    ???:?? Visual Basic 2005 ??? ??? ?? ????????? ???? ?????? ??? ???????? ??? ??, Visual Basic ????? ????? ??????? ?? ????????? ?? ??? ?? ?? ?? Windows ??????? ????????? ????? ???? ??? ?????? ?? Form1 ??? ??, ??????? ?? ???????????? ???? ???? ?? ??????? Form1.vb ?? Form1.Designer.vb ??? ???? Form1.vb ????? ??? ??? ?????? Windows ??????? ??????? Form1.Designer.vb ????? ??? ??? ????? ??? Form1 ?? ??????????? ?? ?? ??? ??????? ??? ??????? ???? ?? ??? Windows ??????? ??????? ????? ?????? ?? ????? ???? ??? ?? ??????? designer-????? ???? ??? ??? ?? ???? ??? ?? ??? interspersed ?? ????? ???

    Visual Basic 2005 ?? ?? ???? ????????????? ?? ???? ??? ???? ??????? ?? ??? ????? Microsoft ?????? ??????? (MSDN) ??? ???? ?? ????:
    (vs.80) http://msdn2.Microsoft.com/en-us/library/ms379584 .aspx (http://msdn2.microsoft.com/en-us/library/ms379584(vs.80).aspx)
    ????? ???? ?? Windows ??????? ??????? ?? ???? ??? ???? ??????? ?? ??? ????? MSDN ??? ???? ?? ????:
    HTTP://msdn2.Microsoft.com/en-us/library/ms171843.aspx (http://msdn2.microsoft.com/en-us/library/ms171843.aspx)
  2. ????? ???ImageListForm1 ????????? ?????
  3. ???? ?? ??? ???? ????? ????? ??????ImageList???????? ???
  4. Form1 ?? ??? ???????, ??? Form1 ?? ???????? ???? ?? ???? ????? ??? ??????: Visual Basic .NET:
    Public Class someClass
    End Class
    					
    ????? C# .NET ?? ????? J# .NET:
    public class someClass
    {
    }
    					
  5. ????????? ?????? ????? ?? ????????? ??????????? ????? ???
  6. ????????? ?? ?????? ????? ??? ?? ???? "?????" ??? ??? ?????? ?????? ????? ??????? ???? ???

???? ???? ???? ??:
  • Microsoft Visual Basic .NET 2002 Standard Edition
  • Microsoft Visual C# .NET 2002 Standard Edition
  • Microsoft Visual J# .NET 2003 Standard Edition
  • Microsoft Visual C# .NET 2003 Standard Edition
  • Microsoft Visual Basic .NET 2003 Standard Edition
??????: 
kbvs2005applies kbvs2005swept kbprb kbmt KB318603 KbMthi
???? ?????? ???????????? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:318603  (http://support.microsoft.com/kb/318603/en-us/ )