Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
GeneralRe: Insert dataset into database Pin
PIEBALDconsult23-Jun-10 18:17
mvePIEBALDconsult23-Jun-10 18:17 
GeneralRe: Insert dataset into database Pin
shoubi23-Jun-10 19:21
shoubi23-Jun-10 19:21 
Questiongetting the local port as netstat in C# + small doubt on network connection Pin
manustone23-Jun-10 9:37
manustone23-Jun-10 9:37 
AnswerMessage Closed Pin
23-Jun-10 20:49
stancrm23-Jun-10 20:49 
GeneralRe: getting the local port as netstat in C# + small doubt on network connection Pin
manustone23-Jun-10 22:02
manustone23-Jun-10 22:02 
Question[newbie] EventLog log = new EventLog() does not work within catch {} block Pin
jon-8023-Jun-10 5:44
professionaljon-8023-Jun-10 5:44 
AnswerRe: [newbie] EventLog log = new EventLog() does not work within catch {} block Pin
Ennis Ray Lynch, Jr.23-Jun-10 5:59
Ennis Ray Lynch, Jr.23-Jun-10 5:59 
GeneralRe: [newbie] EventLog log = new EventLog() does not work within catch {} block Pin
jon-8023-Jun-10 6:23
professionaljon-8023-Jun-10 6:23 
Does your exception block throw an exception?
No, but throwing the exception prior to calling the event log makes the logging code unreachable, and, this works fine within Visual Studio 2010.

Do you have a generic exception handler?
No, because it is not required for now.
Does your IIS user have access to write to the event log?
I am using Administrator on a local PC, what user does VS 2010 use (to confirm)?

Did you use System.Diagnostics.EventLog.CreateEventSource and System.Diagnostics.EventLog.WriteEntry? (Probably not, since you new'd EventLog)
System.Diagnostics.CreateEventSource is not even shown up within Visual Studio 2010, even though it's a static method. Problem with Intellisense maybe.
Jon

AnswerRe: [newbie] EventLog log = new EventLog() does not work within catch {} block Pin
Abhinav S23-Jun-10 6:01
Abhinav S23-Jun-10 6:01 
GeneralRe: [newbie] EventLog log = new EventLog() does not work within catch {} block Pin
jon-8024-Jun-10 1:01
professionaljon-8024-Jun-10 1:01 
QuestionDirect X 9 from XNA? Pin
venomation23-Jun-10 5:25
venomation23-Jun-10 5:25 
AnswerRe: Direct X 9 from XNA? Pin
harold aptroot23-Jun-10 5:36
harold aptroot23-Jun-10 5:36 
QuestionTSR Pin
ayandelhi23-Jun-10 5:21
ayandelhi23-Jun-10 5:21 
AnswerRe: TSR Pin
Luc Pattyn23-Jun-10 5:26
sitebuilderLuc Pattyn23-Jun-10 5:26 
AnswerRe: TSR Pin
loyal ginger23-Jun-10 5:27
loyal ginger23-Jun-10 5:27 
AnswerRe: TSR Pin
Keith Barrow23-Jun-10 5:28
professionalKeith Barrow23-Jun-10 5:28 
AnswerHey Pin
Ennis Ray Lynch, Jr.23-Jun-10 6:00
Ennis Ray Lynch, Jr.23-Jun-10 6:00 
JokeRe: Hey Pin
Paladin200023-Jun-10 6:08
Paladin200023-Jun-10 6:08 
GeneralRe: Hey Pin
Keith Barrow23-Jun-10 6:10
professionalKeith Barrow23-Jun-10 6:10 
GeneralRe: Hey Pin
DaveAuld23-Jun-10 6:27
professionalDaveAuld23-Jun-10 6:27 
QuestionAccessing the user.config file on a newly installed application from the installer itself Pin
Kaare Tragethon23-Jun-10 5:10
Kaare Tragethon23-Jun-10 5:10 
AnswerRe: Accessing the user.config file on a newly installed application from the installer itself Pin
hwswin23-Jun-10 5:54
hwswin23-Jun-10 5:54 
GeneralRe: Accessing the user.config file on a newly installed application from the installer itself Pin
Kaare Tragethon23-Jun-10 6:28
Kaare Tragethon23-Jun-10 6:28 
GeneralRe: Accessing the user.config file on a newly installed application from the installer itself Pin
hwswin23-Jun-10 6:44
hwswin23-Jun-10 6:44 
GeneralRe: Accessing the user.config file on a newly installed application from the installer itself Pin
Kaare Tragethon23-Jun-10 6:53
Kaare Tragethon23-Jun-10 6:53 

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.