I'm facing an annoying problem when migrating from development to the production server (IIS7 + Windows Server 2008 R2).
We have a bespoke ASP.NET 2.0 which utilizes resource files for different languages.
All works fine on development, but fails on our production server which also hosts SharePoint 2007. The error is below. But just to answer the obvious, the key 'style' does exist in the resx under the App_GlobalResources directory.
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The resource object with key 'style' was not found.
Source Error:
Line 21: <asp:ContentPlaceHolder ID="HeadContent" runat="server">
Line 22: </asp:ContentPlaceHolder>
Line 23: <link runat="server" id="aa" rel="stylesheet" href='<%$ Resources:applang,style %>'
Line 24: type="text/css" />
Line 25: <style type="text/css">
Source File: /Applications/MyApp/Site.master Line: 23
What are we doing wrong here? The site is configured under the Classic .NET AppPool (.NET 2.0 and Classic).