Questions tagged [permissionset]

Code permissions framework for .NET applications.

Use [PermissionSet] attributes on classes to define the level of access required.

See also: Microsoft documentation

10 questions
31
votes
6 answers

Why does my .NET application crash when run from a network drive?

My .NET application fails when run from a network drive even when the very same executable runs perfectly fine from a local hard drive? I tried checking for "Full trust" like so: try { // Demand full trust permissions PermissionSet fullTrust…
Paul Smith
  • 1,014
  • 2
  • 12
  • 28
25
votes
1 answer

What is the purpose of the PermissionSet attribute in the MSDN FileSystemWatcher class example?

On the MSDN FileSystemWatcher Class page, it includes an example with the following class attribute: [PermissionSet(SecurityAction.Demand, Name="FullTrust")] What is the purpose of this? When should it be included or not included? The…
Jeff
  • 1,203
  • 2
  • 16
  • 27
2
votes
0 answers

JS callback in a WebBrowser component in an Outlook VSTO application

We have an Outlook VSTO component that adds a panel that contains a WebBrowser component, which in turn opens a web page. We want to call back from the web page using WebBrowser.ObjectForScripting, but the guidance provided by MS here doesn't…
Keith
  • 133,927
  • 68
  • 273
  • 391
2
votes
1 answer

Executing untrusted code

I'm building a C# application which uses plug-ins. The application must guarantee to the user that plug-ins will not do whatever they want on the user machine, and will have less privileges that the application itself (for example, the application…
Arseni Mourzenko
  • 45,791
  • 28
  • 101
  • 185
1
vote
0 answers

IronPython double casting incorrectly when targeting x64 platforms

I'm running into a strange issue in IronPython when I use a custom AppDomain and PermissionSet. For some reason, casting doubles to floats is not working correctly when the PermissionSet is not Unrestricted and I build targeting x64 platforms. …
1
vote
0 answers

What AppDomain Permissions are needed to query a SQLite DB?

I'm launching some code in a separate AppDomain and the code needs to be able to query a SQLite database. If I set the PermissionState to Unrestricted for the AppDomain, then everything works. However, I would like to give the AppDomain the minimum…
El Goodo
  • 262
  • 4
  • 13
0
votes
1 answer

How can I get a set of permissions requested by an assembly?

I want to ask user to grant requested permissions or prevent assembly from loading.
LOST
  • 2,163
  • 2
  • 19
  • 31
0
votes
2 answers

Salesforce Permission Set Access

I have already an object without any access on it. Only System Administrator has access on its fields. I had a permission set to grant access to this object for some users (not a system admin). All permissions Read All, Modify All are granted to…
BBS_
  • 1
  • 4
0
votes
0 answers

SpeechSynthesizer Registry keys for RegistryPermission

how do I find out the registry keys, which the SpeechSynthesizer is using. I need to add them with RegistryPermission so I can use SpeechSynthesizer again. I denied in my own appdomain every access as standard and added the following ones so I think…
user3595889
  • 1
  • 1
  • 3
0
votes
1 answer

.NET Publisher Certificates

I'm using a book for studying for .NET certification, and I'm stumped on the issue of publisher certificates. Background: Windows Vista Home Basic SP2 Visual Studio 2008 .NET 3.5 SP1 Goal: Write a simple C# console application that has its…
user166701