In CA, Diagnostic Logging, a lot of areas with their categories are listed. When I enumerate these area's in code only three are returned:
- Business Connectivity Services
- SharePoint Foundation SharePoint
- Foundation Search
This is the code I use:
SPDiagnosticsCollection<SPDiagnosticsArea> allAreas = SPDiagnosticsService.Local.Areas;
foreach (SPDiagnosticsArea item in allAreas)
{
message.Text += "- Area: " + item.Name + "<br />";
}
Where are the other areas like Access Service, SharePoint Server, Web Content Management and many others?