如何在vb中解决此问题? System.Security.SecurityException:请求类型'System.Diagnostics.EventLogPermission,System,Version = 2.0.0.0,Culture = neutral,...的权限 [英] How to resolve this problem in vb? System.Security.SecurityException: Request for the permission of type 'System.Diagnostics.EventLogPermission, System, Version=2.0.0.0, Culture=neutral,...

查看:71
本文介绍了如何在vb中解决此问题? System.Security.SecurityException:请求类型'System.Diagnostics.EventLogPermission,System,Version = 2.0.0.0,Culture = neutral,...的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

System.Security.SecurityException:请求类型为'System.Diagnostics.EventLogPermission,System,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'的权限失败。





应用程序尝试执行安全策略不允许的操作。要授予此应用程序所需的权限,请与您的系统管理员联系或更改配置文件中应用程序的信任级别。

System.Security.SecurityException: Request for the permission of type 'System.Diagnostics.EventLogPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.


he application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

推荐答案

此处的关键信息是:授予此权限申请所需的权限,请联系您的系统管理员或更改配置文件中的应用程序的信任级别。



您需要专门设置您的应用程序信任级别和/或允许访问事件日志的权限。



http://social.msdn.microsoft.com/Forums/vstudio/en-US/95d5c5e0-7b74-4880-84d7-5329891ab86a/eventlogpermission?forum = clr [ ^ ]



你可能会发现这篇文章很有用,它列出了各种信任级别的权限:



http://msdn.microsoft.com/en-us/library/vstudio/87x8e4d1 (v = vs.100).aspx [ ^ ]
The key information here is: "To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file."

You will need to specifically set your applications trust level and/or permissions to allow access to the event log.

http://social.msdn.microsoft.com/Forums/vstudio/en-US/95d5c5e0-7b74-4880-84d7-5329891ab86a/eventlogpermission?forum=clr[^]

You may find this article useful as well as it lists the permissions against various trust levels:

http://msdn.microsoft.com/en-us/library/vstudio/87x8e4d1(v=vs.100).aspx[^]


请查看此帖子在其他地方



希望这个帮助!



Brs,

-
Please check out this post here

Hope this help!

Brs,
--


这篇关于如何在vb中解决此问题? System.Security.SecurityException:请求类型'System.Diagnostics.EventLogPermission,System,Version = 2.0.0.0,Culture = neutral,...的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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