I am having difficulty figuring out how to specifing a config file in a windows service. I am using C#, ICE 3.1 and ssl.
The service works fine when I use a simple TCP setup with no config file and create an adapter with endpoints directly in the code.
In the onstart method of my service I instantiate my server class which is an ICE Application. like...
protected override void OnStart(string[] args)
{
app = new server();
app.main(args, @"c:\test\config.server");
....
Permissions and access to the file are not the cause.
Can some one give me an example of how to do this, or how to specifiy the ICE properties directly in code eliminating the need for the config file?
Any help greatly appreciated!

Reply With Quote