Recently I came across a requirement to write logs in Sharepoint log files. Add Microsoft.Office.Server dll in your project, you can find this dll under “\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\”. The log files are found under \Common Files\Microsoft Shared\Web Server Extensions\12\Log\. Following line of code is used to write exception in sharepoint default log file. [...]
Archive for the ‘Sharepoint’ Category
How To Write In Sharepoint Log File
Posted in Sharepoint, Technology, tagged Logs, MOSS 07, PortalLog, Sharepoint, Sharepoint Log on May 16, 2009 | 3 Comments »
Embedding Web Part Resources
Posted in Sharepoint, Technology, tagged MOSS, Webpart, Webpart Resources on April 21, 2009 | Leave a Comment »
Today I came across a requirement of showing an swf file in the webpart. So I thought I will upload the swf file in folder and give its url to the webpart. But then that will be hardcoded path. What will happen if the user deleted that folder or rather deleted that file itself? So [...]
Impersonation in Sharepoint 07
Posted in Sharepoint, Technology, Visual Studio, tagged Impersonation, MOSS, Sharepoint on March 19, 2009 | 7 Comments »
Often will you come across a situation where we need to write in a document library or a custom list through code. As a new bee to sharepoint we start implementing the code and try executing it, it works fine for user who has Full Control,but fails for user who has limited permission. So to [...]
