Come Check Out San Diego's SharePoint User Group!

SanSpug
The user group meetings are free to attend and chock full of highly technical and relevant SharePoint instruction. This week's meeting included my own, personal event receiver presentation and another on InfoPath 2010. There is a nominal annual fee to access certain user group resources (such as the presentation recordings).

We have TONS of upcoming events in the works - including the first ever San Diego SharePoint Saturday (early 2011), study-cram sessions for the 2010 certification exams, job fairs, etc. Myself and the other members of the user group executive team are working hard to make it a valuable resource for local SharePoint professionals and to facilitate the growth of the SharePoint presence here in San Diego. Please check it and out and provide any feedback/suggestions you have.

Posted on 9/9/2010 10:33:00 AM by sterlingt

Permalink | Comments (1) | Post RSSRSS comment feed |

Categories: MOSS 2007 | SharePoint 2007 | SharePoint 2007 Features | WSS 3.0

Tags:

InfoPath Forms Services Error: schema validation found non-data type

So I got my first taste of working with the new SharePoint 2010 Managed Client Object Model...and just one exaggerated word: Saw-weeeeeet. I used it to write a module that would programmatically add an attachment to an InfoPath 2007 document stored in SharePoint. Ironically enough, the COM code worked right out of the gate and it was the XML DOM manipulation code that proved the most finicky. It's alot of code so I'm not going to post it all up, but if you have a need to programmatically manipulate InfoPath (XML) documents stored within SharePoint - shoot me an email and I'll send you a code sample.

That said, I thought I'd post a quick blurb about one of the obscure gotchas I encountered on this project. I was seeing the following error when trying to open the InfoPath document in InfoPath Forms Services after making the programmatic changes:

schema validation found non-data type

Initial searching turned up a bunch of articles referring to the xsi:nil attribute, but that was not my issue. In fact, I used a text editor to compare the 2 files (an XML document created in InfoPath Forms Services and an XML document modified by my programmatic code) - disregarding case and spacing, and they were identical! However I realized that a couple of the tags in the programmatically saved document had a line feed inserted between their opening tag and closing tag, and more importantly - removing the line feeds fixed the problem! (The fact that trivial white-space was capable of invalidating InfoPath's schema is a testimony to its instability in my opinion, but whatever - job security, right?)

Many hours and dead ends later, I eventually stumbled onto this posting http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/0be81446-3be6-458a-a2e7-7a86e05ee85d, instructing me to set the XMLDocument's "PreserveWhitespace" property to true in order to prevent it from imposing its own space-formatting on the XML content output.
That fixed it...and I blogged it ;-)

Posted on 5/28/2010 5:06:00 AM by sterlingt

Permalink | Comments (0) | Post RSSRSS comment feed |

Categories: MOSS 2007 | SharePoint 2007 | SharePoint 2007 Features

Tags:

"Serious XSS flaw haunts Microsoft SharePoint"

Posted on 5/4/2010 4:39:00 AM by sterlingt

Permalink | Comments (0) | Post RSSRSS comment feed |

Categories: MOSS 2007 | SharePoint 2007 | SharePoint 2007 Features | WSS 3.0

Tags:

Custom Search Scope Error - 'Your search cannot be completed because of a service error. Try your search again or contact your administrator for more information.'

When creating custom search scopes within MOSS 2007, be wary of mixing 'shared' search scopes and 'local' search scopes within a single display group. If you create a search scope at the site collection level (via the Site Settings > Site Collection Administration > Search Scopes menu), the scope will inherently be local. Note the absence of a check-mark in the 'Shared' column when viewing the site collection scope administrative page ([Site Collection URL]/_layouts/viewscopes.aspx?mode=site). The default 'People' and 'All Sites' search scopes are shared. Combining both a local and shared search scope into a single display will generate the following error within the search results if a user selects a combination of the 2:

Your search cannot be completed because of a service error. Try your search again or contact your administrator for more information.

To avoid this issue, either define your new search scope as shared by creating it within the SSP scope admin page ([SSP URL]/ssp/admin/_layouts/viewscopesssp.aspx?mode=ssp) rather than the site collection scope admin page. Or create a custom search display group that contains ONLY shared or ONLY local search scopes, so users won't be able to select both.

Posted on 4/30/2010 6:59:00 AM by sterlingt

Permalink | Comments (1) | Post RSSRSS comment feed |

Categories: MOSS 2007 | SharePoint 2007 Features

Tags:

Making MOSS 2007 and WSS 3.0 play nicely with Adobe Acrobat PDF Documents


Seeing any of the following behavior when interacting with PDF documents within SharePoint?
  • The document could not be opened for editing. A Windows Sharepoint Services compatible application could not be found to edit the document.
  • There was an error opening this document. The file cannot be found.
  • Missing/blank icon for PDF documents
Add this line to one-liner to your DOCICON.XML document (C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML):
<Mapping Key="pdf" Value="pdf.gif" OpenControl="SharePoint.OpenDocuments"/>

And put the corresponding pdf.gif image in the SharePoint IMAGES directory (C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES).

If users are annoyed by the in-browser method with which PDF documents are opened, that setting must be changed via the Adobe Reader application itself - Edit > Preferences > Internet, uncheck the 'Display PDF in browser' box.

Posted on 4/2/2010 6:34:00 AM by sterlingt

Permalink | Comments (0) | Post RSSRSS comment feed |

Categories: MOSS 2007 | SharePoint 2007 | SharePoint 2007 Features | WSS 3.0

Tags: