简体   繁体   中英

Windows Service is not installing via Setup project

I have a windows service and a setup project to go along with it. When I run the setup project install command it gets part way through the install and then gives me an 1001 error saying it could not find the testservice.exe.config file.

I looked in my source project and that file is never generated... I have the .exe one but none of them are .exe.config files. How can I generate this file?

You certainly have App.config file. If you compile your service, there should be testservice.exe.config generated in Bin folder. Read When is an app.config created, when an app.exe.config and what is the difference for further clarification.

Sounds like you need to change your users.config file to App.config. After that Visual Studio should do the rest.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM