Click here to Skip to main content
15,921,840 members
Home / Discussions / WPF
   

WPF

 
QuestionImage on form Pin
Syed Shahid Hussain8-Feb-10 11:11
Syed Shahid Hussain8-Feb-10 11:11 
AnswerRe: Image on form Pin
Not Active8-Feb-10 11:16
mentorNot Active8-Feb-10 11:16 
GeneralRe: Image on form Pin
Syed Shahid Hussain8-Feb-10 21:43
Syed Shahid Hussain8-Feb-10 21:43 
GeneralRe: Image on form Pin
Pete O'Hanlon8-Feb-10 21:52
mvePete O'Hanlon8-Feb-10 21:52 
QuestionWPF Pin
Syed Shahid Hussain8-Feb-10 11:08
Syed Shahid Hussain8-Feb-10 11:08 
AnswerRe: WPF Pin
Not Active8-Feb-10 11:17
mentorNot Active8-Feb-10 11:17 
AnswerRe: WPF Pin
V.8-Feb-10 21:25
professionalV.8-Feb-10 21:25 
QuestionProblem w/ ClickOnce deployment and EventLogs Pin
vsaratkar8-Feb-10 9:46
vsaratkar8-Feb-10 9:46 
Hi,

I have a wpf application and for DispatcherUnhandledException exception, I want to write an entry in system log.

if (!EventLog.SourceExists("ApplicationName"))
			    EventLog.CreateEventSource("ApplicationName", "Error Log");

EventLog.WriteEntry("ApplicationName", e.Exception.Message + "\n" + "Stack Trace:" + "\n" + e.Exception.StackTrace,EventLogEntryType.Error);



Above code is working fine on development machine on deployment, since I have administrative rights.

But on the client machine, user not having administrative rights can not run application on clickOnce deployment.
This is because EventLog.CreateEventSource method requires administrative rights.

ClickOnce deployment is per user deployment and very handy.

So, I was wondering if there is any technique to write event logs.

I am writing errorlog to a text file for now.

Thanks,
Vsaratkar
QuestionDragging outlook attached documents into a WPF app Pin
RugbyLeague8-Feb-10 3:59
RugbyLeague8-Feb-10 3:59 
AnswerRe: Dragging outlook attached documents into a WPF app Pin
Pete O'Hanlon8-Feb-10 4:24
mvePete O'Hanlon8-Feb-10 4:24 
GeneralRe: Dragging outlook attached documents into a WPF app Pin
RugbyLeague8-Feb-10 5:34
RugbyLeague8-Feb-10 5:34 
QuestionMVVM standardization [modified] Pin
Michael Sync7-Feb-10 5:46
Michael Sync7-Feb-10 5:46 
AnswerRe: MVVM standardization Pin
Wes Aday8-Feb-10 12:35
professionalWes Aday8-Feb-10 12:35 
QuestionDataTemplate with List binding Pin
pbalaga6-Feb-10 9:20
pbalaga6-Feb-10 9:20 
AnswerRe: DataTemplate with List binding Pin
Pete O'Hanlon6-Feb-10 9:58
mvePete O'Hanlon6-Feb-10 9:58 
GeneralRe: DataTemplate with List binding Pin
pbalaga6-Feb-10 21:35
pbalaga6-Feb-10 21:35 
GeneralRe: DataTemplate with List binding Pin
Pete O'Hanlon6-Feb-10 22:01
mvePete O'Hanlon6-Feb-10 22:01 
AnswerRe: DataTemplate with List binding Pin
Abhinav S6-Feb-10 10:06
Abhinav S6-Feb-10 10:06 
GeneralRe: DataTemplate with List binding Pin
pbalaga6-Feb-10 21:37
pbalaga6-Feb-10 21:37 
GeneralRe: DataTemplate with List binding [modified] Pin
Abhinav S6-Feb-10 21:45
Abhinav S6-Feb-10 21:45 
GeneralRe: DataTemplate with List binding Pin
Pete O'Hanlon6-Feb-10 23:46
mvePete O'Hanlon6-Feb-10 23:46 
QuestionQuick Question About Application Launch Pin
BlitzPackage6-Feb-10 2:48
BlitzPackage6-Feb-10 2:48 
QuestionHow to get Event for the Windows.shapes.path Pin
Joe Rozario5-Feb-10 17:14
Joe Rozario5-Feb-10 17:14 
QuestionReporting with silverlight Pin
jonatan_5565-Feb-10 3:43
jonatan_5565-Feb-10 3:43 
AnswerRe: Reporting with silverlight Pin
Pete O'Hanlon5-Feb-10 11:11
mvePete O'Hanlon5-Feb-10 11:11 

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.