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

.NET (Core and Framework)

 
QuestionDoes anybody actually use Code Access Security? Pin
Rob Philpott10-Jan-08 6:32
Rob Philpott10-Jan-08 6:32 
AnswerRe: Does anybody actually use Code Access Security? Pin
Dave Kreskowiak10-Jan-08 6:55
mveDave Kreskowiak10-Jan-08 6:55 
GeneralRe: Does anybody actually use Code Access Security? Pin
Patrick Etc.10-Jan-08 10:38
Patrick Etc.10-Jan-08 10:38 
GeneralRe: Does anybody actually use Code Access Security? Pin
Dave Kreskowiak10-Jan-08 10:46
mveDave Kreskowiak10-Jan-08 10:46 
QuestionRaiseEvent inside Workflow Activity Pin
Stephan Pilz10-Jan-08 3:27
Stephan Pilz10-Jan-08 3:27 
GeneralRe: RaiseEvent inside Workflow Activity Pin
Kevin McFarlane16-Jan-08 11:37
Kevin McFarlane16-Jan-08 11:37 
QuestionCreating event log sources before writing to them Pin
Mohammed El-Afifi8-Jan-08 21:02
professionalMohammed El-Afifi8-Jan-08 21:02 
GeneralRe: Creating event log sources before writing to them Pin
Dave Kreskowiak9-Jan-08 4:36
mveDave Kreskowiak9-Jan-08 4:36 
CreateEventSource has two purposes.

The first is if the event log didn't exist. In your case, if the Application log didn't exist, you'd have a difficult time writing to it. You have to create the log first before you can write to it. This, obviously, doesn't apply to the Application log on NT Kernel Windows because it's always created when Windows is installed. But, for custom event logs, you have to create them first before you write to them.

The second is security. Not every application can write to every event log. For example, the Security log is off-limits to your application. You have to be cleared to write to an event log. You also have to have a registered event source on the machine in order to write to an event log. If the event source you're using already exists on the machine, you don't need to to create one. YOu simply specify the existing event source.

If you don't specify a Source, th eonly log you can write to is the Application log, which is available for writes from any application, or I should say that it is available for write from any event Source.

Normally, if you create a custom event log, you'd do this at the time your application is installed, not during the execution of your app. Along with the log, you'd create a new Source that is mapped to that log. When your application is run, it would use this Source to write to the log.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




QuestionVideo encoder library Pin
DenisSavenkov8-Jan-08 13:00
DenisSavenkov8-Jan-08 13:00 
GeneralRe: Video encoder library Pin
Paul Conrad26-Jan-08 7:23
professionalPaul Conrad26-Jan-08 7:23 
GeneralRe: Video encoder library Pin
DenisSavenkov26-Jan-08 9:50
DenisSavenkov26-Jan-08 9:50 
QuestionWebRequest or ??? Pin
#realJSOP8-Jan-08 8:49
professional#realJSOP8-Jan-08 8:49 
AnswerRe: WebRequest or ??? Pin
Patrick Etc.8-Jan-08 12:08
Patrick Etc.8-Jan-08 12:08 
Questionsource of the event log associated to a windows service Pin
Mohammed El-Afifi8-Jan-08 1:11
professionalMohammed El-Afifi8-Jan-08 1:11 
GeneralRe: source of the event log associated to a windows service Pin
led mike8-Jan-08 6:47
led mike8-Jan-08 6:47 
AnswerQuickest/Best way to get lots of data into SQL/Acess etc... Pin
DrTip7-Jan-08 22:31
DrTip7-Jan-08 22:31 
GeneralRe: Quickest/Best way to get lots of data into SQL/Acess etc... Pin
Dave Kreskowiak10-Jan-08 8:53
mveDave Kreskowiak10-Jan-08 8:53 
GeneralRe: Quickest/Best way to get lots of data into SQL/Acess etc... Pin
DrTip10-Jan-08 10:04
DrTip10-Jan-08 10:04 
GeneralRe: Quickest/Best way to get lots of data into SQL/Acess etc... [modified] Pin
Dave Kreskowiak10-Jan-08 10:11
mveDave Kreskowiak10-Jan-08 10:11 
GeneralRunning .NET applications on Vista without admin privileges [modified] Pin
Patrick Etc.7-Jan-08 9:51
Patrick Etc.7-Jan-08 9:51 
GeneralRe: Running .NET applications on Vista without admin privileges Pin
Mark Salsbery7-Jan-08 10:25
Mark Salsbery7-Jan-08 10:25 
GeneralRe: Running .NET applications on Vista without admin privileges Pin
Patrick Etc.7-Jan-08 11:13
Patrick Etc.7-Jan-08 11:13 
GeneralRe: Running .NET applications on Vista without admin privileges Pin
Mike Dimmick7-Jan-08 11:17
Mike Dimmick7-Jan-08 11:17 
GeneralRe: Running .NET applications on Vista without admin privileges Pin
Patrick Etc.8-Jan-08 8:08
Patrick Etc.8-Jan-08 8:08 
QuestionUse of .Net 2.0 class in MSVS 2003 project Pin
boemie7-Jan-08 4:36
boemie7-Jan-08 4:36 

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.