0 down vote favorite asp.net website running on dotnet 2.0 through CAS Policy exception on one page and display its running on dotnet 4.0. Here is exception message "This method explicitly uses CAS policy, which has been obsoleted by the .NET Framework. In order to enable CAS policy for compatibility reasons, please use the NetFx40_LegacySecurityPolicy configuration switch. Please see http://go.microsoft.com/fwlink/?LinkID=155570 for more information." <a href="https://i.stack.imgur.com/LsRZs.png"></a>[<a href="https://i.stack.imgur.com/LsRZs.png" target="_blank" title="New Window">^</a>] While the website is targeted and build on dotnetfx 2.0. Everything on local IIS is running fine. I don't know what to do.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)