In a .NET Windows Forms application, you must have minimal “Read” EnvironmentPermission settings if your application uses the GetContextKeywords function.
System function | Permission required |
---|---|
GetContextKeywords | Read |
<IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Read="Path " />