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

.NET (Core and Framework)

 
AnswerRe: .NET Framework - Restarting Framework Pin
Josh Smith19-Jun-06 9:59
Josh Smith19-Jun-06 9:59 
AnswerRe: .NET Framework - Restarting Framework Pin
Yogesh Kshatriya19-Jun-06 17:10
Yogesh Kshatriya19-Jun-06 17:10 
QuestionRe: .NET Framework - Restarting Framework Pin
Jun Du21-Jun-06 5:20
Jun Du21-Jun-06 5:20 
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 
When trying to write to the windows application log the following (vb.net code) works great on 2000 and XP but not on Vista:


Dim ev As New EventLog("Application", System.Environment.MachineName, "MyProgramName")
Dim LogText As String = "Hello world"
Dim EntryType As System.Diagnostics.EventLogEntryType = EventLogEntryType.Information
ev.WriteEntry(LogText, EntryType, LogEventID)
ev.Close()


What happens is the following excpetion is thrown on Vista:

System.Security.SecurityException: The source was not found, but some or
all event logs could not be searched. Inaccessible logs: Security.
at System.Diagnostics.EventLog.FindSourceRegistration(String source,
String machineName, Boolean readOnly)
at System.Diagnostics.EventLog.SourceExists(String source, String
machineName)
at System.Diagnostics.EventLog.VerifyAndCreateSource(String sourceName,
String currentMachineName)
at System.Diagnostics.EventLog.WriteEntry(String message,
EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String message,
EventLogEntryType type, Int32 eventID)



Can anyone offer any ideas on what extra is needed for Vista?

Thanks very much in advance for your help,

Rob
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 
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 

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.