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.
How to handle it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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) 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) 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?