System.MethodAccessException: Attempt by security transparent method to access security critical method fails on all applications

Hello and thanks in advance for the help,
I know that this question or similar questions have been posted, frequently with specific regards to MVC 3 applications. However, I am getting this error message whenever I try and launch any application from within visual web developer express 2010 using a .net 4.0 target framework.