views:

180

answers:

1

I wrote a windows service (Win32 API) that uses a .NET assembly written in C#. The service is set up to start automatically. In Windows XP all works well but under Vista the service is not automatically started (after reboot) because the .NET component is throwing an exception. But if I start the service manually, it works well. It seems to be a security problem. The service is running under the local system account. Can anybody help me? Thanks!

+1  A: 
  • what exception tells? message? stack trace?
  • what is in event log - application and system parts of it?
  • what .Net framework is used?

there is a possibility your service is being started earlier then something C# components depends on. With sc command it is possible to add right dependencies when creating service. Look at sc help create.

maplpro