Click here to Skip to main content
16,007,610 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
SuggestionRe: Ajax call with RadioButtonList Pin
Eddy Vluggen6-Oct-14 8:18
professionalEddy Vluggen6-Oct-14 8:18 
AnswerRe: Ajax call with RadioButtonList Pin
sankarsan parida7-Oct-14 18:11
professionalsankarsan parida7-Oct-14 18:11 
QuestionWindows Service, design question, threading, how to write a delegate Pin
jkirkerx5-Oct-14 12:26
professionaljkirkerx5-Oct-14 12:26 
AnswerRe: Windows Service, design question, threading, how to write a delegate Pin
Kornfeld Eliyahu Peter6-Oct-14 1:03
professionalKornfeld Eliyahu Peter6-Oct-14 1:03 
QuestionRe: Windows Service, design question, threading, how to write a delegate Pin
Richard Deeming6-Oct-14 1:24
mveRichard Deeming6-Oct-14 1:24 
GeneralRe: Windows Service, design question, threading, how to write a delegate Pin
jkirkerx6-Oct-14 6:39
professionaljkirkerx6-Oct-14 6:39 
QuestionWindows Service, Little help getting started Pin
jkirkerx2-Oct-14 11:35
professionaljkirkerx2-Oct-14 11:35 
AnswerRe: Windows Service, Little help getting started [solved] Pin
jkirkerx2-Oct-14 12:35
professionaljkirkerx2-Oct-14 12:35 
It was the event log cal to CreateEventSource, I guess you have to manually create the key first and the parameters before you can use the service. And assign permissions as well.

So I rewrote it to this
Dim mySourceName As String = "smtpMessenger"
Dim myLogName As String = "Application"
Dim myServerName As String = Environment.MachineName

eventLog1 = New System.Diagnostics.EventLog()
If Not (System.Diagnostics.EventLog.SourceExists(mySourceName)) Then

 Dim eventSourceData As EventSourceCreationData = New EventSourceCreationData(mySourceName, myLogName)
 eventSourceData.Source = mySourceName
 eventSourceData.LogName = myLogName
 eventSourceData.MachineName = myServerName

 System.Diagnostics.EventLog.CreateEventSource(eventSourceData)

End If

eventLog1.Source = mySourceName
eventLog1.Log = myLogName
eventLog1.MachineName = myServerName


About event ID's, I assigned an ID of 1 for creating the install, but I get this message, any help would be appreciated.

The description for Event ID 1 from source smtpMessenger cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

Do I have to create a description file for each ID I assign to an event?
AnswerRe: Windows Service, Little help getting started Pin
Kornfeld Eliyahu Peter6-Oct-14 1:01
professionalKornfeld Eliyahu Peter6-Oct-14 1:01 
QuestionWindows Service that sends emails Pin
jkirkerx1-Oct-14 10:23
professionaljkirkerx1-Oct-14 10:23 
AnswerRe: Windows Service that sends emails Pin
Garth J Lancaster1-Oct-14 10:55
professionalGarth J Lancaster1-Oct-14 10:55 
GeneralRe: Windows Service that sends emails Pin
jkirkerx1-Oct-14 11:04
professionaljkirkerx1-Oct-14 11:04 
GeneralRe: Windows Service that sends emails Pin
Garth J Lancaster1-Oct-14 13:46
professionalGarth J Lancaster1-Oct-14 13:46 
GeneralRe: Windows Service that sends emails Pin
PIEBALDconsult1-Oct-14 11:32
mvePIEBALDconsult1-Oct-14 11:32 
GeneralRe: Windows Service that sends emails Pin
jkirkerx1-Oct-14 11:38
professionaljkirkerx1-Oct-14 11:38 
GeneralRe: Windows Service that sends emails Pin
PIEBALDconsult1-Oct-14 11:44
mvePIEBALDconsult1-Oct-14 11:44 
GeneralRe: Windows Service that sends emails Pin
jkirkerx1-Oct-14 11:45
professionaljkirkerx1-Oct-14 11:45 
AnswerRe: Windows Service that sends emails Pin
jschell3-Oct-14 9:11
jschell3-Oct-14 9:11 
GeneralRe: Windows Service that sends emails [Update on my progress] Pin
jkirkerx3-Oct-14 11:05
professionaljkirkerx3-Oct-14 11:05 
Questionasp:Menu select based on URL Pin
byka1-Oct-14 3:15
byka1-Oct-14 3:15 
AnswerRe: asp:Menu select based on URL Pin
Eddy Vluggen1-Oct-14 3:25
professionalEddy Vluggen1-Oct-14 3:25 
GeneralRe: asp:Menu select based on URL Pin
byka1-Oct-14 3:41
byka1-Oct-14 3:41 
QuestionRe: asp:Menu select based on URL Pin
ZurdoDev1-Oct-14 3:42
professionalZurdoDev1-Oct-14 3:42 
AnswerRe: asp:Menu select based on URL Pin
byka1-Oct-14 4:03
byka1-Oct-14 4:03 
QuestionRe: asp:Menu select based on URL Pin
ZurdoDev1-Oct-14 4:13
professionalZurdoDev1-Oct-14 4:13 

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.