Sunday, 29 November 2009

Updatelistitems and 0x8007000

Using the UpdateListItems webservice from jQuery creating an item in a custom list returned the error: "0x80070005 The operation failed because an unexpected error occurred. (Result Code: 0x80070005)".

The webservice call worked correctly for site collection admin and site admins but not for ordinary users. The list was configurd with "Add item" and "View pages" permissons for ordinary users which should provide correct access for the UpdateListItem method.

The problem with the list was that is was configured with a "None" value for the property "Edit access" (General settings --> Advanced settings). After changing it to "Only their own" the method call succeeded. So the "Edit items" property was messing up a "New item" method call.

Updatelistitems and 0x8007000

Using the UpdateListItems webservice from jQuery creating an item in a custom list returned the error: "0x80070005 The operation failed because an unexpected error occurred. (Result Code: 0x80070005)".


The webservice call worked correctly for site collection admin and site admins but not for ordinary users. The list was configurd with "Add item" and "View pages" permissons for ordinary users which should provide correct access for the UpdateListItem method.


The problem with the list was that is was configured with a "None" value for the property "Edit access" (General settings --> Advanced settings). After changing it to "Only their own" the method call succeeded. So the "Edit items" property was messing up a "New item" method call.

Thursday, 26 November 2009

OT: Copy contacts between C905 and Satio

Switched telephone to a Satio yesterday :). But had some trouble to get my PIM information to come along. I´m running the Office 2010 beta so PC Suite from SEMC didn´t recognize it, the otherwise excellent MyPhoneExplorer could only move SMS and bookmarks between the phones. The solution was to use the Synchronization service from SEMC (still in beta). It worked perfect and now I also have the possibility to schedule an online backup directly from my phone.

Friday, 20 November 2009

Move My Site web application in MOSS 2007

We had a situation where a brand new web application needed a new host header and be moved from a high port to port 80.

Use this guide to add a host header.

Make sure you use the Default zone (or else you can not browse to 'Advanced Permissions' or add web parts).

Update "My Site" settings in the SSP

Recrawl the content source which index the user profile database, or else you will not be able to search for users.

Fix Hyper-V VHD for Virtual Box 3.0.10

I downloaded the Windows 2008 x64 VHD from Microsoft with the purpose to mount it in Virtual Box. When the virtual machine started the following error message was displayed: "Fatal no bootable medium found system halted".

The solution was to download VPC 2007 and run the Disk Wizard and compact the VHD (as stated here).

Thursday, 12 November 2009

This Page has been modified since you opened it. You must open the page again


A lot of suggestions how to solve this:
- Add a "PublishingPageLayout" to the elements.xml file.
-Inherit from TemplateRedirectionPage instead of PublishingLayoutPage in the page layout file.
- MSO_PageHashCode is not cleared for detached pages.

None of the above had anything to do with my problem.

In my case it was two problems that throw the same error. I had one event receiver attached to a Pages library that did a call to "RunWithElevatedPrivileges" and did a SPListItem.Update() which caused the page to display the error message. I updated the event receiver according to this article, using the SPUserToken instead.

The other problem was that I had created a page with SharePoint Designer by right-clicking a Page Layout in masterpage and then choosing "New from Existing Page". This created the page but associated it with the wrong content type. Use SharePoint Manager 2007 and you will see that it attached the "Page" content type. Instead I used the web interface to create a new page and checked the content type which now was using "Welcome Page".

This leads me to the conclusion that the articles stating that you need to add a property "PublishingPageLayout" to your elements.xml files when provising (ex: create and upload files during feature activation) files are correct. But in my case I created a new page the wrong way (using SPD and not the web interface).