Skip to main content

Posts

Code branching in TFS

Being in the IT world we should be always thirsty in learning new things apart from the regular work. In the world of .net , we are using to have a code repository called TFS.    First of all we should know what is TFS?    TFS refers to the Team Foundation Server to which all the development systems would be connected , so that the CODE will have its own house. I will show simple example here The developer needs to  check-in  the code to the TFS server so that when the other developer takes the updates from the TFS, he will get the recently checked-in code, so that he will be having updated code. Before client release, we need to have stable branch of the code which is thoroughly tested and branched as separate version and so that developer can continue check-in the code in the current trunk in the TFS as they complete the developement , so that if there is any bug or issues in the recently checked-in code ,there will not be any probl...

.bat file for stsadm command actions

Hi All,   Most of the time during client deployment , there might be requirement of Re-Activating client related feature to provide the newly built functionality . usually we used to run the stsadm command as stsadm -o activatefeature -name "CLIENT_FEATURE_NAME" -url "SITE_URL" -force Apart from this client related feature, there we need to reactivate some more product related feature which include functionalities such as timerjob, adding content type to the list or adding new columns to the list,etc..In this case we need to enter the stsadm command again and again which makes you damn bore!!!. Here is a solution to over come your "boring" feeling and enjoy the deployment process Open a notepad Paste the following code. I will explain everything below this snippet. @SET pathToStsadm ="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN" @echo off cd % pathToStsadm % echo ------------------------Enter...

Web application in IIS7 is getting stopped everytime

You might have come across situation where the web application is getting stopped every time and you had to do iisreset again and again. The web application gets stopped every time because of some errors and when the error count crosses the error limit, at that time the web application gets stopped. In order to fix this issue i have come across a solution which will never stops the web application by its own. Follow the following steps: Go to Internet Information Services 7(IIS 7) 2.Select the web application 3.Right click on the web application and click on the Advanced Settings. 4.In the Opened window find for " Rapid-Fail Protection ". In this section , the property named " Enable ", set the value to " False ". Thus we can fix this issue. Hope this may help some one Cheers...

Flot Graph is not rendering on IE9

You might have come across a situation when you use jquery.flot.js for graphs ,flot graphs were not generated in IE9 due to the following Javascript Error in "jquery.flot.js" file. While debugging you will get the error like : "unable to get value of the property "init_" : object is null or undefined ". In  the method ConstuctCanvas(), in place of this snippet: ------------------------------------------------------------------------------ function makeCanvas(width, height)       {         var c = document.createElement('canvas');         c.width = width;         c.height = height;         if ($.browser.msie) // excanvas hack           c = window.G_vmlCanvasManager.initElement(c);         return c;       } ------------------------------------------------------------------------------  Use the following snip...

Environment set up for Microsoft SharePoint Foundation 2010 with search server express

In the SharePoint world, Many a times after installing everything including search server express, when you tried to crawl the contents, it may give some nonsense error  and you may not be able to understand what it is. The solution i have come across is , during the installations of required software you have to take care . The search server  express might not be having certain files which is required for search to work properly.  For that you need to install service pack .     Here are the procedure to set up the environment for SharePoint : Download Microsoft SharePoint Foundation from the below link:             http://www.microsoft.com/en-us/download/details.aspx?id=5970      2. Download Search Server express from the below link:            http://www.microsoft.com/en-us/download/details.aspx?id=18914     ...

SharePoint farm backup using PowerShell script

Being SharePoint administrator, taking the backup of farm is the basic need in SharePoint administration. Using the Powershell script we can take the backup of entire SharePoint Farm.  Following is the powershell script to take the backup of entire sharepoint farm           Backup -SPFarm -Directory D:SharePointSIteBackUp -BackupMethod full In the above script,  D:SharePointSIteBackUp is the backup location on hard disk. Here i have create a folder called SharePointSiteBackup inside the D drive. Most important thing is, Do not provide any space or special characters between the words while giving name to the backup folder. Because while running the script, it gives an error. So folder name should be without space.  This may help someone Cheers -Pradeepa Achar

SharePoint site upgrade utility using C#

Hi people,     Recently in my spare time i have developed an windows form application which does SharePoint site up gradation without using either stsadm command or powershell script..  My windows form application looks as follows The functional over view: On click on Load button (1) present at the top , it should load all the Solutions present in the solution repository in the SharePoint central administration and add all the solution names to the dropdown present below the load button(1). private void loadSolBtn_Click( object sender, EventArgs e)               {                      foreach ( SPSolution sol in SPFarm .Local.Solutions)                   ...