"Attempted to read and write protected memory. This is often an indication that other memory is corrupt" error when implementing ItemCheckingOut event handler in MOSS 2007/WSS 3

If you ever tried implementing ItemCheckingOut event handler wanting to prevent end users from checking out documents if certain business rules doesn’t meet, you typically would implement the “ErrorMessage” & “Cancel” properties of SPItemEventProperties. However, when you do this, you might have seen the below error: “Attempted to read and write protected memory.  This is…

3

Can I customize application.master and aspx files present under _layouts folder? – MOSS 2007 application pages customization

I had a support request from a customer the other day, who did some weird customization to his MOSS 2007 sites.  Well, the support incident details did not have specific information on why he had logged this support call, so I called him.  After the initial warm greeting with “Hi, how are you…” and stuffs…

9

External Storage API for WSS 3 available

External storage APIs are available when you install hotfix 938499.  As to what these APIs are and how to utilize them is still a question.  Looks like there will be a switch added in “stsadm.exe” utility as well – so chances are the some out of the box option is also provided to utilize these…

3

Update "lookup" fields in SharePoint 2007

Lookup fields were innovative feature offered in SharePoint Portal Server 2003 that eased design/development efforts in terms of providing an interface that allows users to pick up dynamically changing values. Consider a retail store scenario, where users would order products by creating new items in a SharePoint list.  The product catalog will usually be dynamic. …

25

Haven’t you downloaded the latest SharePoint Server 2007 SDK?

Check out the latest release of SharePoint Server 2007 SDK.  Tons of sample code refresh, how do I… programming tasks, conceptual overview and most importantly developer tools and ECM starter kit is available in this SDK release. If you are looking for customizing SharePoint Server 2007 or to extend feature available out of the box, this…

1

Before/After properties not available for InfoPath content types in Form Library – MOSS 2007

I wanted to blog this as an FYI… So, I will try to deliver the message short. When we publish an InfoPath 2007 form template to a MOSS 2007 server, we have an option to choose to publish field in the InfoPath template (as content types), which makes InfoPath fields available as columns in form library. This is…

2

What if you need to hide site templates in MOSS 2007?

Some of you might want to make only certain site templates (otherwise called site definitions like STS#0 for team site definition, STS#1 for blank site definition) available for creating sites in WSS 3 or MOSS 2007.  Well, there are quite a few ways to do that.  The most common and easy-to-do technique is to set…

11

IE warning message box "this page contains both secure and nonsecure items" when applying "Simple" theme on a SharePoint site protected with HTTPS

This incident happened the other day… One of my SharePoint Admin support team counterpart here, asked me a question regarding a strange happening in SharePoint (or should I term it “puzzle” instead of “question”?). Well, the way he sounded, I felt like he is going to ask a question similar to what my 6th grade…

12

Associate a site column to a content type using SharePoint 2007 Object Model

I recently came across a question whether a site column can be associated with a content type using SharePoint 2007 object model?  I thought it should be fairly simple.  However, it was really a big deal of research.  Fortunately, our former buddy, Karthick had this documented in his blog already.  See here.  I have provided…

1

Correct usage of SPFileCollection.Add() overloaded method in SPS 2003

I was recently involved in a case involving SPFileCollection.Add() method.  When we use one of the overloads of Add() method the “Created” & “Modified” dates weren’t correct (+5:30 hrs at my end & -7 hrs at the customer’s end – not exactly sure why, perhaps it’s defaulting to GMT as that appears to be the…

4