Debugging method 1: Change IIS security settings

Only use this method on the CRM DLL (EWARE.DLL) virtual directory in IIS 7.

  1. On a Sage CRM server, go to Control Panel | Administrative Tools | Internet Information Services.
  2. Right-click your Sage CRM install and select Properties | Directory Security | Anonymous Access and Authentication Control | Edit.
  3. Remove Anonymous Access.
    Anonymous Access gives the .NET API process the same permission as an IIS user, and this user doesn't have debugging rights.
  4. Select Integrated Windows Authentication.
  5. Reset IIS.
  6. In Visual Studio, add a break point to your code.
  7. Click Debug | Attach To Process.
  8. Select the inetinfo.exe process that's displayed as Managed in the type column, and click Attach.
    When you run your code, it stops at the breakpoint.