GetManifestResourceStream returns NULL!!!

  • Thread starter Thread starter Arthur Roodenburg
  • Start date Start date
A

Arthur Roodenburg

Hello,

I have an Assembly containing the resource "MyResource.xml" in folder
"MyFolder".
I compiled my Assembly and, according to ILDASM and
GetManifestResourceNames(), the assembly contains
"MyNameSpace.MyFolder.MyResource.xml"

When I call
GetManifestResourceStream("MyNameSpace.MyFolder.MyResource.xml"), the
function returns NULL. What am I to do?

Greets,
Arthur
 
Sounds like this is a non-public ManifestResource, and your code does not
have reflection permission. Try changing it to public.

Suzanne Cook
My .NET CLR Loader blog: http://blogs.gotdotnet.com/suzcook/
--
Please do not respond directly to this alias. This alias is for newsgroup
purposes only. This posting is provided "AS IS" with no warranties, and
confers no rights.


"Arthur Roodenburg"
 
Back
Top