Skip to main content

Posts

Showing posts with the label SharePoint Server 2010

Enable Session State In Sharepoint 2010 Application

Enable Session State In Sharepoint 2010 Application Step 1 Commands for Session State Management  Cmdlet name Description Disable-SPSessionStateService Turns off the session state service on the farm Dismount-SPStateServiceDatabase Removes the association to a state service database from the farm without dropping the database in the Microsoft SQL Server database Enable-SPSessionStateService Creates a session state database and turns on the session state service Get-SPSessionStateService Returns the properties of the session state service, including time-out and database settings Get-SPStateServiceApplication Returns state service applications on the farm Get-SPStateServiceApplicationProxy Returns state service application proxies on the farm. Get-SPStateServiceDatabase Returns a state service database. Initialize-SPStateServiceDatabase Installs the state database schema into a state service database Mount-SPStateServiceDatabase...

Creating Custom Timer Job in SharePoint 2010

Open Visual Studio 2010 >File > New >Project >SharePoint 2010>Empty SharePoint Project. >Name it Custom_TimerJob>Ok Check Deploy as farm solution>Finish create a class that inherits from the Microsoft.SharePoint.Administration.SPJobDefinition class. To implement this class, you need to create a few constructors and override the Execute() method as following 01 namespace DotnetFinder 02 { 03      class ListTimerJob : SPJobDefinition 04      { 05           public ListTimerJob() 06 07              : base () 08          { 09 10          } 11 12          public ListTimerJob( string jobName, SPService service, SPServer server, SPJobLockType targetType) ...