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

.NET (Core and Framework)

 
GeneralRe: ERROR: InvalidProgramException Pin
Aaron VanWieren18-Jan-07 3:42
Aaron VanWieren18-Jan-07 3:42 
GeneralRe: ERROR: InvalidProgramException Pin
Dave Kreskowiak18-Jan-07 4:47
mveDave Kreskowiak18-Jan-07 4:47 
GeneralRe: ERROR: InvalidProgramException Pin
Aaron VanWieren18-Jan-07 4:58
Aaron VanWieren18-Jan-07 4:58 
GeneralRe: ERROR: InvalidProgramException Pin
Dave Kreskowiak18-Jan-07 4:39
mveDave Kreskowiak18-Jan-07 4:39 
GeneralRe: ERROR: InvalidProgramException Pin
Aaron VanWieren18-Jan-07 4:56
Aaron VanWieren18-Jan-07 4:56 
QuestionBindingSource with Combo - how to clear the combo intiailly Pin
Umair Ahmad17-Jan-07 2:50
Umair Ahmad17-Jan-07 2:50 
QuestionMMC Debuging Problem. Pin
PSK_16-Jan-07 22:57
PSK_16-Jan-07 22:57 
QuestionWrinting VB code in a Window Service Pin
tonymathewt16-Jan-07 20:28
professionaltonymathewt16-Jan-07 20:28 
I want to convert an application written in VB.NET into a Window service. I tried an example which writes to the event log every 10 secs. Following is the code i wrote in a timer's tick event:
Dim MyLog As New EventLog() ' create a new event log
' Check if the the Event Log Exists
If Not MyLog.SourceExists("MyService") Then
MyLog.CreateEventSource("MyService", "Myservice Log")
' Create Log
End If
MyLog.Source = "MyService"
' Write to the Log
MyLog.WriteEntry("MyService Log", "This is log on " & _
CStr(TimeOfDay), _
EventLogEntryType.Information)

The timer is enabled in the OnStart(). The Service got installed using the InstallUtil command. And I was able to start the service. But this was not my requirement. I tried to display a message box instead of writing to Log. So I replaced the above code with a line to display a messagebox; ie it brings up a messagebox every 10 secs. The service got installed but it did not start. It brought up a dialog saying "The service returned no error. This could be a problem with the internal Windows....". I tried writing similar code like showing a form but all returned the same problem. But it works with code written above but if it contain any MsgBox then the problem occurs. Is it possible to write pure VB code in a Window Service?
AnswerRe: Wrinting VB code in a Window Service Pin
Guffa17-Jan-07 20:20
Guffa17-Jan-07 20:20 
QuestionRe: Wrinting VB code in a Window Service [modified] Pin
tonymathewt17-Jan-07 22:52
professionaltonymathewt17-Jan-07 22:52 
AnswerRe: Wrinting VB code in a Window Service Pin
Dave Kreskowiak18-Jan-07 4:32
mveDave Kreskowiak18-Jan-07 4:32 
GeneralRe: Wrinting VB code in a Window Service Pin
tonymathewt18-Jan-07 15:56
professionaltonymathewt18-Jan-07 15:56 
GeneralRe: Wrinting VB code in a Window Service Pin
Dave Kreskowiak18-Jan-07 17:22
mveDave Kreskowiak18-Jan-07 17:22 
GeneralRe: Wrinting VB code in a Window Service Pin
tonymathewt19-Jan-07 0:25
professionaltonymathewt19-Jan-07 0:25 
GeneralRe: Wrinting VB code in a Window Service Pin
Dave Kreskowiak19-Jan-07 2:14
mveDave Kreskowiak19-Jan-07 2:14 
QuestionRe: Wrinting VB code in a Window Service Pin
tonymathewt19-Jan-07 16:23
professionaltonymathewt19-Jan-07 16:23 
AnswerRe: Wrinting VB code in a Window Service Pin
Dave Kreskowiak20-Jan-07 3:52
mveDave Kreskowiak20-Jan-07 3:52 
QuestionRe: Wrinting VB code in a Window Service Pin
tonymathewt21-Jan-07 20:51
professionaltonymathewt21-Jan-07 20:51 
AnswerRe: Wrinting VB code in a Window Service Pin
Dave Kreskowiak22-Jan-07 1:47
mveDave Kreskowiak22-Jan-07 1:47 
GeneralRe: Wrinting VB code in a Window Service Pin
tonymathewt24-Jan-07 1:00
professionaltonymathewt24-Jan-07 1:00 
AnswerRe: Wrinting VB code in a Window Service Pin
Guffa18-Jan-07 6:27
Guffa18-Jan-07 6:27 
QuestionRe: Wrinting VB code in a Window Service [modified] Pin
tonymathewt18-Jan-07 15:52
professionaltonymathewt18-Jan-07 15:52 
AnswerRe: Wrinting VB code in a Window Service Pin
Guffa19-Jan-07 5:37
Guffa19-Jan-07 5:37 
Questionsn is not working properly Pin
indian14316-Jan-07 20:20
indian14316-Jan-07 20:20 
AnswerRe: sn is not working properly Pin
ednrgc18-Jan-07 2:42
ednrgc18-Jan-07 2:42 

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.