Global resources for additional cultures being ignored on ASP.NET web app
<p>I have this ASP.NET web application that I am developing with Visual Studio 2015 and .NET 4.6.1. I make extensive use of local and global resources to localize my app into English (default), Spanish and Galician. On my development machine, which uses IIS Express, everything works fine. But when I publish the web app to our production server, which uses IIS 7 on Windows Server 2008, the Spanish global resources are ignored, and only the default English as well as Galician are used.</p>

<p>I am publishing the web app through the "file system" method of Web Publish. As far as I can see, no <code>.resx</code> files get deployed for global resources; instead, files named <code>App_GlobalResources.resources.dll</code> get deployed into the <code>bin</code>, <code>bin/es</code> and <code>bin/gl</code> folders. In addition, a <code>MyNamespace.resources.dll</code> file is deployed to <code>bin/es</code> but not <code>bin/gl</code>, which is very odd.</p>

<p>I must also say that I am switching cultures in my code by setting <code>Thread.CurrentThread.CurrentUICulture</code> to a <code>CultureInfo</code> object based on either <code>en-GB</code>, <code>es-ES</code> or <code>gl-ES</code>.</p>

<p>I have tried naming the global resource files in my code by using neutral (for example, <code>gl</code>) and localised (for example, <code>gl-ES</code>) forms of the culture codes. This does not seem to make any difference. Also, local resource files are named by using neutral variants.</p>

<p>Any ideas why the Spanish global resources are being ignored? Thanks.</p>