globalization

G

gh0st54

hi

i can't seem to get my globalization to work

here goes

I use vs 2003
I have a main asp.net application let's call it MainApp
I have created folder 'Resources' for my resx files: strings.resx,
strings.fr-CA.resx, strings.en-CA.resx
the 3 resx files use build action : embedded

when i build the folders fr-CA and en-CA are created in my bin and the
files MainApp.resources.dll are in each folder

here is where it gets ugly

in my page load I have

ResourceManager rm = new ResourceManager
("MainApp",Assembly.GetExecutingAssembly());
Response.Write(rm.GetString("String"));

i must get i to work on the asp.net page and on a control in the same page

i builds fine but when i call the page i get :

Could not fint any resources appropriate for the specified culture or
neutral culture in the given assembly . make sure "MainApp.Resources" was
correctly embedded or linked into assembly "MainApp" ........

Am i using the resource manager properly ?
how can i verify that it was embedded and how can i make sure that when i
build it will be embedded ?

thanks
 
K

Karl Seguin

Try MainApp.strings since that's the name of the file, that's the name it's
given...

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top