开发者

Windows Service : most appropriate location of the service specific files (database)

I have a windows service开发者_C百科 that hosts a WCF end-point that is a front-end for a SQL Server CE database.

At the moment I have it at:

Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)

Question: what is most appropriate location for this file (database.sdf)?


Environment.SpecialFolder.ApplicationData is user-specific. If you have an installer for your service, I'd create a traditional C:\Program Files\MyWCFService folder and store it there.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜