C#编写的服务程序启动服务时报错误1053

Application.StartupPath

已知解决方案一:

       读写文件路径的问题 用 $"{Application.StartupPath}\config.txt"

原文地址:https://www.cnblogs.com/chen-lhx/p/7474644.html