|
Rob Garrett Profile |
|
|
SP2010 Features – Reference
Rob Garrett This post is to help my my strained memory, the following post contains a list of all SharePoint 2010 feature GUIDs
Tagged: SharePoint 2010 [read]. Posted: Tue, Feb 16th '10 |
Configuring RBS for SP2010
Rob Garrett Following on from my previous post about list scaling and performance. The following posts details configuration of Remote Blob Storage for SharePoint 2010 and SQL Server 2008 R2.
First download the RBS provider for SQL Server 2008 (don’t install it yet):
http://go.microsoft.com/fwlink/?LinkId=177388
Configure file stream for the SQL Server Service using the Configuration Manager:
Execute the following SQL queries:
EXEC sp_configure filestream_access_level, 2
RECONFIGURE
Execute the fo [read]. Posted: Sun, Jan 17th '10 |
List Scaling and Performance in SP2010
Rob Garrett It it a well known fact that MOSS 2007 caused some rising opinions on the subject of list scalability and performance. Many developers operated under the misconception that SharePoint lists only allowed 2000 list items before croaking out with bad performance. Nothing could be further from the truth.
The following article talks about this issue of large lists in great depth and highlights the point that SharePoint can actually handle many more than 2000 list items in any one list. [read]. Posted: Sun, Jan 17th '10 |
SP2010 ListData.svc give 404
Rob Garrett If you see an HTTP 404 when accessing the /_vti_bin/ListData.svc WCF service in SharePoint 2010 then be sure to install the ADO.NET Data Services 1.5 CTP2
Link
Tagged: SharePoint 2010 [read]. Posted: Tue, Jan 5th '10 |
Site Collection URL in a User Control
Rob Garrett Ever have a problem remembering something small, I do. No matter how many projects I develop in SharePoint I cannot seem to remember how to reference the site collection URL from a user control. So, after digging around for 5 minutes to find the answer I decided to blog it and save my aging memory:
Tagged: Microsoft SharePoint [read]. Posted: Tue, Dec 15th '09 |
SP2010 Sandbox Development Tip
Rob Garrett If you want to make sure that you aren’t using any of the restricted APIs before you deploy your solution to a sandbox environment, manually reference your project against:
[SharePoint Root]\UserCode\assemblies\Microsoft.SharePoint.dll
If your code compiles, then you’re pretty safe!
NEVER DEPLOY code with this Microsoft.SharePoint.dll reference, instead reference the Microsoft.SharePoint.dll in
[SharePoint Root]\ISAPI folder.
From the SharePoint 2010 book I’m [read]. Posted: Sun, Dec 13th '09 |
Debugging SP2010 Sandbox Code – Short and Sweet
Rob Garrett If you find yourself in a situation when you need to attach to a process from VS 2010, to debug, and you’re code is running in a “sandbox”. You need to attach to the process SPUserCodeService.exe, not w3wp.exe.
SharePoint 2010 hosts sandbox code in a secure service – the user code service – so it can monitor resources and make sure the user’s code isn’t performing any action that could compromise the platform.
From the SharePoint 2010 book I’m reviewing
Tagged: Sha [read]. Posted: Sun, Dec 13th '09 |
SP2010 Blogging Open
Rob Garrett Just in case you missed it, public blogging of SharePoint 2010 is now permitted – let the flood gates open ;)
Tagged: SharePoint 2010 [read]. Posted: Mon, Oct 19th '09 |
SP2010 Developer Dashboard
Rob Garrett The SP2010 Developer Dashboard allows developers to review object model calls, database queries, web part events – and the timings for these various happenings.
The following code enables the dashboard:
SPPerformanceMonitor SPPerfMon;
SPPerfMon = SPFarm.Local.PerformanceMonitor;
SPPerfMon.DeveloperDashboardLevel = SPPerformanceMonitoringLevel.On;
SPPerfMon.Update();
The following code turns it off again:
SPPerformanceMonitor SPPerfMon;
SPPerfMon = SPFarm.Local.PerformanceMonitor;
SPPerfMon.Dev [read]. Posted: Mon, Oct 19th '09 |
Development Setup for SP2010
Rob Garrett Some important points to remember when developing against SP2010:
Make sure your Visual Studio project is set up for .NET 3.5, not .NET 4.0
Run Visual Studio as an Administrator to load debugging symbols
Make sure your project is set to compile for Any CPU or x64 (not x86 by default), otherwise your code will throw a FileNotFoundException
From the SharePoint 2010 book I’m reviewing
Tagged: SharePoint 2010 [read]. Posted: Mon, Oct 19th '09 |
Efficient way to add a new item to a SharePoint list
Rob Garrett Never use SPList.Items.Add because this approach gets all items in the list before adding a new SPListItem. Use the following method instead, which does not preload the list items: 1: ///
2: /// More efficient way of adding an item to a list.
3: ///
4: ///
5: /// GetItems with a query is faster than calling the OM to get all items.
6: /// This is because the SPListItemCollection is created without loading all the
7: /// data until the first query request. Where [read]. Posted: Wed, Feb 25th '09 |
SharePoint Development Best Practices (Summary)
Rob Garrett I’ve read several blog posts of late regarding best practices for developing SharePoint API based components. Some developers are aware of issues surrounding disposal of SPSite and SPWeb objects and the use of SPList Item collections, and some are not. The simple fact is the SharePoint API is not intuitive when it comes usage of memory hungry-object instances, and it is all too easy to leave too many of these objects in memory for the garbage collector to deal with – causing larg [read]. Posted: Fri, Feb 20th '09 |
Authentication failed because the remote party has closed the transport stream
Rob Garrett If you receiver the error "Authentication failed because the remote party has closed the transport stream" when accessing "Search Settings" in the SSP, the following steps will resolve the issue. The issue is a result of incorrect self-serving-certificate. 1. Install the IIS 6.0 Resource Kit on the index server (http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&DisplayLang=en) 2. Assign a new SSL certificate to the Office SharePoint Se [read]. Posted: Mon, Jan 19th '09 |
Test your GTD IQ
Rob Garrett Test your GTD IQ at: http://www.gtdiq.com/ Here's my result below
Share this post: Email it! | bookmark it! | digg it! | reddit!Copyright © 2008 Rob Garrett [read]. Posted: Wed, Dec 31st '08 |
Recycle IIS App Pool from Script
Rob Garrett My colleague, Carlos Fernandez, sent me this CSCRIPT command for recycling the an IIS application pool: %windir%\system32\cscript.exe c:\windows\system32\iisapp.vbs /a "SharePoint - 80" /r Tired of manually recycling the app pool each time you make a code change to your SharePoint web part? No problem, add the following command to the post build events in Visual Studio.
Share this post: Email it! | bookmark it! | digg it! | reddit!Copyright © 2008 Rob Garrett [read]. Posted: Fri, Nov 7th '08 |
Debugging SharePoint, which Process?
Rob Garrett When developing 3rd party components for SharePoint you cannot avoid debugging. Debugging usually involves attaching to a W3WP.EXE process - IIS host for a SharePoint application, from within Visual Studio. When presented with the attach to process dialog box, you should typically see two to three instances of W3WP.EXE, one for central administration site, maybe another for the SSP administration site, and one for your web application: So.. which process should you attach? M [read]. Posted: Tue, Oct 28th '08 |
SharePoint Content Structure and Reports Limit
Rob Garrett We ran into an interesting issue this week where all reports at the site collection level within "Content Structure and Reports" stopped working. The log included the following error: Query Execution threw SPException: The query cannot be completed because the number of lists in the query exceeded the allowable limit 10/10/2008 11:38:19.16 w3wp.exe (0x09F8) & [read]. Posted: Fri, Oct 10th '08 |
Facebook Blog Network
Rob Garrett Holy cow it feels like an eternity since I posted to my blog (well almost 3 months)! I guess that's what happens during the busy season.For now, enjoy looking at my blog network page on Facebook: Here
Share this post: Email it! | bookmark it! | digg it! | reddit!Copyright © 2008 Rob Garrett [read]. Posted: Tue, Sep 23rd '08 |
Abobe 32-bit IFilter on MOSS 64-bit Platform
Rob Garrett See the following support page from Adobe: http://labs.adobe.com/wiki/index.php/PDF_iFilter_8_-_64-bit_Support
Share this post: Email it! | bookmark it! | digg it! | reddit!Copyright © 2008 Rob Garrett [read]. Posted: Tue, Jul 15th '08 |
Helper Class for Avoiding Memory Leaks with SPSite and SPWeb Objects
Rob Garrett Microsoft provides a sophisticated API/Object Model for programmatic access to the SharePoint from .NET custom code. Invariably, most calls to the object model begin with a call to the SPSite and SPWeb objects, which represent the site collection and web accessed accordingly. Developers must dispose the memory of any instance of SPSite and SPWeb. This includes calls to site.AllWebs[], web.ParentWeb etc. The only exception is when using site and web instances from the SPC [read]. Posted: Fri, Jul 11th '08 |
Users with Full Control Cannot Create Pages (MOSS 2007)
Rob Garrett I had a client call me up with a MOSS 2007 permission problem. The complaint was that users in a site owners group, with "full control" permission level, were unable to create a page anywhere in the WCM site collection. Turns out that somewhere along the line the approvers group was deleted by mistake, which inadvertently removed read access to the Master Page Gallery. Adding the approvers group back to the MPG with read access fixed the issue. I cannot take credit because I found th [read]. Posted: Wed, Jul 9th '08 |
SharePoint InfoPath Submission as Anonymous User
Rob Garrett Creation of user submitted forms within web sites typically involves some HTML and JavaScript magic; to post data to a back end business storage or processing system. ASP.NET relies on form HTTP POST exclusively to implement the page post back mechanism, familiar to all ASP.NET developers. Developers manipulate form posted data using server-side code, invoked after form data is submitted to the web server. In ASP.NET this code usually exists as code behind or code inline VB.NET [read]. Posted: Tue, Jul 1st '08 |
Groove 2007 - Disable the Annoying Popup Dialog
Rob Garrett Those of you using Groove 2007 are probably well aware of the annoying popup dialog that appears when the shift key is pressed more than once. This issue is exacerbated when inside a remote desktop or terminal session. Finally, I found a fix... http://support.microsoft.com/kb/940165 To resolve this problem, follow these steps. 1. Exit Groove 2007. 2. Click Start, click Run, type regedit. 3. Locate and then click the following registry subkey: HKEY_CURRENT_USER \SOFTWARE\Microsoft [read]. Posted: Wed, Jun 11th '08 |
SharePoint Training
Rob Garrett Need some SharePoint (MOSS 2007) training? Want to take advantage of MOSS 2007 development under Visual Studio 2008 and SQL Server 2008? Never been to Norway? Then check out Sahil Malik's training program this September 1, 2008. Details (here). If Norway is a little too far to travel, I can also personally vouch for Ted Patterson training, of which Sahil is also providing a training session September 22, 2008. Details (also here).
Share this post: Email it! | bookmark it! [read]. Posted: Sat, Jun 7th '08 |
Sysinternals Tools at Your Fingertips
Rob Garrett Check this out (I'm sure I'm not the first to blog this) - type the following UNC path into a file explorer on your pee-cee.... \\live.sysinternals.com\ Presto - every Sysinternals tool for you without ever having to download it. HTTP works too... http://live.sysinternals.com/
Share this post: Email it! | bookmark it! | digg it! | reddit!Copyright © 2008 Rob Garrett [read]. Posted: Fri, May 30th '08 |
Certified Microsoft Office SharePoint Server Developer
Rob Garrett It's now official, I am now certified as a MS-TS MOSS Application developer Next hurdle: MOSS configuration, and then .NET certification.Update 5/7/2008 - I took the WSS application exam today (for kicks) and passed.
Share this post: Email it! | bookmark it! | digg it! | reddit!Copyright © 2008 Rob Garrett [read]. Posted: Tue, May 6th '08 |
SPSecurityTrimmedControl
Rob Garrett This is one of those blog posts that I cannot take credit, but want to keep the information handy for a later time. The SPSecurityTrimmedControl shipped with WSSv3 is a very powerful control. It basically allows you to conditionally display content depending on the user’s permission. Thanks to Waldek for his post on conditional security trimming of page layout content in SharePoint.
Share this post: Email it! | bookmark it! | digg it! | reddit!Copyright © 2008 Rob Garrett [read]. Posted: Mon, Apr 14th '08 |
Vista MCE and HD - At Last
Rob Garrett Recently - I finally decided to take the plunge with Vista Media Center Edition and High Definition Cable TV.... I've been a fan of MCE for some time, and up until February this year I'd been using Vista MCE with a standard analogue cable line into a dual receiver Hauppauge tuner card and doing relatively well. Those of you following my rants about Comcast Cable TV of Montgomery County already know that I'd sell my grandma for a time when a better, cheaper solution to cable TV was available - [read]. Posted: Mon, Mar 31st '08 |
Prolific PL-2303 Driver - Vista x64
Rob Garrett I purchased a USB to RS232 Serial cable so I could hook up my GPS unit to my laptop and found out that installing the driver on Vista 64 was problematic. Disabling driver signing verification with the following command at an elevated prompt, followed by a reboot, enabled me to install the driver. BCDEDIT.EXE /SET NOINTEGRITYCHECKS ON Download the prolific XP 64 bit driver (installs on Vista 64 after disabling driver signing verification) from: Link
Share this post: Email it! | bookmark it! | [read]. Posted: Thu, Feb 7th '08 |
SharePoint Identity
Rob Garrett SharePoint user identity is sometimes confusing for developers.... When connecting to external resources (like a SQL database via BDC) what user identity does SharePoint use? How does SharePoint impersonate when using forms-based authentication? What's the difference between a Windows user and a WSS User? What is SPSecurity.RunWithElevatedPrivileges? It's questions like those above the can often lead to confusion - throw IIS authentication settings into the mix and developers too often find th [read]. Posted: Fri, Jan 25th '08 |
Custom XML Feeds in IE7
Rob Garrett I often find myself writing custom XML generators in ASP.NET using Http Handlers. To test my code I want to open my browser and render the XML - naturally. In the days of IE6 all was good - I could render the XML and Internet Explorer would show me a nicely formatted view of my XML with collapsible nodes (as above). Since the inception of IE7 I've noticed this nice feature is broken (at least on the few machines I use). I chalked this problem up to the new RSS viewer, built in to IE7, and [read]. Posted: Tue, Jan 22nd '08 |
SharePoint Custom Content & Structure Report
Rob Garrett I came across some really cool functionality in SharePoint 2007 today.... One of my clients has a deep hierarchy of sites and pages maintained in SharePoint - this hierarchy drives content management for their web site. Most of the publishing pages on their site have an embedded boolean field, called "Appear on Home Page" as part of the page content type, which controls whether elements of the data contained in the page are featured on the site home page. My client wanted a roll-up view acr [read]. Posted: Wed, Jan 9th '08 |
"Submit" ASP.NET and SharePoint
Rob Garrett One of my developers and I ran into an interesting problem today - we'd migrated a web site over to SharePoint 2007 (using a popular content migration tool) and found that all page postback calls in SharePoint were giving JavaScript errors, specifically: Object doesn't support property or method. Turns out that our master page and page layouts contained input controls (text boxes) with name/id as "submit". Use of this reserved name sent ASP.NET's JavaScript code into a tailspin and wrecked havo [read]. Posted: Wed, Jan 2nd '08 |
Visual Studio 2008
Rob Garrett I finally got around to installing VS2008 RTM today - wow what a marathon! 4 hours after I started, I finally had 2008 installed and working. I was running into problems installing Microsoft .NET 3.5 .NET Framework - both from VS2008 installer and when I attempted to install the framework as stand-alone. Vista adds complication to the install because .NET 2.0 and .NET 3.0 are part of the Vista OS, and it is when .NET 3.5 attempts to upgrade these previous framework versions; problems occur. [read]. Posted: Mon, Dec 31st '07 |
SharePoint Designer and SharePoint Out of Sync
Rob Garrett If you ever find yourself in a situation where SharePoint Designer insists that a master page, page layout, or CSS file is checked out and the same file in the SharePoint Gallery is shown as checked in then there is a problem with your SPD web cache. Attempting to check the file in through SPD gives the error: "Cannot perform this operation. The file is no longer check out or has been deleted." Solution: Locate the WebsiteCache directory below and delete it: Vista: %UserProfile%\AppData\Local\M [read]. Posted: Fri, Dec 14th '07 |
MOSS - Save Publishing Site as Template
Rob Garrett Those of you who like to use the "Save Site as a Template" functionality in SharePoint might wonder where the option disappeared to; when the site you have in mind for your template is a Publishing Site (Web Content Management)... The official word from Microsoft is that this functionality is not supported for publishing sites and the option is removed from the site settings. However, the link to the ASPX page still exists, so the following URL snippet will enable you to save a publishing site [read]. Posted: Tue, Dec 11th '07 |
SharePoint Fixes and SP1
Rob Garrett I'm sure I'm not the first and I'll not be the last to mention that SharePoint SP1 is now available - think of this post as Rob's own personal reminder. If you know about this news then all is good, if not then you learnt something today. http://technet.microsoft.com/en-us/office/sharepointserver/bb735839.aspx In addition below is a neat blog post with a whole list of hot fixes for WSS and MOSS, some part of SP1 and some not, thanks Sammy: http://blogs.microsoft.co.il/blogs/adir_ron/archive/200 [read]. Posted: Tue, Dec 11th '07 |
Speaking Engagement - SharePoint User's Group DC
Rob Garrett I shall be speaking at the SharePoint User's Group for DC (http://www.sugdc.org) on October 28, 2007. If you're signed up then I hope to see you at the event, otherwise it is not too late to get your ticket: http://www.sugdc.org/events/conference.aspx I shall be introducing the audience to Web Content Management in Microsoft Office SharePoint 2007. Now that I've got the blog post out I better work on the slide deck for next weekend ;)
Share this post: Email it! | bookmark it! | digg it! | redd [read]. Posted: Sat, Oct 20th '07 |
SharePoint 2007 - Lock down your site
Rob Garrett Scenario: You have a public facing web site in SharePoint 2007, and you have added form-based authentication for access to the secure areas of your site. The problem with SharePoint 2007 is that out of the box behavior assumes access to the application pages (_layouts) for authenticated users. Security trimming will prevent access to pages that users have no access, but not all of the application pages. It would be jolly nice if you could lock down your site and prevent access to all applicat [read]. Posted: Mon, Oct 1st '07 |