Wednesday, September 18, 2013

How to solve problem "Metadata contains a reference that cannot be resolved" while try to create connection with CRM server?

First of all, check the url if correct. If wrong url, will get this error.(http://{}/{orgName}/XRMServices/2011/Organization.svc)
If cannot find the problem, run CrmSvcUtil with enabled tracing information by
CrmSvcUtil.exe.config













Will get detailed error information

How to implement paging by LINQ

            int numberOfObjectsPerPage = 5001;
            int pageNumber = 1;
            var queryResultPage = acountlist
              .Skip(numberOfObjectsPerPage * pageNumber)
              .Take(numberOfObjectsPerPage).ToList();