Click here to Skip to main content
15,923,910 members
Home / Discussions / C#
   

C#

 
GeneralRe: Length of proportional width string Pin
SnuhEyeless15-Jul-04 12:34
SnuhEyeless15-Jul-04 12:34 
GeneralOLE Containers Pin
LZ-AT-WORK11-Jul-04 14:29
LZ-AT-WORK11-Jul-04 14:29 
GeneralPrinting Controls with Page Margins Pin
myNameIsRon11-Jul-04 13:51
myNameIsRon11-Jul-04 13:51 
GeneralRe: Printing Controls with Page Margins Pin
exhaulted12-Jul-04 3:41
exhaulted12-Jul-04 3:41 
GeneralRe: Printing Controls with Page Margins Pin
myNameIsRon13-Jul-04 13:21
myNameIsRon13-Jul-04 13:21 
GeneralRe: Printing Controls with Page Margins Pin
exhaulted13-Jul-04 22:57
exhaulted13-Jul-04 22:57 
Generalmemory Pin
ahmed mohamed abdelhameed11-Jul-04 12:51
ahmed mohamed abdelhameed11-Jul-04 12:51 
GeneralCAS Questions Pin
J. Dunlap11-Jul-04 12:43
J. Dunlap11-Jul-04 12:43 
I am developing a component that compiles code into a dynamic in-memory assembly (using CodeDOM). This in-memory assembly needs to run under restricted permissions, including limited access to the filesystem, but it also needs to have access to certain paths.

Now, I expect that the way to go about doing this is to make a code group, and a custom permission set to assign to that code group. However, I have some questions:


  • How do I make the assembly run under the code group I've defined? I can't use a URL, as the dynamic code can come from numerous places. Nor can I use a hash (for obvious reasons). So I guess a strong name would be the best option.
  • I'm wanting to allow the code to have read-only access to a certain directory. Since the directory path is determined at install time, how would I go about defining the FileIOPermission in the permission set XML file?
  • How do I best go about ensuring that the code group is installed before the component executes the restricted code? (If the code group is not in place, the code may recieve more permissions than it ought to.)


Sorry if some of my questions sound stupid; I haven't dealt with more than just basic CAS before (although I've read all the MSDN docs I've found on the subject). Blush | :O

TIA
GeneralKilling Off Spam with C# Pin
LZ-AT-WORK11-Jul-04 11:21
LZ-AT-WORK11-Jul-04 11:21 
QuestionSetting User Permissions? Pin
wakkerjack11-Jul-04 10:41
wakkerjack11-Jul-04 10:41 
AnswerRe: Setting User Permissions? Pin
LongRange.Shooter12-Jul-04 5:36
LongRange.Shooter12-Jul-04 5:36 
GeneralRe: Setting User Permissions? Pin
wakkerjack20-Jul-04 0:49
wakkerjack20-Jul-04 0:49 
GeneralRe: Setting User Permissions? Pin
LongRange.Shooter20-Jul-04 2:50
LongRange.Shooter20-Jul-04 2:50 
GeneralUsing Model Dialog in C# Pin
ilmian11-Jul-04 10:25
ilmian11-Jul-04 10:25 
GeneralRe: Using Model Dialog in C# Pin
DougW4811-Jul-04 12:52
DougW4811-Jul-04 12:52 
GeneralImage Measurements Pin
Rais Hafidz11-Jul-04 9:41
Rais Hafidz11-Jul-04 9:41 
GeneralRe: Image Measurements Pin
Christian Graus11-Jul-04 11:45
protectorChristian Graus11-Jul-04 11:45 
GeneralRe: Image Measurements Pin
Rais Hafidz11-Jul-04 14:12
Rais Hafidz11-Jul-04 14:12 
GeneralRe: Image Measurements Pin
Christian Graus11-Jul-04 14:15
protectorChristian Graus11-Jul-04 14:15 
GeneralRe: Image Measurements Pin
Rais Hafidz11-Jul-04 15:09
Rais Hafidz11-Jul-04 15:09 
GeneralRe: Image Measurements Pin
Rais Hafidz12-Jul-04 15:37
Rais Hafidz12-Jul-04 15:37 
GeneralRe: Image Measurements Pin
Christian Graus12-Jul-04 15:41
protectorChristian Graus12-Jul-04 15:41 
GeneralRe: Image Measurements Pin
Rais Hafidz12-Jul-04 16:55
Rais Hafidz12-Jul-04 16:55 
GeneralCreating a Preferences/Settings dialog. Pin
Marlun11-Jul-04 8:02
Marlun11-Jul-04 8:02 
GeneralRe: Creating a Preferences/Settings dialog. Pin
Roman Rodov11-Jul-04 20:31
Roman Rodov11-Jul-04 20:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.