【问题标题】:Windows Service Looking for app.config and not app.exe.configWindows 服务正在寻找 app.config 而不是 app.exe.config
【发布时间】:2011-03-06 21:17:26
【问题描述】:

我正在尝试在 2008 服务器上安装 Windows 服务。该服务是使用 VS2010 构建的,针对 3.5 框架。一个简单的设置项目用于部署服务。安装工作正常,服务正常启动。我遇到的奇怪问题是,当服务可执行文件 MyService.exe 运行时,它正在寻找 MyService.config 而不是 MyService.exe.config。

是否有任何理由在运行时从配置文件查找中删除“exe”扩展名???有没有人见过这种行为?

【问题讨论】:

    标签: .net-3.5 visual-studio-2010 windows-services


    【解决方案1】:

    看起来这是 .Net 3.5 中的一个问题。这是 Microsoft Connect 上解决该问题的错误条目: http://connect.microsoft.com/VisualStudio/feedback/details/536491/default-app-config-file-name-breaking-change

    【讨论】:

      猜你喜欢
      • 2012-09-20
      • 1970-01-01
      • 2013-12-08
      • 2010-10-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-17
      • 1970-01-01
      相关资源
      最近更新 更多