SharePoint

SPDispose or not to SPDispose

Roger Lamb has posted an article about SharePoint objects, which must not be disposed. He also wrote about changes to SP 2010 regarding disposing objects. SPContext.Current.Site SPContext.Current.Web SPContext.Site SPContext.Web SPControl.GetContextWeb(..) SPControl.GetContextSite(..) SPFeatureReceiverProperties.Feature.Parent SPItemEventProperties.ListItem.Web SPList.BreakRoleInheritance() Do not call list.ParentWeb.Dispose() SPListEventProperties.Web SPListEventProperties.List.Web SPSite.RootWeb Problems may occur when SPContext.Web has equality to the SPContext.Web.. make sure you dispose of SPSite and it will cleanup sub webs automatically SPSite.LockIssue SPSite.Owner SPSite.SecondaryContact SPWeb.ParentWeb SPWebEventProperties.Web More on his blog: http://blogs.

Installing SharePoint 2010 on Windows 7

I guess everybody knows by now. But if not: The beta 2 of Visual Studio 2010 brings SharePoint Development tools as an option. After all the Videos and Screencasts about SP 2010 development, I wanted to try it myself. So I installed VS 2010 on my notebook. An SQL Server 2008 has already been installed. I’ll skip that part as well. So here we go… Oh. Did I say thank you to you MS guys for supporting SP 2010 on Windows 7?

More on SharePoint 2010

Here is some more news for you: Public Beta available SharePoint Foundation 2010 (Windows SharePoint Services 2010 Beta) Microsoft SharePoint Server Enterprise 2010 Beta SharePoint Designer 2010 Beta (x64) More on the SharePoint Team Blog Installation Notice for SharePoint 2010 Public Beta Installation Notes for Microsoft SharePoint Server and Microsoft SharePoint Foundation 2010 Beta (with links to additional requirements like Microsoft “Geneva” Framework Runtime…) Upgrade Support for Prerelease Versions to Release Versions of Microsoft SharePoint Server and Microsoft SharePoint Foundation 2010

SharePoint Konferenz 2010, ich bin dabei

Auch im nächsten Jahr ist die SharePoint Konferenz wieder in München. Und zwar am 24.-25. Februar 2010. Mit einer Session zum Thema “BCS und SharePoint auf dem Client” bin auch ich wieder mit dabei. Der Business Data Catalog heisst jetzt Business Connectivity Service. Daten können nun nicht nur von anderen Datenquellen gelesen, sondern auch zurück geschrieben werden. SharePoint auf dem Client? Aber nicht mit Webservices, sondern mit einem kompletten Objektmodell.

Beta?

Yes! The beta is available via MSDN 🙂 What beta? –> http://msdn.microsoft.com/en-us/subscriptions/subscription-downloads.rss Office Search Server Express 2010 Beta (x64) – (English) Office SharePoint Server 2010 Beta (x64) – (English) Office SharePoint Foundation Server 2010 Beta (x64) – (English) Office Web Applications 2010 Beta (x64) – (English) FAST Search Server SharePoint 2010 Beta (x64) – (English) Office SharePoint Designer 2010 Beta (x86 and x64) – (English) and Office Client Applications

SharePoint 403.1

Take a look. To get more “content” of this type, go to [http://www.sharepointcomic.com/archive/tags/SharePoint%20Comic/default.aspx][1] btw: Dan is using the CKS:EBE for his blog with a great theme. Well done! [1]: http://www.sharepointcomic.com/archive/tags/SharePoint Comic/default.aspx “ http://www.sharepointcomic.com/archive/tags/SharePoint%20Comic/default.aspx"

AllowWindowsClientInstall

<Setting Id="AllowWindowsClientInstall" Value="True"/> That is the magic line. It will allow us to install SharePoint Foundation/Server 2010 on Vista and Windows 7 (both x64). The only missing part is the public beta 🙁 Setting Up the Development Environment for SharePoint Server: http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx

SharePoint 2010 news

SharePoint Services are now “SharePoint Foundation 2010” SharePoint Foundation 2010 General Reference on MSDN Any much more… But there are plenty of other bloggers out there (at the SharePoint Conference). A good place to start with their posts is here: http://www.planetsharepoint.org/

CodePlex project

Today I’ve created a CodePlex project for some of my SharePoint developments. Interesting to see what I’ve done so far 🙂 The link is http://renehezser.codeplex.com/ Webparts [Access Fileserver Data via SharePoint][3] [Display all my alerts][4] [Webpart to show Sitecollections/Subwebs][5] [TagCloud Webpart][6] [Display a single ListItem][7] Custom Fields [Upload Files and Images][8] Features [.NET 3.5 and Silverlight][9] Control Adapter [Navigation for Wikis][10] Event Handler [Picture Library and Exif data][11] [EventHandler which sends an Email for new/changed items][12] Tools

Disable Loopback Check?

A while ago Microsoft released an update, which prevents that you can log on locally to a website which has a FQDN. To resolve issues with e.g. the crawling a KB article has been published. You receive error 401.1 when you browse a Web site that uses Integrated Authentication and is hosted on IIS 5.1 or a later version You can disable the loopback check completely, or just for the used FQDNs.

Get Central Administration Webapplication

With this code you can get the central administration webapplication. 1: private static SPWebApplication GetCentralAdministrationWebApplication() <span class=lnum> 2: </span>{ 3: SPWebService cS = SPWebService.ContentService; <span class=lnum> 4: </span> var service = cS.Farm.Services.GetValue<SPWebService>(<span class=str>"WSS_Administration"</span>); 5: SPWebApplicationCollection webApplications = service.WebApplications; <span class=lnum> 6: </span> <span class=kwrd>foreach</span> (SPWebApplication webApplication <span class=kwrd>in</span> webApplications) 7: { <span class=lnum> 8: </span> <span class=kwrd>return</span> webApplication; 9: } <span class=lnum> 10: </span> <span class=kwrd>return</span> <span class=kwrd>null</span>; 11: } If you have a better way, let me know 🙂

Word to SharePoint

A picture will you tell more than words: Another great project on CodePlex. –> http://wordtosharepoint.codeplex.com/ Project Description A SharePoint Feature that allows selection of Word 2007 documents for content conversion to a selected WebpageLibrary. The solution also extracts, transfers and re-links images to a selected image library.