Thanks David , I did the same thing and the error is gone now but I am getting different error now while registering itself . I have checked each and every dll's version and they are 6.0 only but somewhere this reference is being is used and im not able
to figure it out.
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unable to load plug-in assembly.