Wednesday, March 16, 2011

Access denied by Business Data Connectivity

Access denied by Business Data Connectivity - Solution  from Tobias Zimmergreen

http://www.zimmergren.net/archive/2010/05/08/access-denied-by-business-data-connectivity-solution.aspx

Not able to load ListData.svc

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

Monday, January 31, 2011

DOT NET TRICKS: Internals of loops (While, For and ForEach)

DOT NET TRICKS: Internals of loops (While, For and ForEach)

This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’.

When Addind a UserControl which fletch Data from a Sql Data Source, check the below scenario:

Despite the connection string is correct:
add name="StudentsConnectionString"
connectionString="Data Source=localhost\SQLEXPRESS;
Initial Catalog=Students;Integrated Security=True"
providerName="System.Data.SqlClient

You are getting the following error:
This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’.


=> Please refer to the following Microsoft Kb: http://support.microsoft.com/kb/555967

Monday, January 3, 2011

Where to start while learning sharepoint 2007

Hello readers,

You know what! when I discover Sharepoint I realized and felt that this is an amazing tools and as a software developer I was amazed by the power of it.

In my company I got some training but it wasn't that in dept so like every developer I have started my own research but believe me when you will not have a proper guidance or road map...you will get confuse...hence I have decided to create this blog for a clear road map of Sharepoint 2007.

I will strongly suggest you to download the below pdf.
Developer Map for SharePoint® Products and Technologies