help on Windows Service startup

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

I have build a windows service whcih read soime remote configuration in an
application file. That file path is pass as argument in the satrt parameter
of the service.

If I start the service without any config file related, it start fine but as
long as I ask for reading a configuration file it fail to start.

Error message displayed under event logger say that FileNotFound exception
but the config file is located at the same place where the service exe file
is.

What can be wrong.

My config file is pass to the service as follow :

Protected Overrides Sub OnStart(ByVal args() As String)
' Add code here to start your service. This method should set things
' in motion so your service can do its work.
RemotingConfiguration.Configure(args(0))
End Sub

Thnaks for help
regard
serge
 
Back
Top