I have a timer job, which scans all sites and all webs. When looping through SPWebApplication.Sites, ALL BUT ONE Sites are listed.
this is the code:
foreach (SPWebApplication app in service.WebApplications)
{
foreach (SPSite site in app.Sites)
{
// site missing here
foreach (SPWeb web in site.AllWebs)
{ // stuff here }
}
}
All Sites are shown in the central administration. Any idea?
SPSecurity.RunWithElevatedPrivileges
block? – Steve Bapp.Sites
enumeration has not enough privileges. – Steve B