Article ID: 903902 - View products that this article applies to.
When you use the Thread.CurrentUICulture property in Microsoft ASP.NET, the resource manager may not retrieve culture-specific resources as expected. For example, the resource manager may only retrieve the default resources.
Additionally, you may receive an error message that is similar to the following if you rename the default resources to be culture-specific:
Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly.
This issue occurs when the following conditions are true:
To resolve this issue, use one of the following methods.
Method 1: Use the ReverttoSelf function in the application codeTo use the Thread.CurrentUICulture property, use the ReverttoSelf function in the application code. For example, use code that is similar to the following in ASP.NET:
Method 2: Configure the permissions on the temporary ASP.NET folderGive the impersonated identity Write and Modify permissions on the Temporary ASP.NET Files folder.
To work around this issue, turn off impersonation in the application.
If impersonation is used in the application, the culture-specific resource DLL files are shadow copied to the Temporary ASP.NET Files folder by using the impersonation token when the files are loaded. If the impersonated identity does not have the correct permissions on the Temporary ASP.NET Files folder, the shadow copy operation fails.
If impersonation is not used in the application, the process identity is used, and the shadow copy operation works as expected.
Contact us for more help
Connect with Answer Desk for expert help.