WPF (XBAP) application not trusted on some machines butother get a prompt and can run the application

≯℡__Kan透↙ 提交于 2019-12-06 08:10:34

Here's the script I use to make all XBAPs on our internal network run as Full Trust. Usually I place this in a batch file and send users the link to the .bat if they email me about Full Trust errors

%systemroot%\Microsoft.NET\Framework\v2.0.50727\CasPol -q -machine -addgroup All_Code -url http://InternalWebServer/* FullTrust -n XBAPSecurity -polchgprompt off

Just replace where it says InternalWebServer with whatever your internal web server root is

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!