Friday, November 12, 2010

Unable to cast object of type 'Microsoft.SharePoint.Administration.SPWebApplication' to type 'Microsoft.SharePoint.SPSite

Today I have found error "Unable to cast object of type Microsoft.SharePoint.Administration.SPWebApplication' to type 'Microsoft.SharePoint.SPSite" during deploy moss 2010 solution.

I have set scope as "Site" and due to that above issue is occured.
I have changed scope as "WebApplication" and rebuild it and after deploy it.
So Its working Fine and solution is deployed successfully.

Cheers.

Workflow Custom Activity in MOSS 2010

http://www.zimbio.com/VisualStudio/articles/qMY82wdzeBR/Walkthrough+3+SharePoint+Designer+Workflows
http://sharepointbloggin.com/2010/02/10/walkthrough-3-sharepoint-designer-workflows-imported-to-visual-studio-2010/

Thursday, November 4, 2010

an unhandled exception occurred in the silverlight application sharepoint 2010

I guess it's a product bug. Just Enable the Security Validation from Manage Web Applications --> General Settings (from ribbon).

Silverlight Application is unable to connect to the WCF endpoint configured by the product for enabling Client Object Model, if Security validation is set to Off.

Enjoy...

Tuesday, October 5, 2010

Could not load type ‘System.Data.Services.Providers.IDataServiceUpdateProvider’ from assembly ‘System.Data.Services, Version=3.5.0.0, Culture=neutral,

I wanted to use the new REST services in SharePoint 2010. But when I navigated to the ListData.svc service. I got the following error:


Could not load type ‘System.Data.Services.Providers.IDataServiceUpdateProvider’ from assembly ‘System.Data.Services, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′.

does not provide many hints to what is causing this error. Most sites suggest to install ADO.NET Data Services v1.5 CTP2, but I already had.

I have found solution from one of sharepoint blog which asking to install dll patch on sharepoint server.


For Windows 7 AND Windows Server 2008 R2Download the ADO.NET Data Services Update for .NET Framework 3.5 SP1 for Windows 7 and Windows Server 2008 R2.

After installing the version of the System.Data.Services.dll file is 3.5.30729.5004.

For Windows 2000, Windows XP, Windows Vista, Windows Server 2003 AND Windows Server 2008Download the ADO.NET Data Services Update for .NET Framework 3.5 SP1 for Windows 2000, Windows Server 2003, Windows XP, Windows Vista and Windows Server 2008.

After installing the version of the System.Data.Services.dll file is 3.5.30729.4466.