Archive for July, 2009
Running Code with Elevated Privileges
During custom development in Sharepoint, sometimes your code must call restricted methods within the Windows SharePoint Services object model even though the request is initiated by a non privileged user. In such cases you must be able to elevate the privilege of your code as it executes on web server. Meaning, instead of your code [...]
How to log errors to SharePoint Log file
When you work with share point custom code development such as Web parts, Features, Event Handlers, and Workflows etc., you can use the Sharepoint built in logging mechanism to log the errors instead of creating custom logging mechanism.
In SharePoint, log files are located at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOG
To log errors/messages/exceptions to the [...]
MOSS 2007 limitations list for acceptable performance
If you are planning for big Sharepoint (MOSS 2007) Implementations, consider these limitations and guidelines for the best Sharepoint (MOSS 2007) Implementation.
The following table lists the recommended guidelines for site objects.
Site object
Guidelines for acceptable performance
Scope of impact when performance degrades
Site collection
50,000 per content database
Farm
Site collection
150,000 per Web application
Farm
Web site
250,000 per site collection
Site collection
Subsite
2,000 per Web [...]
