开发者

Recognizing alias names of servers

I have a windows service which runs based on the machine name or ip assigned to it. I am facing problems running it when i have a failover server and alias names described below.

There is a main server in one subnet with machine name like server_a and a failover server in another subnet with name server_b

Both the systems are created with Alias name server and this name is configured in the service configuration for my softwares service.

Both the systems are configured with different IP address and there is no DNS server configured in the n/w.

My services will connect to main service if the server configuration is configured with actual machine name (server_a/server_b) or with IP but will not connect if Alias name (server) is configured.

Services a开发者_开发知识库lways show error code as “Unable to read Configuration ! : Code 1” if started in debug mode,if not able to connect.

We use the gethostbyname function to resolve the name.

Can anybody let me know anyway by which i can make the service work without changing the name everytime.


Services always show error code as “Unable to read Configuration ! : Code 1” if started in debug mode,if not able to connect.

I think you need to dig into the code and find out where this particular error message is coming from, and exactly what it means. I for one have no idea what particular application ("service") you are running, but I imagine this error message is generated within it, and in that code lies the answer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜