I recently restored a Sitecore 6.1 website from source control after a hard drive failure and got the following error when trying to start it up from IIS 7.5:
HTTP Error 500.0 - Internal Server Error Calling LoadLibraryEx on ISAPI filter "C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_filter.dll" failed
The application pool was set to .NET Framework v2.0.50727 but the ISAPI filter mentioned above was configured. Removing the 4.0 aspnet_filter resolved the issue.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO-gnQTMWR1NueO2ISkfJADCaVcWpz5lYEGhkP5p7lXRWJiU2B6hQMzSrgR2HZatICSLjGKI7Gsn5YI-yD3oD8v9Q9_aV_yDVier840h6UWtzapMjUQcdSa_Acgnkrs5TvYps8y_yxHIgW/s400/ISAPIFilter.png)