Wednesday, September 12, 2012

Generate the plugin registration.exe and device registration.exe for crm 2011 from sdk


First build[Microsoft Visual Studio 2010] the plugin registration folder file from crm sdk
then it will show the bin--> debug folder with exe file

Second  build[Microsoft Visual Studio 2010] the Device registration folder file from crm sdk
then it will show the bin--> debug folder with exe file

then goto cmd-> goto that folder[Device Registratiom.exe] type the below command

E:\sdk\tools>cd deviceregistration

E:\sdk\tools\deviceregistration>cd bin

E:\sdk\tools\deviceregistration\bin>cd debug

E:\sdk\tools\deviceregistration\bin\Debug>deviceregistration.exe /operation:register
Error: Device is already registered.
Device ID: ----------------------
Device Password: -----------------------

It will generate the Device ID and Password as above.
open the command prompt once again go to bin folder in sdk

E:\sdk\bin>crmsvcutil.exe /url:https://demo1.api.crm5.dynamics.com/XRMServices/2011/Organization.svc /o:demo1.cs /n:demo1namespace /u:"emailid" /p:"password" /di: DeviceID /dp: DevicePassword /serviceContextName:demo1context

For OnPremise

E:\sdk\bin>CrmSvcUtil.exe /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration" /out:CRM2011VM.cs /url:http://test:5555/CRM2011VM/XRMServices/2011/Organization.svc /domain:CRM2011VM /username:administrator /password:p@ssword /namespace:Xrm /serviceContextName:XrmServiceContext

No comments:

Post a Comment