为什么会出现在我的.NET应用程序一个System.Security.Permissions.SecurityPermission错误? [英] Why am I getting a System.Security.Permissions.SecurityPermission error in my .NET Application?

查看:103
本文介绍了为什么会出现在我的.NET应用程序一个System.Security.Permissions.SecurityPermission错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立一个使用C#文本到语音编辑在.NET 3.5。 我遇到以下异常: System.Security.Permissions.SecurityPermission

I am trying to develop a text-to-speech editor in .NET 3.5 using C#. I encountered the following exception: System.Security.Permissions.SecurityPermission.

如何处理呢?

推荐答案

该系统是说,出现了试图做一些事情,根据目前的政策是不允许的。更多的信息需要在这里得到很好的建议:

The system is saying that there has been an attempt to do something that is not allowed according to the current policy. More information is needed to give good advice here:

1)什么是异常消息的全文?有<一href="http://msdn.microsoft.com/en-us/library/system.security.permissions.securitypermissionflag.aspx"相对=nofollow>十几情况,可能会导致使用SecurityPermission所以这是非常重要的。具体而言,有一个标志字段,指示安全违规的确切性质。

1) What is the full text of the exception message? There are a dozen or so situations that can cause a SecurityPermission so this is important. Specifically, there is a flag field that indicates the exact nature of the security violation.

2)什么是环境?本地存储的文件,或在网络共享?从网络共享中运行的应用程序一直前3.5 SP1是部分信任。您是否安装了.NET 3.5 SP1?

2) What is the environment? Are the files stored locally, or on a network share? Apps run from a network share have always been partial-trust prior to 3.5 SP1. Do you have .NET 3.5 SP1 installed?

这篇关于为什么会出现在我的.NET应用程序一个System.Security.Permissions.SecurityPermission错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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