S
Shane Lowenberger via .NET 247
Hi All,
I created a Windows Service in Visual Basic.NET and am having troubles. My Service installs fine, but when I start I get two exceptions thrown in the Event Log and the service stops. Here they are:
1: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at ServiceName.OnStart(String[] args)
This one happens before the service starts, then I get
2. Service cannot be started. System.InvalidCastException: Specified cast is not valid.
at ServiceName.OnStart(String[] args)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
Any ideas, I'm beating my head against the wall.
Thanks in advance,
I created a Windows Service in Visual Basic.NET and am having troubles. My Service installs fine, but when I start I get two exceptions thrown in the Event Log and the service stops. Here they are:
1: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at ServiceName.OnStart(String[] args)
This one happens before the service starts, then I get
2. Service cannot be started. System.InvalidCastException: Specified cast is not valid.
at ServiceName.OnStart(String[] args)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
Any ideas, I'm beating my head against the wall.
Thanks in advance,