netfx40_legacysecuritypolicy桌面应用程序 [英] netfx40_legacysecuritypolicy desktop application

查看:368
本文介绍了netfx40_legacysecuritypolicy桌面应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个部署在客户端PC上的桌面应用程序

Hi, i have a desktop application deployed on client's pc,

在某些计算机上,我有无法解决的"netfx40_legacysecuritypolicy".

on a few machines i have a "netfx40_legacysecuritypolicy" that i cant solve.

我查看了论坛,并尝试将以下代码添加到应用程序.config内以及machine.config内(在%windir%\ Microsoft.NET \ Framework \ v4.0.30319 \ Config中)

I looked on forum and i tried to add the code below inside the application .config and also inside the machine.config (in the %windir%\Microsoft.NET\Framework\v4.0.30319\Config)

  < runtime>
    < NetFx40_LegacySecurityPolicy enabled ="true"; />
    < legacyCasPolicy enabled ="true"/>
    < loadFromRemoteSources enabled ="true"/>
  </runtime>

  <runtime>
    <NetFx40_LegacySecurityPolicy enabled="true" />
    <legacyCasPolicy enabled="true"/>
    <loadFromRemoteSources enabled="true"/>
  </runtime>

在两种情况下启动应用程序时,我都会收到一个错误,将其停止.

In both situation starting the application i receive a error that stop it.

有人知道使应用程序克服此政策的方法吗?我也尝试以管理员身份启动它,但没有任何改变.

Somebody knows a manner to enable the application to overcome this policy? I tried also to start it as administrator but nothing has changed.

推荐答案

Hi KBS0032,

Hi KBS0032,

谢谢您在这里发布.

< NetFx40_LegacySecurityPolicy>元素只能在应用程序配置文件中使用.不适合machine.config.

The <NetFx40_LegacySecurityPolicy> element can be used only in application configuration file. It is not suitable suitable for machine.config.

有关更多详细信息,请参阅MSDN文章.

For more details, please refer to the MSDN article.

https://msdn.microsoft.com/en-us/library/dd409253(v = vs.110).aspx

我希望这会有所帮助.

最好的问候,

温迪


这篇关于netfx40_legacysecuritypolicy桌面应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆