Tuesday 29 April 2014

How to Debug Plugin in MSCRM 2011 On-Premise

The following steps describe how to debug a plug-in On-Premise :

Debug Synchronous Plugin in MSCRM 2011

  1.  First Build the Plug-in solution.
  2.   Register it on Plug-in registration tool
  3. While add assembly of Plug-in solution in PRT(Plugin Reg Tool), make sure “Disk” radio button must be checked and DLL of Plug-in should contain in “File Name In Server” text box.
  4. After Add assembly in PRT Copy .DLL and .PDB file of Plug-in from bin directory of our Plug-in.
  5. Paste both Copied file at below location :“C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly”
  6.  Go to Plug-in solution in Visual Studio 2012
  7. Add Debugger at specified location within code.
  8.  Attach process from Tools >Attach To Process > W3WP.exe > OK
  9.  Perform action for debugging Plug-in Solution
      
    Debug A-Synchronous Plugin in MSCRM 2011

            1   Firstly Build Plug-in solution
      2   Register it on Plug-in registration tool.
      3   Go to Plug-in solution in Visual Studio 2012
      4   Add Debugger at specified location within code.
      5   Attach process from 
                 Tools >Attach To Process >CrmAsyncService.exe(both) >OK
                6     Perform action for debugging Plug-in Solution









     



No comments:

Post a Comment

Blogger Widgets