Public Sub SetItems() Dim assembly As Assembly = Assembly.GetExecutingAssembly '↓この時点でstreamがNothing = 読み込まれていない Dim stream As Stream = assembly.GetManifestResourceStream("SHConvert.XML.CSVLayout.xml") Dim xmlDocument As New XmlDocument() '↓これはエラー(NullArgument) xmlDocument.Load(stream) '↓こっちだとうまくいく xmlDocument.Load("[社内共有フォルダのパス]\CSVLayout.xml") End Sub