locked
Framework does not enable CAS Policy RRS feed

  • Question

  • I have an vc++ application, from which i am calling a method in .net dll by generating an TLB file for the dll and importing the TLB file namespace. In the .net dll i am loading an another .net dll at the runtime through reflection from a shared path. I get the CAS policy error.

    Is there a way where i could specify the configuration NetFx40_LegacySecurityPolicy enabled="true" in vc++ or any other way to solve this issue.


    Raamakarthikeyan

    Monday, June 16, 2014 12:48 PM

Answers

  • NetFx40_LegacySecurityPolicy is a migration method. better ask whoever references CAS policy to remove the dependency. If not then you need to create an exe.config file even when your code has nothing to do with .Net.


    Visual C++ MVP

    Monday, June 16, 2014 11:11 PM

All replies

  • NetFx40_LegacySecurityPolicy is a migration method. better ask whoever references CAS policy to remove the dependency. If not then you need to create an exe.config file even when your code has nothing to do with .Net.


    Visual C++ MVP

    Monday, June 16, 2014 11:11 PM
  • Hi sheng

    I craeted a new exe.config file and it worked out. Thank you.


    Raamakarthikeyan

    Tuesday, June 17, 2014 12:25 PM