我用c#寫了一個windows 服務,并把它打包到一個msi中。我在本機上執行msi后,能夠訪問這個windows服務,一切正常。我把這個msi copy到windows7上,也能正確安裝這個服務。但是我的控制程序不能訪問它,例如當我單擊一個按鈕,執行啟動服務操作時。就會彈出錯誤對話-"System.InvalidOperationException: Cannot open EnginuityICRClient service on computer '.'. ---> System.ComponentModel.Win32Exception: Access is denied"這是什么原因呢?是需要在windows服務中設置什么屬性,還是在msi中需要設置什么徐行!
- 2 回答
- 0 關注
- 811 瀏覽
添加回答
舉報
0/150
提交
取消