FawpepayFut
New Member
We are building a multilingual web application using .NET 3.5. In our application we use explicit localization for our server controls e.g. <asp:localize runat="server" text="<%$ Resources:Controls, Label_FirstName%>" ....The resource files are stored in the App_GlobalRerources special folder and the Build Action of the resource files is set to Embedded Resource. In our dev environment everything works fine. After we publish the site to the production server we are getting the "The resource object with the key '....' was not found at System.Web.Compilation.ResourceExpressionBuilder.ParseExpression ... " message for the resources that we bind to the server controls using the above manner. (Note, satellite assemblies for each language are correctly created and located under the bin folder of the application).After a lot of tests we finally changed the Build Action of the resource files from 'Embedded Resource' to 'Content'. Then after we published the application to the production server the App_GlobalResources folder and the (xml) resource files were published also, and no error (related to resources) is occurring any more.Is this the only way to publish resources when using explicit localization for server controls? If not, then is there any configuration setting that we may use in order to keep the App_GlobalResources folder and its contents out of the publishing procedure and the production server? Thanks in advance,George.