-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: vishnuvr
Message 1 in Discussion
Hi Guys, Iam using resource files(satellite assembly) for my application, iam getting
following error... "System.Resources.MissingManifestResourceException: Could not
find any resources appropriate for the specified culture (or the neutral culture) in
the given assembly. Make sure "LoggingTest.resources" was correctly embedded or linked
into assembly "LoggingTest.resources". baseName: LoggingTest locationInfo: <null>
resource file name: LoggingTest.resources assembly: LoggingTest.resources,
Version=1.0.1670.36065, Culture=en-US, PublicKeyToken=null"
Initially i created folder called "en-US" in my applications bin directory, and after
that i added localization.en-US.resx Resource (Resx) file to that..
I created resource file using resgen like
resgen localization.en-US.resx MyApp.localization.en-US.resources
//where MyApp is my namespace of my application
and its creating the resource file
after that i created the satellite assembly like this
al /t:lib /culture:en-US /embed:MyApp.localization.en-US.resources
/out:localization.resources.dll
After this if i try to access this assembly in my App its throwing the abvove error
This is how i am calling my assembly in my code
rm = new
ResourceManager("LoggingTest",Assembly.GetExecutingAssembly().GetSatelliteAssembly(ci));//Assembly.GetExecutingAssembly().GetSatelliteAssembly(ci));//typeof(ContactDetails).Assembly);//Assembly.GetExecutingAssembly().GetSatelliteAssembly(ci));
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");//,false);
lblHeader.Text = rm.GetString("en-US");
can u guys plz tell me where iam gng wrong over here
Thanks
-Vishnu
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]