Archive

Archive for the ‘Development’ 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 support in Visual Studio 2010

February 20th, 2009

Somasegar’s WebBlog post, http://blogs.msdn.com/somasegar/archive/2009/02/19/sharepoint-tools-support-in-visual-studio.aspx;, gives a great preview of the increased and additional support for SharePoint in the next release of Visual Studio

Ben Development, SharePoint , , ,

Visual Studio 2008 Extensions for SharePoint, v1.3 Feb. CTP

February 20th, 2009

The February 2009 CTP of the Visual Studio 2008 Extensions for Windows SharePoint Server v3 have been made available for download. You can get them from http://www.microsoft.com/downloads/details.aspx?FamilyID=b2c0b628-5cab-48c1-8cae-c34c1ccbdc0a&DisplayLang=en

Ben Development, SharePoint

Vegas!! (and the SharePoint Conference 2009)

February 3rd, 2009

Again, EVERYONE is blogging about this, so I had to make my heading a little different.  Once again, in case you missed it, SharePoint Conference 2009 is in Vega this year.  It will be October 19 – 22.  It is for IT Professionals, IT Decision Makers, Architects and Developers with a plethora of classes for everyone.

According the Microsoft’s own site, “SharePoint Conference 2009 will be the conference to learn about SharePoint “14”."”

Register for the conference and get the early bird price!

Ben "Office 14", Conferences, Development, SharePoint

SharePoint Dispose Checker Tool

February 3rd, 2009

Ok, so I know everyone that is involved in SharePoint in some way and has a blog has written about this, but just in case you missed it…Microsoft has released the SharePoint Dispose Checker Tool.  The official announcement on the SharePoint Team Blog can be read here.  It is a great tool and is extremely useful for those of you developing SharePoint assemblies and making sure you are properly disposing of all your objects.  You can download the tool here.

Ben Development, SharePoint