错误:无法授予执行权限 [英] Error:Failed to grant permission to execute

查看:103
本文介绍了错误:无法授予执行权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



加载程序集进行处理时,出现以下异常.

"ProcessTick无法加载文件或程序集" ClientRuleProcesserManager,版本= 1.8.2.0,区域性=中性,PublicKeyToken =空"或其依赖项之一.未能授予执行权限.(HRESULT异常:0x80131418) />
该程序集在正确的位置.但是,它会显示无法授予执行权限"错误.我应该向该程序集授予任何权限吗?
如何解决此问题.请帮助我.

谢谢Inadvance
M.Srikrishna

Hi,

when I am loading an assembly for processing,I am getting the following exception.

"ProcessTick Could not load file or assembly ''ClientRuleProcesserManager, Version=1.8.2.0, Culture=neutral, PublicKeyToken=null'' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418)"

The assembly is there in the correct location.But,it is giving "Failed to grant permission to execute " error.should I grant any permissions to the assembly?
How can I fix this problem.Pls help me.

thanks Inadvance
M.Srikrishna

推荐答案

我使用了众所周知的神奇答案工具google:

"在控制面板中,选择管理工具> .NET向导.您可以使用信任程序集"向导来更改与该项目相关的所有关联程序集(包括DLL)的权限.将其更改为完全信任",然后不会有这些问题."
I found this using the magic answer tool we all know as google:

"In control panel, select Administrative Tools > .NET Wizards. You can use the Trust Assembly wizard to change the permissions on all associated assemblies (including DLLs) with the project. You change it to "full trust" and you won''t have those problems."


John的答案适用于.net 1.1应用程序和任何安装了Visual Studio Pro的计算机.但是,对于大多数客户端计算机,您将需要使用名为 caspol.exe的命令行实用程序 [ ^ ]设置程序集的权限.
John''s answer will work for .net 1.1 apps and any computer that has Visual Studio Pro installed. However, for most client computers you will need to use a command line utility called caspol.exe[^] to set permissions for assemblies.


这篇关于错误:无法授予执行权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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