Meron Fridman's Blog

August 2006 - Posts

Cool tip - how to increase the size limitation while you save site as template include content in MOSS 2007

In Sharepoint 2003 there is silly hard-coded limitation while you wish to save site as template include the content. The template is limited to 10MB!!!

In MOSS 2007 you can change that limit using stsadm execute the following command :

stsadm -o setproperty -pn max-template-document-size -pv 40000000

(where max-template-document-size is in Bytes)

Cool...

Best Practices: Using Disposable Windows SharePoint Services Objects

How to write your code when using Microsoft Windows SharePoint Services objects so that you can avoid retaining the objects in memory with the Microsoft .NET Framework.

Coding Techniques

You can take advantage of certain coding techniques to ensure that objects are disposed of. These techniques include using the following in your code:

  • Dispose method
  • using clause
  • try, catch, and finally blocks

The following code provides an example of usage of using clause that  automatically dispose of SharePoint objects.

String str;

using(SPSite oSPsite = new SPSite("http://server"))
{
  using(SPWeb oSPWeb = oSPSite.OpenWeb())
   {
       str = oSPWeb.Title;
       str = oSPWeb.Url;
   }
 

The following code provides an example of usage of try, catch, and finally blocks:

String str;
SPSite oSPSite = null;
SPWeb oSPWeb = null;

try
{
   oSPSite = new SPSite("http://server");
   oSPWeb = oSPSite.OpenWeb(..);

   str = oSPWeb.Title;
}
catch(Exception e)
{
}
finally
{
   if (oSPWeb != null)
     oSPWeb.Dispose();

   if (oSPSite != null)
      oSPSite.Dispose();
}

View the following article to get more details about best practices of using WSS object module:
כל מה שרצית לדעת על WCM ב-MOSS 2007 והתביישת לשאול...

Andrew Connell פרסם בבלוג שלו רשימה נהדרת של מקורות מידע על  Web Content Management (WCM) ב-Sharepoint 2007.

 

Web Content Management Links and Resources

Microsoft Office System Developers Conference 2006 Videos

 למעלה מ-60 הדרכות ומצגות מעולות 

http://msdn.microsoft.com/office/learn/conferences/

The Microsoft Office System Developers Conference featured more than 60 breakout sessions organized in eight technical tracks. Watch these videos and learn how to build solutions using the 2007 Microsoft Office system.


  • Client Development

    Create powerful and integrated solutions using managed add-ins, application task panes, and a new task-oriented user interface.   

  • Business Intelligence

    Build smart client and browser-based BI solutions leveraging a wide array of extensible capabilities.   

  • Solutions and Partners

    Industry experts show you how to integrate Office clients, servers, services, and tools to build real world solutions.   

  • Enterprise Project Management

    Project 2007 introduces a rich new server-based interface built on the Windows SharePoint Services platform.


  • Windows SharePoint Services Platform

    Get a comprehensive baseline for building solutions on the broad SharePoint infrastructure.   

  • Collaboration

    Create powerful tools that help individuals work together to solve problems and achieve broad objectives.   

  • Enterprise Content Management

    Focus on the new, extensible content management capabilities coming with the 2007 Microsoft Office system.   

  • Portals

    Customize search capabilities, build custom portal interfaces, and aggregate connections to line-of-business data.