We need to run the CrmSvcUtil.exe tool from the SDK\Bin folder.

Note: If we are run the tool from another folder location, we have to make sure that a copy of the Microsoft.Xrm.Sdk.dll assembly is in that same folder.

Please find the syntax

CrmSvcUtil.exe /url:http://<serverName>/<organizationName>/XRMServices/2011/Organization.svc   
/out:<outputFilename>.cs /username:<username> /password:<password> /domain:<domainName>   
/namespace:<outputNamespace> /serviceContextName:<serviceContextName>

 

Hope this Helps! 🙂

Advertisements