Note that Code Access Security has not been eliminated. The Security Policy has been removed but you still have evidence and permissions in effect. To know more on the security changes in .NET Framework 4, you can take a look at the MSDN article, "Security Changes in the .NET Framework 4".