Hello,
I'm wiritng a service, and when attempting to start the service (after installing using installutil) I receive this is the Application Log:
Service cannot be started. System.NullReferenceException: Object reference not set to an instance of an object.
at PxpParser.PxpParser.StartWatch() in C:\Visual Studio Projects\PxpParser\PxpParser.vb:line 135
at PxpParser.PxpParser.OnStart(String[] args) in C:\Visual Studio Projects\PxpParser\PxpParser.vb:line 363
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
Funny thing is my Line 135 reads like this:
watcher.Path = dump
AND dump is defined earlier (outside of the funciton that line 135 is in) on line 29 as:
Public dump As String = "c:\cytodata\dump"
AND My line 363 is just the StartWatch() in:
Protected Overrides Sub OnStart(ByVal args() As String)
StartWatch()
End Sub
So What the HECK is going on! I don't get it...This service should be starting up and I am pulling my hair out. I need some direction please. Thanks in advance!!
-- croag
I'm wiritng a service, and when attempting to start the service (after installing using installutil) I receive this is the Application Log:
Service cannot be started. System.NullReferenceException: Object reference not set to an instance of an object.
at PxpParser.PxpParser.StartWatch() in C:\Visual Studio Projects\PxpParser\PxpParser.vb:line 135
at PxpParser.PxpParser.OnStart(String[] args) in C:\Visual Studio Projects\PxpParser\PxpParser.vb:line 363
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
Funny thing is my Line 135 reads like this:
watcher.Path = dump
AND dump is defined earlier (outside of the funciton that line 135 is in) on line 29 as:
Public dump As String = "c:\cytodata\dump"
AND My line 363 is just the StartWatch() in:
Protected Overrides Sub OnStart(ByVal args() As String)
StartWatch()
End Sub
So What the HECK is going on! I don't get it...This service should be starting up and I am pulling my hair out. I need some direction please. Thanks in advance!!
-- croag