Debugging method 1: Change IIS security settings
Only use this method on the CRM DLL (EWARE.DLL) virtual directory in IIS 7.
- On a Sage CRM server, go to Control Panel | Administrative Tools | Internet Information Services.
- Right-click your Sage CRM install and select Properties | Directory Security | Anonymous Access and Authentication Control | Edit.
- 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. - Select Integrated Windows Authentication.
- Reset IIS.
- In Visual Studio, add a break point to your code.
- Click Debug | Attach To Process.
- 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.