Archive

Archive for the ‘Customizations’ Category

SharePoint Memory Leak

February 15th, 2010

As discovered by Todd Carter there is a memory leak in SharePoint 2007.  He has outlined the details as well as a work around to the fix the memory leak.

I decided to do some testing with it, however, when I compiled the dll, placed it into the GAC, and changed my global.asax file, I started getting this error: “Could not load file or assembly ‘[Assembly Name]’ or one of its dependencies.  The system cannot find the file specified.”

After digging into this error for a while I discovered my problem.  This may be fairly obvious to developers out there :) , but coming at this from more of a SharePoint administrator type roll, I missed this one step that isn’t outlined in the steps provided by Todd.

After deploying your dll to the GAC, you need to open up your web.config and place

<add assembly="[Assembly Name], Version=[Version Number], Culture=neutral, PublicKeyToken=[Public Key Token]" />

in the web.config file of the web application you wish to apply your fix to.  This line should be added between <assemblies> and </assemblies> in the web.config file.

All of the information: Assembly Name, Version Number and the Public Key Token can be found by right clicking on your dll in the GAC and viewing the properties of the dll.

Once I added the assembly to my web.config for the web applications I was trying to apply the fix to, everything worked as expected.

Ben Customizations, Development, SharePoint, SharePoint 2007 , , , ,

Hide Web Part Headers with SharePoint 2010

February 1st, 2010

A while a go a write a short post on how to hide web part headers in SharePoint 2007.  Recently I had some inquire how to do the same thing for SharePoint 2010.  So, here is what to do in order to hide a web part header in SharePoint 2010.

1.  Add a content editor web part to your page.

2. Edit the Web Part

3. Click in the content area of the web part, click HTML and select “Edit HTML Source”

4. Put the following code in the web part:

  1. <style>
  2.   TR.ms-viewheadertr > TH.ms-vh2 {
  3.   DISPLAY: none
  4.   }
  5. </style>

 

5. Click “OK”

6. Expand “Appearance” (on the right side of the page)

7. Set the chrome type to “None”

8. Click “OK” and then save and check in your page.

The headers of your web part should now be hidden.  This can be extremely helpful when your page contains a web part using “boxed” for your style when creating a list view.  The only downside to this approach is if you have multiple web parts on a single page, it will hide the headers for all the web parts on your site.

How to do the same thing in SharePoint 2007

Ben Customizations, Development, SharePoint 2010 , ,

SharePoint Designer Free…It wasn’t an April Fool’s Joke

April 6th, 2009

I’m a little late with posting this news, but I figured it never hurts to repeat it and get the information out to as many people as possible.

Yes, you read it correctly, SharePoint Designer is now free.  There were some rumors going around that it was an April Fools Joke by Microsoft, but 5 days later, it is still free, still available for download and definitely not a joke.  Here are some links that I gathered from Microsoft as well as various blogs that relate to SharePoint Designer and how it may effect your current SharePoint implementation.

SharePoint Designer Download

SharePoint Designer for free interview with Tome Rizzo (YouTube)

SharePoint Designer Governance

Locking Down SharePoint Designer in your Organization

Woody Windischman’s Blog Post on the releaseThe guy who wrote the book on SharePoint Designer

Ben Customizations, SharePoint , , , ,

Microsoft releases 10 new SharePoint Themes!

March 19th, 2009

Check out The Mossman’s blog for screen shots as well as the download link on Microsoft’s Site. I am planning on downloading and installing them right after I get done writing this. If you want to go right to the download site, you can get the themes here.

Ben Customizations, SharePoint

Integrating External Document Repositories with SharePoint 2007

February 4th, 2009

Ironic, the day after I publish the link to the Documentum vs. SharePoint article, Microsoft releases an MSN article on integrating the two :) .  So, for more information on how to integrate SharePoint 2007 with external document repository systems, such as Documentum, see the links below:

Integrating External Document Repositories with SharePoint Server 2007

Code for Integrating External Content Repository with SharePoint Server 2007

Scott Hiller (author of the MSDN Article) on Integrating External Document Repositories with SharePoint Server 2007

Ben Customizations, SharePoint

Hide column header in a SharePoint list web part

December 10th, 2008

I was working on a site today and I added a list web part to the site.  I wanted the information to be displayed in two columns so I created a new view using “Boxed, no labels” as the style for the view.  The only problems was the column headers that end up at the top that really don’t make any sense or line up with anything.

image

To remove these annoying headers I used a simple content editor web part.  Instead of using the rich text editor, open up the Source editor and enter the following three lines:

<style>
.ms-viewheadertr { display: none;}
</style>

Under Layout in the Content Editor Web Part check the “Hidden” check box so you’re web part wont’ be seen on your site and click OK.  The column headers will now be hidden from view.

image

This method can also be used to hide and/or change the look of other aspects of your SharePoint site without using SharePoint Designer or making any custom modifications.  Any change can easily be undone or changed by going into Page Edit mode and changing the source in the web part.

How to do the same thing in SharePoint 2010

Ben Customizations, SharePoint