为什么会出现在我的.NET应用程序一个System.Security.Permissions.SecurityPermission错误?我的、出现在、应用程序、错误

2023-09-04 06:50:58 作者:起啥網名好呢

我试图建立一个使用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)什么是异常消息的全文?有十几情况,可能会导致使用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?

 
精彩推荐
图片推荐