471,353 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,353 software developers and data experts.

a resource question

Hello,

I am attempting to localise my application in two stages. For now, I am
just creating strings in a resx embedded file to be used as the default.
I have a string called TestString in this file.

When running I get a System.Resources.MissingManifestResourceException
Additional info: Could not find any resources appropriate for the
specified culture (or neutral culture) in the given assembly. Make sure
"MyStrings.resources" was correctly embedded or linked into assembly
"StringTest".
baseName: "TestApp.StringTest" locationInfo: <null>
etc

my class is in PhilsTestApp.StringTest name space. I used MyStrings in
the call to the ResourceManager constructor because most of the
tutorials on the net use this.

Code:

ResourceManager res=new ResourceManager("TestApp",
Assembly.GetExecutingAssembly());

string test=res.GetString("TestString");

Help!!!!
Jul 21 '05 #1
0 744

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by John Perks and Sarah Mount | last post: by
8 posts views Thread by Bonj | last post: by
2 posts views Thread by Joe Thompson | last post: by
3 posts views Thread by Kelmen Wong | last post: by
1 post views Thread by mehdi_mousavi | last post: by
1 post views Thread by John | last post: by
7 posts views Thread by craig | last post: by
reply views Thread by =?Utf-8?B?UGF1bCBIYWdlcg==?= | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.