G
Guest
I need to localize my ASP.NET app and I just used "Tools" --> "generate local
resources" command and everything works fine in my WebForms.
Resource file name is: MyWebForm.aspx.resx under a subDir named:
"App_LocalResources" inside the App directory.
Now I need to localize some messages my VB app sends to the user. What I'm
looking for is a way to read from a .resx file and get the appropriate
values.
I found some examples like this one:
Dim res As System.Resources.ResourceManager
res = New System.Resources.ResourceManager("ResFilename",
System.Reflection.Assembly.GetExecutingAssembly)
Myname = res.GetString("Myname")
But when I try it, I get this error message:
Could not find any resources appropriate for the specified culture or the
neutral culture. Make sure "ResFilename.resources" was correctly embedded or
linked into assembly "App_Web_fq5sjqk2" at compile time, or that all the
satellite assemblies required are loadable and fully signed.
The file is under the same subDir like others and is named:
ResFilename.resources.resx
resources" command and everything works fine in my WebForms.
Resource file name is: MyWebForm.aspx.resx under a subDir named:
"App_LocalResources" inside the App directory.
Now I need to localize some messages my VB app sends to the user. What I'm
looking for is a way to read from a .resx file and get the appropriate
values.
I found some examples like this one:
Dim res As System.Resources.ResourceManager
res = New System.Resources.ResourceManager("ResFilename",
System.Reflection.Assembly.GetExecutingAssembly)
Myname = res.GetString("Myname")
But when I try it, I get this error message:
Could not find any resources appropriate for the specified culture or the
neutral culture. Make sure "ResFilename.resources" was correctly embedded or
linked into assembly "App_Web_fq5sjqk2" at compile time, or that all the
satellite assemblies required are loadable and fully signed.
The file is under the same subDir like others and is named:
ResFilename.resources.resx