I have been developing an application in classic ASP.NET and deploying it to azure. Until now, no problem at all. Now I want to add localized resources to support multi-language.
The App_GlobalResources/*.resources files works fine when running local, both outside and inside the azure emulator. But when I try to use them in Azure, I'm getting the following error:
Could not find any resources appropriate for the specified culture (or the neutral culture) on disk. baseName: SistemaRRHH.Signup.SignupLabels locationInfo: fileName: SistemaRRHH.Signup.SignupLabels.resources.
The exception is very self-explanatory, buy I can't solve it in any way.
The exception is thrown here:
var requestCultureInfo = new CultureInfo(Utils.GetRequestFirstLanguageAccepted(Request.Headers["Accept-Language"]));
ResourceManager rm = ResourceManager.CreateFileBasedResourceManager(Constants.RESOURCE_FILE_LABELS_NAME, HttpContext.Current.Server.MapPath(Constants.RESOURCE_FILE_DIRECTORY), null);
letsGetItStartedLabel.Text = rm.GetString(Constants.LETS_GET_IT_STARTED_LABEL, requestCultureInfo);
Thanks a lot for your help!