PC Review


Reply
Thread Tools Rate Thread

Bug in System.Reflection.Assembly.GetManifestResourceStream(String)

 
 
schneider
Guest
Posts: n/a
 
      23rd Aug 2005
There seems to be a Bug in
System.Reflection.Assembly.GetManifestResourceStream(String)

If you call it from a Shared (Static in C#) user method it fails but does
dont throw an exception, change the user method to non shared/static it
works. I think its a security check its failing on. Would have saved me some
time if it just threw an exception rather than eating it.

Oh: MSF Ver: 1.1

Thanks,

Schneider


 
Reply With Quote
 
 
 
 
schneider
Guest
Posts: n/a
 
      23rd Aug 2005
Also the method does not raise an exception when a resource is not found, so
you don't know specificly why it failed.


"schneider" <(E-Mail Removed)> wrote in message
news:uhfdBM$(E-Mail Removed)...
> There seems to be a Bug in
> System.Reflection.Assembly.GetManifestResourceStream(String)
>
> If you call it from a Shared (Static in C#) user method it fails but does
> dont throw an exception, change the user method to non shared/static it
> works. I think its a security check its failing on. Would have saved me

some
> time if it just threw an exception rather than eating it.
>
> Oh: MSF Ver: 1.1
>
> Thanks,
>
> Schneider
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems loading assembly using System.Reflection.assembly TheVillageCodingIdiot Microsoft VB .NET 0 16th Jul 2009 05:32 PM
Problems loading assembly using System.Reflection.assembly TheVillageCodingIdiot Microsoft Dot NET Framework 1 15th Jul 2009 07:34 PM
Where is System.Reflection.dll assembly? groovyjman21@gmail.com Microsoft C# .NET 3 13th Dec 2006 08:51 PM
System.Reflection.Assembly.GetExecutingAssembly() =?Utf-8?B?UGF0cmljaw==?= Microsoft Dot NET 1 29th Dec 2005 02:19 AM
System.Reflection.Assembly.GetExecutingAssembly Greg Bell Microsoft VB .NET 2 18th May 2005 09:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:17 AM.