help on Windows Service startup

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top