Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Problem to upgrade my vs2008 project to vs2010 : CAS policy error!

$
0
0

Hi

I have a big project in vs2008. today I've decided to upgrade it to vs2010 and upgraded correctly (I think), but I'm facing this error during compilation :

Invalid Resx file. Type  in the data at line 552, position 5, cannot be loaded because it threw the following exception during construction: 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 seehttp://go.microsoft.com/fwlink/?LinkID=155570for more information.

base on the given link, I've placed this script in my project configuration file and try to compile again, but I'm facing the same problem :

<configuration>
   <runtime>
      <NetFx40_LegacySecurityPolicy enabled="true"/>
   </runtime>
</configuration>

can anybody help me to work-around this problem ?

thanks in advance


http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>