Windows Service
-
Hello I' have a problem with starting a windows service programmed in VB.Net In all OS (win2000 and upper) the service runs sucessfully ,but in one specific computer with (win2000 Server) the service give's me this error: Service cannot be started. System.InvalidCastException: Cast from string "4/" to type 'Integer' is not valid. ---> System.FormatException: Input string was not in a correct format. at Microsoft.VisualBasic.CompilerServices.DoubleType.Parse(String Value, NumberFormatInfo NumberFormat) at Microsoft.VisualBasic.CompilerServices.IntegerType.FromString(String Value) --- End of inner exception stack trace --- at Microsoft.VisualBasic.CompilerServices.IntegerType.FromString(String Value) at RufosFileWatcher.RufosFileWatcher.OnStart(String[] args) at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state) Can someone help me on this ?? Thanks
-
Hello I' have a problem with starting a windows service programmed in VB.Net In all OS (win2000 and upper) the service runs sucessfully ,but in one specific computer with (win2000 Server) the service give's me this error: Service cannot be started. System.InvalidCastException: Cast from string "4/" to type 'Integer' is not valid. ---> System.FormatException: Input string was not in a correct format. at Microsoft.VisualBasic.CompilerServices.DoubleType.Parse(String Value, NumberFormatInfo NumberFormat) at Microsoft.VisualBasic.CompilerServices.IntegerType.FromString(String Value) --- End of inner exception stack trace --- at Microsoft.VisualBasic.CompilerServices.IntegerType.FromString(String Value) at RufosFileWatcher.RufosFileWatcher.OnStart(String[] args) at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state) Can someone help me on this ?? Thanks
It looks like the command line arguments you supplied to start the service don't have a space in them where one should be. Mind you, this is a wild guess based soley on the stack trace you posted. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
It looks like the command line arguments you supplied to start the service don't have a space in them where one should be. Mind you, this is a wild guess based soley on the stack trace you posted. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Thanks for your reply OK but I don´t pass any arguments to start the service. Do you mean OnStart(String[] args)? I just use the installutil -i (Service name) and to start the service I use the serviceController: Dim Myservice as new ServiceController("Name of the service") Myservice.start MyService.Refresh But if I use the start in the services panel it give´s me the same error. Thanks
-
Thanks for your reply OK but I don´t pass any arguments to start the service. Do you mean OnStart(String[] args)? I just use the installutil -i (Service name) and to start the service I use the serviceController: Dim Myservice as new ServiceController("Name of the service") Myservice.start MyService.Refresh But if I use the start in the services panel it give´s me the same error. Thanks
It looks like it's complaining about something in your OnStart code. Is this .EXE known to be exactly the same as the copies on the other machines? Does the machine have the correct version of the .NET Framework and any service packs on it? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
It looks like it's complaining about something in your OnStart code. Is this .EXE known to be exactly the same as the copies on the other machines? Does the machine have the correct version of the .NET Framework and any service packs on it? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome