Sunday, February 20, 2011

SharePoint Hosting

Recently - I have seen many sites made upon SharePoint 2010 so was curious about the hosting platform and services...After some research below are some interesting sites which provide good cost

http://www.fpweb.net/
http://www.asphostcentral.com/Windows-Sharepoint-2010-Hosting.aspx
http://www.sclerahosting.com/

Wednesday, February 16, 2011

Soap:ServerServer was unable to process request. => Value does not fall within the expected range.

ProblemWhile editing SP 2010 website using the SPD 2010.

Error
The Server Could not complete your request. Fore More information click the details button
soap:ServerServer was unable to process request. => Value does not fall within the expected range.

Cause
I think - It's might be related to DNS name resolution...

Workaround
Use FQDN (Fully Qualified Domain Name) instead of "localhost"

ex: http//myserver:80/Default.aspx

Wednesday, February 2, 2011

AllowUnsafeUpdates

Problem
While upgrading the item using SPListItem object, getting the below error:

Error
The "WebPart_ObjectModel1" Web Part appears to be causing a problem. Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.

My Code
SPList oList = oWebsite.Lists["Tasks"];
SPListItem oListItem = oList.Items[0];

oListItem["Title"] = "New_Title";
oListItem.Update();


Cause
Microsoft stating that set AllowUnsafeUpdates property of SPWeb is set to true so that the security token validation is not performed. This allows running updates from GET and POST requests and from any type of client application, thus making this the preferred approach in most situations. The following code example shows how to disable the security checks temporarily so that you can rename the current Web's title.

Solution
Set the property of SPWeb - AllowUnsafeUpdates to true

Final Code
SPWeb web = SPContext.Current.Web;
web.AllowUnsafeUpdates = true;

SPList oList = oWebsite.Lists["Tasks"];
SPListItem oListItem = oList.Items[0];
oListItem["Title"] = "New_Title";
oListItem.Update();

The Great Virtualization Debate: What to do? SharePoint 2010 for Laptops

Appreciate the debate and synthesis by Joel

http://www.sharepointjoel.com/Lists/Posts/Post.aspx?ID=298

http://www.sharepointjoel.com/Lists/Posts/Post.aspx?ID=280

http://www.mosslover.com/archive/2009/11/29/sp2010-knock-out-edition-what-you-need-to-knowhellip.aspx

Tuesday, February 1, 2011

Microsoft Office SharePoint 2007 and ASP.NET 2.0 AJAX 1.0 Web Part

Good articles written by Mahdi Abdulhamid

http://www.codeproject.com/KB/sharepoint/MossAjaxWebPart.aspx