My Colleague came across a problem today, a custom ASPX page was giving the above error.
C:\Windows\system32\inetsrv\config\applicationHost.config we had a go at removing the password attribute (which is encrypted) - By doing this the server regenerated the correct encrypted file and the application started running again.