1、在windows服务下面获得根目录: string assemblyFilePath = Assembly.GetExecutingAssembly().Location; string assemblyFilePath = 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交