मैं एक Windows Service
बनाने रहा हूँ। Service
हर रात कुछ donwload करना पड़ता है, और वजह मैं मामले मैं बाद में इसे बदलने के लिए की जरूरत है app.config में यूआरआई रखना चाहते हैं।app.config
मैं अपने app.config में एक यूआरआई लिखना चाहते हैं। क्या यह अवैध बनाता है और मैं यह कैसे संपर्क करना चाहिए?
<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 बस ampersand से बचें –