
再一次,又是因為工作上的需要,希望能在網頁上啟動使用者端的應用程式
其實這也不是新聞啦!因為之前就寫過了,只是之前幾乎都是使用ActiveX
但現在使用ActiveX呢,要設一堆安全性,還可能要簽署(有需要可以參考使用經濟部工商憑證簽署ActiveX控制項),真是麻煩到爆
慢飛 發表在 痞客邦 留言(4) 人氣(20,964)
參考Apache log4net FAQ
A windows service runs as a user account specified in the services control panel. This account may have restricted permissions, make sure that the account has permission to create and write to files in the directory chosen for logging.
A windows service is launched by windows. The current directory in a service is set to the windows system directory (e.g. C:\Windows\System32). If you are loading the configuration file from the current directory then be aware that this path will not be the location of your assemblies. The best way to get the path to your assemblies is to use AppDomain.BaseDirectory. Note that the log4net internals never use the current directory.
慢飛 發表在 痞客邦 留言(0) 人氣(1,071)

個人認為寫Windows Service與寫一般Windows應用程式最大的不同在偵錯技巧及系統服務的安裝與設定,如果能夠掌握以上的兩個關鍵,那麼寫起來就如魚得水優游自若囉!
首先讓我們新增一個專案,取名為SampleService
慢飛 發表在 痞客邦 留言(5) 人氣(19,022)