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″.

Thursday, December 16, 2010

Reading .iso files

Reading ISO file without burning it to disc.

7-Zip is a great tool to do that.
you can download that from http://www.7zip.org/

From File Mangaer, select the file and click on extract.

Good for Windows Vista 64 bit as well.

Friday, December 3, 2010

Eclipse Android and JVM issue

As you know you need java to develop android related apps.

Eclipse is very userful IDE for this.

While seting up the environment on my
Windows Vista 64 bit AMD machine, i spent several hours struggeling with 64bit vs 32 bit.

#1
After clicking eclipse.exe i initially got 'jvm path error'

If you see JVM path error, you may need to make the following change in the eclipse.ini file.
Basically you need to give the correct path where javaw.exe file exists.
Add following two lines before –vmargs
-vm
C:\Program Files\Java\jre1.6.0_04\bin\javaw.exe

#2
Java was started but returned exit code 13

This may be due to the jvm version and eclipse compatibility.
Ensure if you running eclipse in 64 bit machine, you should have jvm 64 bit version.
It took almost 2 hours to me to find the correct version url for jvm 64 bit, following url helped.
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewFilteredProducts-SingleVariationTypeFilter
Best way to check if JVM is 32 bit or 64
Check if java folder is in program files x 86 folder, if yes then its 32 bit.


f stillnot working try deleting configurationfolder and
Install from command line
e.g.

eclipse -clean




Related
http://developer.android.com/index.html

Monday, November 8, 2010

Type mismatch Error Trying To SET the Property: Enable32BitAppOnWin64

Following command will help to enable the IIS 6 for 32 bit applications.

Open a command prompt and navigate to the %systemdrive%\Inetpub\AdminScripts directory.

Type the following command:

cscript adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 True

you can also use following

cscript adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 1


to revert

cscript adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 0