Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetManifestResourceStream returns null
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Menus
Title:
GetManifestResourceStream returns null
Miscellaneous
Thread ID:
01165766
Message ID:
01165766
Views:
208
Hi All, I just imported a 1.1 project into a 2.0 solution and whilst it converted and compiled fine, the following line fails with a NullException
Stream myStream = this.GetType().Assembly.GetManifestResourceStream("MenuImageLib.Resources.SubItem16.ico");
the icon referred too is compiled as an "Embedded resource", and if I inspect the assembly using ILDasm.exe it shows this entry
.mresource public MenuImageLib.Resources.SubItem16.ico
{
  // Offset: 0x00000378 Length: 0x0000013E
}
so it definitely is in there ! , any ideas ?

bit more info, this is the result in the immediate window
?this.GetType().Assembly.GetManifestResourceNames()
{Dimensions:[2]}
    [0]: "MenuImageLib.Resources.SubItem16.ico"
    [1]: "MenuImageLib.Properties.Resources.resources"
hope someone knows what's going on ?
Regards,
Peter J. Kane



Pete
Next
Reply
Map
View

Click here to load this message in the networking platform