Monday, 31 October 2011

Record is Unavailable

When importing an organisation, getting "Record is unavailable" error message.
When looked into error log, it was saying don't have sufficient permission/previlage to view this record.
Resolution applied was simple: iisreset
Reason: Still don't know :(

When trying to run VM ware, it shows error message "Failed to lock the file"

Wednesday, 26 October 2011

Early bound types, crmsvcutil


To generate early bound types in CRM

C:\\CRM-SDK\bin>crmsvcutil.exe /url:http://crm-srv-20
11:5555/orgname/xrmservices/2011/organization.svc /out:XrmEntities.cs /username:admi
nistrator /password:pass@word1 /domain:crm2011 /namespace:Company.Crm.Entities /serviceContextName:XrmEntities

Sunday, 23 October 2011

SingleOrDefault is throwing exception with message "Sequence contains more than one element"

When executing following linq with SingleOrDefault option I get following message
"Sequence contains more than one element"
Reason: only succeed when the collections contains exactly 0 or 1 element


Resolution: use FirstOrDefault as it will return first instance


http://stackoverflow.com/questions/1256757/sequence-contains-more-than-one-element

Access to webservice .disco is denied

When trying to update webservice after chaning the address shows following message
                   Access to the path 'C:\.....disco' is denied.

To resolve, verify webservice authentication level is set to anonymouse in IIS manager, and then open the location and give permission to everyone. 

Note: the above is for development purpose only