Error while installing the .net windowservice :The name is already in use as either a server or service name -


I create a new window service on my machine and copy the whole project to the server and install the window service on the server I try the machine I can not install the service in my machine ...

I get the following error:

System.ComponentModel.Win32Exception occurred during an installation phase during an exception: Name is already in use as a sub-name or service display name

but If I install it in my local machine then it works.

This is because I have created the project in my machine and the service is registered in any IP in any way.

Serivce name also I have kept it unique.

Any suggestion PPL?

Your unique service name may be used as a service name or as a display name on the server machine is. This is not in use on your local machine, so it works.

Make sure that the service using your service is an older version of your service, before uninstalling the old version of the service from the server before attempting to install your new version.

If the service using your service is not an older version of your service, choose a better name, which is less likely to be used in the past.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -