SPTraceView - Easy overview of the SharePoint logs (ULS logs)

Author: Tobias Zimmergren http://www.zimmergren.net | http://www.tozit.com | [@zimmergren](http://www.twitter.com/zimmergren) Introduction If you are a SharePoint developer, you often need to dig into the logs in the 12-hive in order to find out why things are behaving the way they are. You and me both know that this can be a pain in the buttocks if you don’t have an appropriate tool to read the logs with. I’ve been trying out around 10 different log viewers, including SharePoint-specific log viewers, in order to save some time reading the logs. What I…

Read More

Debugging your code execution for anonymous users in SharePoint

Author: Tobias Zimmergren URL: http://www.zimmergren.net Introduction Often when developing solutions that has anonymous users enabled, it can be hard to debug them from your local machine – because when you reach a point in your code where permissions higher than anonymous is required, SharePoint automatically tries to identify the user. This means that if you’re running local development, and is browsing as an anonymous user – everything can be fine until you hit a line of code in your application that requires authentication, you are then automatically logged in. This makes it rather hard for anyone to truly…

Read More

Recover/fetch the Application Pool password

Author: Tobias Zimmergren URL: http://www.zimmergren.net Introduction Alright, so we’ve had a few discussions lately regarding securing your SharePoint environments. Not only did I have a discussion about this when I were conducting SharePoint training last week, but we also covered the aspect which is a base for this article: The Application Pool Password is stored in Clear Text. If you read this article and the code associated, you’ll see how unsafe it can be to run your Application Pool accounts with too much permissions – which leads us in to the discussion about running a least-privileged…

Read More

WSS and MOSS: Service Pack 2 Released Today!

Author: Tobias Zimmergren URL: http://www.zimmergren.net Introduction Previous major updates for SharePoint related technologies has been: Service Pack 1 Infrastructure Updates Misc. Rollups Today – as promised – Microsoft released the next set of updates called Service Pack 2. For an overview of major updates and rollups/cumulative updates post SP1, check out my mate Spence’s awesome blog here: http://www.harbar.net/articles/postsp1.aspx The new WSS 3.0 SP2 brings this to the table: Quoted from the Microsoft sites in the links section below! Some big areas of the improvements that the Windows SharePoint Services team…

Read More

How to: Programmatically remove a Field (SPField) from a view (SPView)

Author: Tobias Zimmergren URL: http://www.zimmergren.net Introduction This is yet another very simple example of a question I’ve been getting over and over the past couple of months through comments and emails – instead of answering it each time in the mail, I’m simply shooting it out here. Deleting a Field from a View programmatically Alright, here’s a good starting point for you to check out if you simply want to remove a field from the view. Simple as that. SPList list = SPContext.Current.Web.Lists["MyAwesomeList"]; SPView view = list.Views["MyView"…

Read More

How to: Upload a file/document using the SharePoint Object Model

Author: Tobias Zimmergren URL: http://www.zimmergren.net Introduction I’ve been getting a couple of requests to provide details on how you can upload a file or document using the SharePoint Object Model, instead of using the UI. With this simple article, I’m walking you through the process of uploading any file to your Document Library. Note; Since this is done through the local API, you need to have this code running on the server. That means that it’s ideal to use in for example a FeatureReceiver or EventReceiver. You cannot run this code on the client…

Read More

WSPBuilder - Walkthrough of the Visual Studio Add-in

Author: Tobias Zimmergren http://www.zimmergren.net Introduction Alright. People have approached me lately and asked me if I could give them a brief introduction to the WSPBuilder extensions available for Visual Studio. Instead of taking all those discussions on one by one, I’ve decided to document some of the main features here. If I’m missing out on something, please let me know and I’ll fill it up. Bil Simser did a survey with the SharePoint MVP’s and summarized the foremost favorite CodePlex projects in this article. In this article I will cover one of my…

Read More