Server Error: Failed to access IIS metabase.

I have received this error several times when trying to run an ASP.NET 2.0 application on a fresh machine:

Server Error in '/Butler/EducationSI' Application.

Failed to access IIS metabase.

Failed to access IIS metabase.jpg

The error normally goes away when reinstalling the .Net Framework 2.0 (it might be sufficient to repair the installation in “Add or Remove Programs” in the Control Panel).

List web applications in IIS and their ASP.NET versions

C:\>aspnet_regiis.exe  -lk
W3SVC/  1.1.4322.0
W3SVC/1/ROOT/Butler/UtbildareSI/        2.0.50727.42
W3SVC/1/ROOT/Butler/SecuritySI/ 2.0.50727.42
W3SVC/1/ROOT/Butler/Public.SecuritySI/  2.0.50727.42
W3SVC/1/ROOT/Butler/PersonregisterSI/   2.0.50727.42
W3SVC/1/ROOT/Butler/CommonEntity/       2.0.50727.42
W3SVC/1/ROOT/Reports$SQL2005/   2.0.50727.42
W3SVC/1/ROOT/ReportServer$SQL2005/      2.0.50727.42