【发布时间】:2012-09-23 01:03:42
【问题描述】:
我正在制作Windows Service。 Service 必须每晚下载一些东西,因此我想将 URI 放在 App.Config 中,以防我以后需要更改它。
我想在我的 App.Config 中编写一个 URI。是什么使它无效,我应该如何处理?
<appSettings>
<add key="fooUriString"
value="https://foo.bar.baz/download/DownloadStream?id=5486cfb8c50c9f9a2c1bc43daf7ddeed&login=null&password=null"/>
</appSettings>
我的错误:
- Entity 'login' not defined
- Expecting ';'
- Entity 'password' not defined
- Application Configuration file "App.config" is invalid. An error occurred
【问题讨论】:
标签: c# configuration windows-services uri app-config