C#编写的服务程序启动服务时报错误1053 Application.StartupPath 已知解决方案一: 读写文件路径的问题 用 $"{Application.StartupPath}\config.txt"