Click here to Skip to main content
15,911,360 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: .NET Framework - Restarting Framework Pin
Jawz-X22-Jun-06 5:18
Jawz-X22-Jun-06 5:18 
GeneralRe: .NET Framework - Restarting Framework Pin
Jun Du22-Jun-06 5:34
Jun Du22-Jun-06 5:34 
QuestionAdd reference Pin
VK-Cadec19-Jun-06 2:33
VK-Cadec19-Jun-06 2:33 
AnswerRe: Add reference Pin
Dave Kreskowiak19-Jun-06 3:45
mveDave Kreskowiak19-Jun-06 3:45 
Questionsecurity problem when writing to windows application log Pin
Rob 1234516-Jun-06 14:35
Rob 1234516-Jun-06 14:35 
AnswerRe: security problem when writing to windows application log Pin
progload17-Jun-06 15:48
progload17-Jun-06 15:48 
GeneralRe: security problem when writing to windows application log Pin
Rob 1234518-Jun-06 16:52
Rob 1234518-Jun-06 16:52 
GeneralRe: security problem when writing to windows application log Pin
progload18-Jun-06 20:01
progload18-Jun-06 20:01 
Rob,

The prefered method would be to:

1) Run component with the lowest possible set of privileges.
2) Delay elevation of privileges as long as possible.
3) Restore original permissions as soon as possible.

Since your code requires Administrative rights to do what it needs to do, I would recomend that you "Sandbox" or Constrain, The actions of your code by applying security specific permissions.

This can be accomplished by using the RegistryPermissionAttribute Class, in the System.Security.Permissions namespace.

http://msdn2.microsoft.com/en-us/library/system.security.permissions.registrypermissionattribute.aspx[^]

You can find more information on it's use in Chapter 8 – Code Access Security in Practice of the Patterns & Practices Guide on msdn.(Constraining Event Logging Code and Requesting EventLogPermission)

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/THCMCh08.asp[^]

Hope this helps.

Progload
GeneralRe: security problem when writing to windows application log Pin
Rob 1234519-Jun-06 12:46
Rob 1234519-Jun-06 12:46 
GeneralRe: security problem when writing to windows application log Pin
progload19-Jun-06 21:51
progload19-Jun-06 21:51 
QuestionDataview RowFilter efficiency problem Pin
eatwork16-Jun-06 7:45
eatwork16-Jun-06 7:45 
AnswerRe: Dataview RowFilter efficiency problem Pin
Robert Rohde16-Jun-06 9:39
Robert Rohde16-Jun-06 9:39 
GeneralRe: Dataview RowFilter efficiency problem Pin
eatwork16-Jun-06 10:23
eatwork16-Jun-06 10:23 
AnswerRe: Dataview RowFilter efficiency problem Pin
Dave Kreskowiak18-Jun-06 2:50
mveDave Kreskowiak18-Jun-06 2:50 
QuestionPanel_paint method Pin
reshsilk16-Jun-06 4:23
reshsilk16-Jun-06 4:23 
AnswerRe: Panel_paint method [modified] Pin
Ravi Bhavnani16-Jun-06 4:46
professionalRavi Bhavnani16-Jun-06 4:46 
GeneralRe: Panel_paint method Pin
reshsilk16-Jun-06 6:03
reshsilk16-Jun-06 6:03 
GeneralRe: Panel_paint method Pin
Robert Rohde16-Jun-06 9:43
Robert Rohde16-Jun-06 9:43 
GeneralRe: Panel_paint method Pin
Guffa16-Jun-06 5:00
Guffa16-Jun-06 5:00 
QuestionMemory Corrupt (Migration from 1.1 to 2.0) Pin
elcheah15-Jun-06 23:22
elcheah15-Jun-06 23:22 
QuestionMysterious .NET error. [modified] Pin
MY120115-Jun-06 21:51
MY120115-Jun-06 21:51 
AnswerRe: Mysterious .NET error. Pin
leppie15-Jun-06 22:16
leppie15-Jun-06 22:16 
QuestionShared Assemblies Pin
Garg, Deepak15-Jun-06 20:39
professionalGarg, Deepak15-Jun-06 20:39 
AnswerRe: Shared Assemblies Pin
Justin_Joseph16-Jun-06 1:50
Justin_Joseph16-Jun-06 1:50 
QuestionCompare Listview Items and return the index Pin
eatwork15-Jun-06 4:49
eatwork15-Jun-06 4:49 

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.