开发者

Read Settings properties (C#) in a Windows service with Windows server 2008

开发者 https://www.devze.com 2023-02-06 20:46 出处:网络
I can´t start a windows service in W开发者_StackOverflow中文版indows Server 2008 because of reading Settings properties. It can be a little strange but if I quit just the code of Settings.Default.myP

I can´t start a windows service in W开发者_StackOverflow中文版indows Server 2008 because of reading Settings properties. It can be a little strange but if I quit just the code of Settings.Default.myProperty the service intalled correctly.

Obviously the same service intalled in Windows 7 works fine with the Settings.Default.. so Im thinking the problem is Windows Server.

any ideas?

thank you


Could be a permission problem. Make sure that you are installing the service as Administrator. The installation log could also give you a hint on what is causing it to fail.


In Windows Server the .NET Framework 3.5 is disabled by default. I had installed the Framework 4 but is not enough. When I enabled the framework everything works like a charm.

0

精彩评论

暂无评论...
验证码 换一张
取 消