keep track and sharing on my sharepoint knowledge :) nice to meet you all
which country user step here?
Tag Cloud
Monday, August 23, 2010
Utility to quickly reapply themes to sites collection
now the problem come in …we have so many sites and subsites how going to get it done? as you know we need to reapply the theme then the CSS only take effect.
Luckily have some good utility tool at coplex , is so call retheme.exe.
this help a lot, you can download it from CodePlex.
Below is the coding from the Codeplex reTheme :)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
namespace reTheme
{
class Program
{
static void Main(string[] args)
{
string siteUrl;
if (args.Length == 0)
{
Console.Write("Site Collection URL:");
siteUrl = Console.ReadLine();
}
else
{
siteUrl = args[0];
}
try
{
using (SPSite site = new SPSite(siteUrl))
{
foreach (SPWeb web in site.AllWebs)
{
Console.Write(web.ServerRelativeUrl + ": ");
try
{
string themeName = web.Theme;
web.ApplyTheme("");
web.ApplyTheme(themeName);
Console.WriteLine("OK");
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
}
}
Wednesday, July 14, 2010
SPDisposeCheck.exe > check the coding have memory leaking or not
this tool can help us to detect the code , dll , cs and etc file have any possible memory leak coding use or not, since majority administrator and engineer not really have developer skill so we need to make sure the customization going to deploy to our sharepoint environment is safe and will not impacted our environment performance.
Download here > http://code.msdn.microsoft.com/SPDisposeCheck
more explain here > http://jomit.blogspot.com/2009/01/disposing-sharepoint-2007-and-wss-30.html
how to use?
after install then go to the .exe path and run the command as below :
C:\Program Files\Microsoft\SharePoint Dispose Check>SPDisposeCheck.exe xxx.dll
Ok you will see the report.
Wednesday, May 26, 2010
SharePoint Dispose Checker Tool
Resource Page Description
SPDisposeCheck is a tool to help you to check your assemblies that use the SharePoint API so that you can build better code. It provides assistance in correctly disposing of certain SharePoint objects to help you follow published best practice. This tool may not show all memory leaks in your code. Further investigation is advised if you continue to experience issues.
SPDisposeCheck.exe takes the path to a managed .DLL or .EXE or the path to a directory containing many managed assemblies. It will recursively search for and analyze each managed module attempting to detect coding patterns based on the MDSN article.
The SPDisposeCheck tool can be downloaded here.