Steve Pietrek - Everything SharePoint

My continuous learning of SharePoint…

Archive for January, 2008

Sleepless in Chicago - All Night SharePoint, Office, and Silverlight Training

Posted by Steve Pietrek on January 30, 2008

I’m heading to Chicago tomorrow for the Sleepless in Chicago event. Pretty psyched, though a little nervous about staying up all night. I usually in bed by 10:30 pm every night and can’t remember the last time I stayed up past 2:00 am let alone all night.

Wish me luck!

Posted in SPGeneral | No Comments »

Links (1/30/2008)

Posted by Steve Pietrek on January 30, 2008

Posted in SPLinks | No Comments »

Custom Application.Master: Script error when creating new list column

Posted by Steve Pietrek on January 30, 2008

OK, learn something new everyday. After the success of creating a custom application.master and applying it correctly (I am currently using Method #1 until I can find the time to do an application development method), I ran into an issue creating a new list column. Within IE7, I received an “undefined or null” script error. Firefox wouldn’t do anything.

Fired up Firebug and reviewed the SubmitPage() method. Set a few breakpoints and realized the FrmSubmit object is undefined. Doh!

Realizing the FrmSubmit information is set by the PlaceHolderUtilityContent placeholder, I quickly saw my error. The problem was I had embedded the PlaceHolderUtilityContent placeholder within the main <Form>. Moved the following line outside of </form> but above </body> and I am good to go.

<asp:ContentPlaceHolder id="PlaceHolderUtilityContent" runat="server"></asp:ContentPlaceHolder>

Posted in SPErrors | No Comments »

Customize application.master

Posted by Steve Pietrek on January 29, 2008

I have been doing some research on customizing application.master. I found a good KB on Microsoft’s web site listing two ways to customize application.master.

  1. Customize the files in the Layouts folder (recommended)
  2. Create a custom Layouts folder

The two methods above work well.

I have been messing around with an application development method using a feature, HttpModule, and SPWebConfigModification. The premise of the feature is for every page, in the PreInit event, I check to see if the page’s current MasterPageFile is application.master. If it is, I set the MasterPageFile to my custom application.master. I plan on blogging on this method soon.

Posted in SPAdmin | 1 Comment »

Error: Cannot convert type ‘Microsoft.SharePoint.WebControls.DelegateControl’ to ‘System.Web.UI.IAttributeAccessor’

Posted by Steve Pietrek on January 29, 2008

Today I was modifying application.master and ran into the following error:

“Cannot convert type ‘Microsoft.SharePoint.WebControls.DelegateControl’ to ‘System.Web.UI.IAttributeAccessor’”

Instead of following my own advice on disabling My Site and My Links, I commented out the two lines in the custom Master File I created. I copied the commented code from my custom Master File to application.master. When I refreshed the page, I received the error above. At least for the two lines I commented out, SPD adds characters for spaces and such. It does not cause any issues for end-user Master Pages but it does for application.master. Figuring that was the issue, I put back the correct code and uncommented. Error went away.  

Posted in SPErrors | No Comments »

Links (1/27/2008)

Posted by Steve Pietrek on January 27, 2008

  1. Windows SharePoint Services 3.0 Application Template: Product and Marketing Requirements Planning (productplanning.exe)
  2. Office SharePoint Server Health Check Datasheet (Office_SharePoint_Server_Health_Check.pdf)
  3. Announcing: Design and build sites for Office SharePoint Server 2007
  4. DOCTYPES and SharePoint
  5. New SharePoint Developer Tool: STSDEV
  6. New SharePoint Tool: SharePoint Cross-site Configurator
  7. Master Page stsadm commands
  8. New design document on Microsoft SharePoint team blog
  9. How to backup and truncate all log files in a database
  10. WSS FAQ additions and corrections XC (?LXXXX?) - 20th - 26th January 2008
  11. SharePoint Lists as DataTables
  12. SPSiteDataQuery limited to 10 document libraries confirmed by Microsoft
  13. SharePoint Internals: InternalName versus DisplayName
  14. Workflow in VSTO 2008
  15. Getting into MOSS when you are don’t have permission
  16. Lookups with Lists that Reside in Different Sites
  17. Why WSS? Why not MOSS?
  18. Web Part with Toolbar
  19. 2007 Office System Logical Architecture Diagram
  20. Microsoft Office SharePoint Server (MOSS) 2007 Complete Installation
  21. SharePoint is positioned as a leader within the Gartner Magic Quadrant for Horizontal Portals products
  22. What is a Shared Service Provider in MOSS 2007?
  23. Creating a SharePoint Solution Package (.wsp) in 5 steps
  24. Overview: ASP.NET AJAX and Web Parts in Windows SharePoint Services 3.0
  25. Case Study: AMD Deployment on Windows Server 2008 and SharePoint Server 2007 is Faster and More Manageable
  26. Remove Web Part ToolParts
  27. Modify the lengths of List Form Fields
  28. Crawling case-sensitive Web content in SharePoint Server 2007 and Search Server 2008
  29. SharePoint 2008 Conference Session Details Available - I’ll be there. Anyone else?
  30. Generating Custom Site Columns and Custom Content Type features from the content database
  31. SharePoint Internals: SPList.GetItems

Posted in SPLinks | No Comments »

Links (1/24/2008)

Posted by Steve Pietrek on January 24, 2008

  1. **** UPDATED: Base Master Page - DOCTYPE
  2. **** Download SharePoint 2007 Best Practice Analyzer (sharepointbpa.exe) for WSS 3.0 / MOSS 2007
  3. **** How To Enable People Search
  4. **** Which Doctype to use with SharePoint 2007?
  5. **** Two new MOSS 2007 WCM Publishing Site Visual How To’s
  6. **** Silverlight Media Player and SharePoint v2
  7. **** STSDEV - SharePoint code generator - STSDEV is a proof-of-concept application that demonstrates a simple code generator for create SharePoint 2007 development projects targeting Visual Studio. The fact that the STSDEV utility generates project code in a repeatable fashion also makes it possible to build Visual Studio solutions for SharePoint development that adhere to best practices.
  8. Mail merge using SharePoint contacts
  9. Integrating an Asp.Net Application into our SharePoint Portal
  10. Web Part Design: Make Life Easy for Your Users
  11. Searching PDFs, or Using Adobe’s PDF IFilter with WSS 3.0 sp1
  12. How To Extend Wildcard People Search on MOSS 2007
  13. Dashboards for WSS 3.0 Part I The Stylesheet
  14. How To: Add a link to the Top Navigation Bar of a Site
  15. Overview of Backing Up and Restoring Data in Windows SharePoint Services
  16. Theming a SharePoint Site
  17. Sychronizing with Windows SharePoint Services, Part 1
  18. Synchronizing with Windows SharePoint Services, Part 2
  19. Backup, restore and migration of sites on SharePoint 3 pt. 1/3
  20. Backup, restore and migration of sites on SharePoint 3 pt. 2/3
  21. Backup, restore and migration of sites on SharePoint 3 pt. 3/3
  22. Common Authorization flaw in Web Applications: Why disabling buttons (or other controls) is not enough?
  23. InfoPath forms deployment, SharePoint workflow in VS 2008
  24. Content Types: The little engine that could…
  25. Look and feel > Navigation link missing!
  26. Programmatically Add and Remove Items from the Quick Launch Bar
  27. Force a Full Crawl for a Site
  28. Adding a description for a URL in a links list via code
  29. Allow rich HTML text (e.g. Bold, Italic, etc.) via C# code for a multi line text field using SPField
  30. Security Trimming WebControls and ASP Objects
  31. Take SharePoint Content Offline - Colligo Reader
  32. Creating Web Applications Programmatically
  33. Do you miss the old SharePoint Add Web Parts task pane?
  34. Space in column names - “End Use” becomes “End_x0020_Use”
  35. Useful Links on MOSS 2007
  36. How capitalization effects STSADM -o addsolution - hmm, good advice
  37. Multi-valued (ARRAY) Comparisons only for Choice fields
  38. Using Silverlight in your SharePoint 2007 Applications
  39. Developing custom MOSS 2007 SharePoint Workflows on a remote Workstation
  40. BDC Mapper Web Part from Lightning Tools
  41. WSS List DataSource
  42. 7 Ways I Know of to Add Database Data to SharePoint Pages
  43. MOSS Search: TotalAvailable & TotalRows not accurate
  44. SharePoint 2007 redirect solved: using 301 instead of 302 redirects
  45. Requesting SharePoint User Profiles
  46. SharePoint Database Mirroring Script
  47. Leveraging the use of Site Columns – Part I
  48. Custom Action URL Won’t Display for New Feature

Posted in SPLinks | No Comments »

Links (1/20/2008)

Posted by Steve Pietrek on January 20, 2008

Posted in SPLinks | No Comments »

Links (1/17/2008)

Posted by Steve Pietrek on January 17, 2008

Posted in SPLinks | No Comments »

Links (1/16/2008)

Posted by Steve Pietrek on January 16, 2008

Posted in SPLinks | No Comments »

Links (1/15/2008)

Posted by Steve Pietrek on January 15, 2008

Posted in SPLinks | No Comments »

Links (1/13/2008)

Posted by Steve Pietrek on January 13, 2008

  1. **** Two new MOSS 2007 WCM Publishing site Visual How To’s
  2. MOSS 2007 Filter webparts part 3 - Adding and connecting SharePoint filter webparts in code and a the page layout
  3. Integrating MOSS 2007 and Dynamics AX Part I - setting up your development environment
  4. How do I? – Restore access to my Windows SharePoint Services 3.0 Central Admin site after adding a new server to the farm
  5. MOSS 2007: Creating a custom AJAX UserControl that will query the SharePoint Search Query Object Model to perform searches
  6. Remember that little STSADMWin gem? v3 is here!
  7. Import Profiles Only for Active Users
  8. WSS FAQ additions and contents LXXXVIII - 6th - 12th January 2008
  9. Wiki in the knees
  10. Customize the OOB list menus in SharePoint 2007 lists
  11. Preventing Anonymous Users from Viewing Pending Draft Items
  12. Programmatically Adding Web Parts to Pages
  13. Automatically marking up abbreviations and acronyms in SharePoint 2007
  14. SharePoint WebPart Property Attributes
  15. SharePoint Visual Studio Project and Deployment Templates
  16. Workflow “Failed on Start (retrying)”
  17. Unique ID in SharePoint list
  18. Hit enter, fire a web part event the easy way
  19. What was it again with those Content Type ID’s?
  20. SharePoint search is not psychic! - configure your search
  21. Getting user profile values that support multiple value
  22. SharePoint Connector for Confluence - How We Did It
  23. OneNote Shared Notebooks - Options and Troubleshooting - Part 2: Notebooks On SharePoint
  24. Tafiti can now use SharePoint as a Data source
  25. Real-life Team-Based Development for Web Content Management with SharePoint 2007

Posted in SPLinks | No Comments »

CANCELLED - January Cincinnati SharePoint User Group Announcement

Posted by Steve Pietrek on January 10, 2008

CANCELLED

The January Cincinnati SharePoint User Group meeting will take place on 1/14 at 6:00 pm at MAX Technical Training in Mason. Check out the website. There are two sessions:

  1. Sharepoint integrating with Document Management, Caleb Miller, Tahoe Partners
  2. Integrating Enterprise Data with SharePoint: Using The BDC, Steve Caravajal, PhD, Microsoft Corporation

Posted in SPUserGroups | No Comments »

Links (1/10/2008)

Posted by Steve Pietrek on January 10, 2008

Posted in SPLinks | No Comments »

Links (1/8/2008)

Posted by Steve Pietrek on January 8, 2008

Posted in SPLinks | No Comments »

Links (1/6/2008)

Posted by Steve Pietrek on January 6, 2008

  1. **** Implementing Consistent Navigation across Site Collections - using a SiteMapProvider
  2. Branding Tools for SharePoint
  3. How to: Adding Custom Workflow Activities to SharePoint Designer 2007
  4. WSS FAQ additions and corrections LXXXVII - 30th December 2007 - 5th January 2008
  5. SharePoint Products and Technologies Search Deployment
  6. To add an item to a document library, use SPFileCollection.Add()
  7. Grant Users Admin Access to all Site Collecrtions per Web Application
  8. Debugging workflows
  9. MOSS 2007: Add support for AJAX in your SharePoint installation
  10. Article:Managing the SharePoint Learning Curve
  11. New Beta Extranet Collaboration Toolkit
  12. Extranet Collaboration Toolkit for SharePoint
  13. MOSS and SAP Integration
  14. Error when creating My Site - “Your personal site cannot be created because the managed path “http://server_name/mysite.aspx” has not been created for this site. Contact your site administrator for more information.”
  15. External Storing of Binary Large Objects (BLOBs) in Windows SharePoint Services
  16. Video: Building Presentations from SharePoint Site Content
  17. SafeControl Adder utility for SharePoint
  18. Video: Publishing Features and Site Templates
  19. 6 generations of Portal Technology: from Content Aggregation to Portal Aggregation
  20. Overview: ASP.NET AJAX and Web Parts in Windows SharePoint Services 3.0
  21. Installing ASP.NET AJAX Extensions in Windows SharePoint Services
  22. Walkthrough: Creating a Basic ASP.NET AJAX-enabled Web Part
  23. User Comments and Ratings web parts are now FREE
  24. Selecting Multiple Categories for SharePoint Blog Posts
  25. Associating Custom Content Types with a Custom Site Definition
  26. Create a KPI from a SharePoint List View
  27. SharePoint development: handy little utility to get GUID’s and Attribute names - I wrote a similar project when I first started learning the SPOM.
  28. Automatically generating a hierarchical Title in element
  29. SharePoint Content Management Package (CMP) explorer
  30. Integrating Custom Help Pages to the SharePoint 2007 Help System
  31. Roadmap to using SharePoint Server 2007

Posted in SPLinks | No Comments »

Debugging Assemblies Located in the GAC

Posted by Steve Pietrek on January 2, 2008

Update: Please see this post for a better alternative.

I have been creating feature receivers which I installed to the GAC. Of course I ran into issues and needed to debug the code. Below are the steps I ran through to do so:

  1. Install the assembly to the GAC. There are a few ways of doing this. First, create a WSP file which installs the assembly to the GAC. Second, you can use gacutil.exe to install it.
  2. Select Start - Run and type in %SYSTEMROOT%\Assembly\GAC_MSIL
  3. Open the folder which contains the DLL.
  4. Open the folder with the version number and public key you are interested in.
  5. Open Visual Studio 2005 or Visual Studio 2008.
  6. In the Solution Explorer, right-click on the solution and select Properties.
  7. On the Build tab, set the Output Path to the folder which contains the DLL (the folder in step #4).
  8. Build the project. This will copy in the PDB file to the GAC folder.
  9. Select Debug-Attach to Process.
  10. Select the correct w3wp process. To know the correct w3wp process, see this post.
  11. Set breakpoints accordingly.
  12. Execute code by activating/deactivating the feature in browser.

Note: I need to do some more research on this but the breakpoints were not hit if I activated/deactivated the feature using STSADM. Breakpoints were only hit when I activated/deactivated the feature in the browser. Just something to be aware of.

Posted in SPDev | 2 Comments »

Links (1/2/2008)

Posted by Steve Pietrek on January 2, 2008

Posted in SPLinks | No Comments »