Monday, November 15, 2010

Increase of Usage Statistics - RackSpace Cloud Sites

I have read this article before but could not find out the reason until today.
http://www.webhostingtalk.com/showthread.php?t=982054

My Boss just asked me to find out the reason for the huge difference between the statistics of the two reports. One from Google Analytics and another from Rackspace Cloud Site - Web Stat 6.

After couple of hours, the cause was successfully identified. RackSpace (Urchin) was counting Search Engine Hits (googlebot, msnbot etc) as a Visits / Views. The actual user visits can be estimated from Web Browser Report / Platform Report.

Wednesday, November 3, 2010

Steps To Install WSP file in STSADM

All the commands for deploying the wsp through stsadm

1. Add the solution
stsadm -o addsolution -filename {WSPFILENAME}
2. Deploy the solution
stsadm -o deploysolution -name {WSPFILENAME} -url {SITEURL}
3. Install the feature
stsadm -o installfeature -filename {FeatureFolder}\feature.xml
4. Activate the feature
stsadm -o activatefeature -id {FEATUREID} -url {SITEURL} -force
5. Deactive the feature
Stsadm.exe -o deactivatefeature -filename “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\ViewFormPagesLockDown\feature.xml” -ur http://servername/
6.Uninstall the feature
stsadm -o uninstallfeature -filename
7.Retract Solution
stsadm -o retractsolution

-name

[-url]

[-allcontenturls]

[-time]

[-immediate]
8.Delete Solution
stsadm -o deletesolution

-name

Reference:
http://littletalk.wordpress.com/2008/12/16/steps-to-install-wsp-file-in-stsadm/

How to Create the Event Handlers

Here is a nice article about how to create Event Handlers.

The event handlers can be attached to Site, List or Contenttype. The advantage with the content type is this that every time you create the instance, the events are automatically activated with new spawn.

Three ways to create Event Handlers.
1. Create it by Code i.e SPEventReceiver
(use Lutz Roders Reflection app for extracting class names)
(3 parameters: SPEventReceiverType, AssemblyName, ClassName)
(Sequence Number: use sequence number after 10,000. SP uses after 1000)
2. Create it by Feature. (wsp file. needs to be activated at every spawn)
3. Through Custom Site Setting - (Developed by : Brian Wilson)
(You can add, delete, edit events on site, list and content type level)

For more Details, visit Brian Wilson - Event Handlers

Monday, November 1, 2010

Sharepoint - Event Handlers

A very nice article by Andreas Finne on "SharePoint Event Handler Gotchas"

http://labs.ecraft.com/Blogs/SharePoint-Event-Handler-Gotchas