Wednesday, January 19, 2011

Error while accessing ListData.svc : ADO.NET Data Services

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

#1
As error suggests, please ensure that you have System.Data.Services entry in the Global Assembly Cache (GAC)

#2 download and install
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a71060eb-454e-4475-81a6-e9552b1034fc&displaylang=en



#3 downloand and install the ADO.NET Data Services Update for .NET 3.5 SP1.

http://www.microsoft.com/downloads/en/details.aspx?familyid=4B710B89-8576-46CF-A4BF-331A9306D555&displaylang=en


#4 Do not forget to reset the IIS.

Wednesday, January 12, 2011

error occurred in deployment step 'Retract Solution': The language-neutral solution package was not found

#1
Run Powershell

#2
Ensure you have Sharepoint Powershell commands enabled
For that run following command

Add-PSSnapin Microsoft.SharePoint.Powershell

#3
run following command (Replace mysolution.wsp with your solution name)
(get-spsolution mysolution.wsp).Delete()

this helped to me.
If still not
then open your solution folder and delete files from bin,pkg and obj folders and do the above mentioned again.

debugging Sharepoint App using Visual Studio 2010 : No symbols have been loaded

Right click on solution --> Click on Properties
Click on 'Multiple startup projects' radio button
select the project you need to debug
Select Start from the action drop down for that project.

Sunday, January 9, 2011

SharePoint 2010 build error Warning 1 The Reference...

Warning 1 The referenced assembly “Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL” could not be resolved because it has a dependency on “System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” which is not in the currently targeted framework “.NETFramework,Version=v4.0,Profile=Client”. Please remove references to assemblies not in the targeted framework or consider retargeting your project.


You may need to do the following to resolve the issue

SharePoint 2010 is built on top of .Net Framework 3.5. So make sure you have it as your targeted framework in VS. Go to project properties and change the target framework to “.Net Framework 3.5″.