M
Mircea Pleteriu
Hi,
I've created a test aspnet web application which contains one page only.
There is only one label control placed on the page.
The text of the label control is set on server side by the PageLoad method.
The text is stored into a sattelite assembly.
This is the code which sets the text:
CultureInfo ci = new CultureInfo("de-DE");
Thread.CurrentThread.CurrentCulture = ci;
Thread.CurrentThread.CurrentUICulture = ci;
ResourceManager rm = new ResourceManager("WebApplication6.Resources",
Assembly.GetExecutingAssembly());
this.Label1.Text = rm.GetString("test");
Running the app the German text is set as expected.
Now.. the strange behavior.
If I add the element
<identity impersonate="true"/>
to the config file the resource manager fails loading the corrext text. The
german text is not found anymore and the text for the default language is
loaded.
Do you know why it happens? Is there anything I miss?
I've created a test aspnet web application which contains one page only.
There is only one label control placed on the page.
The text of the label control is set on server side by the PageLoad method.
The text is stored into a sattelite assembly.
This is the code which sets the text:
CultureInfo ci = new CultureInfo("de-DE");
Thread.CurrentThread.CurrentCulture = ci;
Thread.CurrentThread.CurrentUICulture = ci;
ResourceManager rm = new ResourceManager("WebApplication6.Resources",
Assembly.GetExecutingAssembly());
this.Label1.Text = rm.GetString("test");
Running the app the German text is set as expected.
Now.. the strange behavior.
If I add the element
<identity impersonate="true"/>
to the config file the resource manager fails loading the corrext text. The
german text is not found anymore and the text for the default language is
loaded.
Do you know why it happens? Is there anything I miss?