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!!!!






A tribute to my friend!

A tribute to my friend Nimit Verma, nick-named captain Dhoni!
A beloved attribute, coined by Amandeep Maan without a single penny!
Dwells in the himalayan adventure, Fauna and flora makes surrounding prosper!
Does he have any thing to append? no, doesn't have anything to pretend!
A lad with frisk emotions, needs lots of attentions!
He is obsessed with internet money, dollars are proportional to sweet honey!
We met in communication skills training, where humorous jokes were raining!
Although a silent spectator, applauded for being comfortable adapter!
Sometime sad, sometime sorrow, always says do not borrow!
Sometimes distressed sometimes deeply distressed, perhaps bothering something obsessed!
Software feeds him for managing Active directory(AD), wants to dive into other Tech-factory!
Excited about learning SharePoint as sweet bun, because equivocal about AD in the long run!
Moderately devoid of listening power in debate, needs to be hovered to concentrate!
Fond of Bollywood songs like a bookie, his taste seems like he is a rookie!
Merely abusive from his tongue, uncharacteristic if his head is swung!
Bought a new Maruti Alto Car, may be our first trip is Gange's bank in Haridwar!
Don't like to go to bar,his punchline echos "being at home is above par"!.
Optimistic about his future, his passion will assist to nurture!
Making of a trusted friend Indeed, Thus unequivocal about his deed!
It will flourish under the shade of life, healthy Wishes for his desire for a lovely wife!
Relations do not need premeditated possessions, it bridges on confessions!
This will go on... and go on....,we need to move on....and move on...........!!

Friday, January 28, 2011

Copy a site to new site collection/cross site collection

When you increase the maximum size of a list/site template by running following STSADM operation e.g 50 MB:
stsadm -o setproperty -propertyname max-template-document-size -propertyvalue 50000000
However, After this operation you may encounter another error when trying to save the template: 'Failure decompressing data from a cabinet file'.
The resolution to this is to use stsadm to do the export (and subsequent import), and specify the attribute -nofilecompression
first take the backup of the site by following operation:
stsadm -o export -url http://yoururl/youroldsite -includeusersecurity -nofilecompression -filename C:\yourdirectory\myfile.bak
If site collection is not available already in the existing farm then create the site collection by choosing the same site template whose backup you have taken above by exporting the content or else it will give error. The same operation also works for cross site collection also Like you can copy the entire site collection http://server/sites/globalIT to new site collection http://server/sites/globalITtest or even http://server1/sites/globalittest.
stsadm -o import -url http://yoururl/yournewsite -includeusersecurity -nofilecompression
-filename C:\yourdirectory\myfile.bak
After some time, the command window will show the "operation completed successfully" once all the contents are imported successfully.