Source: ASP.NET 2.0.50727.0
I was getting this error in Event Viewer while trying to run a web app. This was fresh install of IIS, but on an older server. The problem is that after IIS is installed you need to re-install the .Net framework.
Step one is to un-install the .Net framework.
- Open a Command Prompt
- run "net stop w3svc"
- cd %windir%\Microsoft.Net\Framework\v2.0.50727\
- run "aspnet_regiis.exe -ua"
- run "aspnet_regiis.exe -i "
- run "net start w3svc"
aspnet_regiis.exe -r may have worked instead of the two step uninstall / reinstall based on it's discription but I didn't try that option.