开发者

Windows Service Looking for app.config and not app.exe.config

I'm trying to install a Windows Service on a 2008 server. The service was built with VS2010, targeting the 3.5 framework. A simple setup project was used to deploy the service. The install works fine and the service starts up appropriately. The bizarre issue I'm having is when the service executable, MyService.exe, is run it is looking for MyService.config and NOT MyService.exe.config.

Is there any reason why the "exe" extension is dropped from the config file lookup at run time??? Has any开发者_Go百科one see this behavior before?


It looks like this was an issue in .Net 3.5. Here's a bug entry over at Microsoft Connect addressing the issue: http://connect.microsoft.com/VisualStudio/feedback/details/536491/default-app-config-file-name-breaking-change

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜