나는 Windows Service
을 만들고 있습니다. Service
은 매일 밤 무언가를 가져와야하기 때문에 나중에 변경할 필요가 있기 때문에 App.Config에 URI를 배치하고 싶습니다.App.Config에서 URI 문자열을 쓰는 방법
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
http://stackoverflow.com/questions/1328538/how-do-i-escape-ampersands-in-xml 그냥 앰퍼샌드를 벗어납니다. –