Monday, January 31, 2011

Error in a Custom Site Setting under Site Actions in MOSS 2007



If you have a sharepoint 2007 intranetand one custom site setting under ant tab in the image shown named as "GMT Servive Sttings" for which URL like http://server/_layouts/Clx/NbIntranet/GmtConnection.aspx. It sometime gives an error like this:

it shoows the error in the following way when you try to browse the page"
The resource object with key 'GmtConnection_PageTitleInTitleArea' was not found. at System.Web.Compilation.ResourceExpressionBuilder.ParseExpression(String expression, Type propertyType, ExpressionBuilderContext context) at System.Web.UI.BoundPropertyEntry.ParseExpression(ExpressionBuilderContext context) at System.Web.UI.ControlBuilder.FillUpBoundPropertyEntry(BoundPropertyEntry entry, String name) at System.Web.UI.ControlBuilder.AddBoundProperty(String filter, String name, String expressionPrefix, String expression, ExpressionBuilder expressionBuilder, Object parsedExpressionData, Boolean generated, String fieldName, String formatString, Boolean twoWayBound) at System.Web.UI.ControlBuilder.PreprocessAttribute(String filter, String attribname, String attribvalue, Boolean mainDirectiveMode) at System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection attribs) at System.Web.UI.ControlBuilder.Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs) at System.Web.UI.ControlBuilder.CreateBuilderFromType(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs, Int32 line, String sourceFileName) at System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
Solution for this is:
Make sure your resource file placed in the App_LocalResource and try to make sure that your esource key and file is correct like below:
((asp:Literal ID="Literal1" runat="server" meta:resourcekey="Literal1Resource1" Text="(%$ Resources:Default2, HyperLinkFieldResource1.Text %)")(/asp:Literal)<%$ Resources:Default2, HyperLinkFieldResource1.Text %>
Hope This helps!!!!






No comments:

Post a Comment