Resource File Trouble: mscorlib.resources couldn't be found! Large parts of the BCL won't work!

  • Thread starter Thread starter Josh Blair
  • Start date Start date
J

Josh Blair

Hello,

Has anyone ever run into a problem using resource files that results in the
following error message:

mscorlib.resources couldn't be found! Large parts of the BCL won't work!

I added an additional resource file to my project and load the resource into
a Resource Manager object on form load. I used the explicit path to the
resource by copying it out of ILDASM. The resource appears to load but when
I try to retrieve a string value using GetString and pass it a variable
name, the error above is generated.

If I put these string in my main resource file, everything work just fine.

I found 2 references on google with the same text string:

ASP.NET tutorials, components, links
http://www.123aspx.com/rotor/rotorsrc.aspx?rot=41715

resourcemanager.cs Source File
http://dotnet.di.unipi.it/Content/sscli/docs/doxygen/fx/bcl/resourcemanager_8cs-source.html


--
Josh Blair
Software Developer
(720) 479-3610
(303) 918-3304 Cell
DemandStream
Leading the Lean Generation Worldwide
Americas China Europe India.
(e-mail address removed)
 
Brian,

Thanks for the reply. Your information helped a lot...the problem was a
result of:

1) I loaded the resource in the form constructor after the call to
InitializeComponent()
2) I passed the constructor System.Reflection.Assembly.GetCallingAssembly()
instead of: System.Reflection.Assembly.GetExecutingAssembly()

If I write out the
System.Reflection.Assembly.GetCallingAssembly().ToString(), is gives me the
mscorlib.

You were right. Thanks for your time and information.
--
Josh Blair
Software Developer
(720) 479-3610
(303) 918-3304 Cell
DemandStream
Leading the Lean Generation Worldwide
Americas China Europe India.
(e-mail address removed)
 
Back
Top