I have an asp.net 4.0 application that works fine running under cassini but when i deploy to IIS i get the above error. It is running under the Default App pool which a numb
I had the same problem just now. None of the fixes I found worked, so I'll just post here in case it helps someone.
For me the issue was solved this way:
Hope that will help someone else out! This was driving me crazy.