Monthly Archives: March 2011

QuickTip: Audience Targeting and List View Web Parts March 11th, 2011Posted: GrantComments: 4

When piecing together a nice little composite application using SharePoint 2010, you will run into circumstances where you will want to hide certain pieces of the UI (Web Parts). As ASP.NET developers we would simply wrap the specified area in a LoginView control and secure it to display for only the appropriate groups. SharePoint Web [...]

Getting a "Trying to use an SPWeb object that has been closed or disposed" Exception? It’s this line in your custom application.master page March 1st, 2011Posted: JonComments: 0

So there I was, minding my own and pooting forth the little green rosettas on a branding solution for a publishing site, when I encountered the following White Screen of Death error:

“Trying to use an SPWeb object that has been closed or disposed and is no longer valid.”

Take the following line out of your version of application.master, and our mystery error will take its ball and go home…