Windows service won't start on a different machine
-
2012년 5월 2일 수요일 오후 10:17
I created a windows service under Network service account that works fine on my local computer, dev environment. I want to test it on a different computer so i copied and installed the msi file from inside the setup project to a different machine. Checked Allow remote connections on my local MSSQLSERVER instance.
When i try to start the service - it says the service on local computer started and then stopped. sdome services stop automatically is they are not in use by other services or programs.
So i checked the eventviewer, it says - Service cannot be started.System.InvalidOperationException: Cannot open MSSQLSERVER service on computer <name>
This is urgent, any help is appreciated.
Thanks
- 편집됨 Natty PLC 2012년 5월 3일 목요일 오후 9:02
모든 응답
-
2012년 5월 3일 목요일 오전 2:25
It may be DCOM settings but I'd get in touch with the developer.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. -
2012년 5월 3일 목요일 오후 8:53I don't understand. Could you elaborate a bit more.
-
2012년 5월 4일 금요일 오전 12:54
Some details here.
http://technet.microsoft.com/en-us/library/cc738214(v=ws.10).aspx
http://support.microsoft.com/kb/246054
http://support.microsoft.com/kb/176799
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.- 답변으로 제안됨 amber zhangModerator 2012년 5월 4일 금요일 오전 1:23
-
2012년 5월 4일 금요일 오후 5:25
I haven't created anything remotely related to DCOM. I have created a simple windows service in .net under network service account, that runs fine on my dev machine. It accesses the local database, looks up the subscriber list for the required events from a table and sends out an email to them. The config file for the service has the connection string for dev, test and prod servers. It works fine in dev machine with dev connection string. But doesn't work on a different computer:(
I don't know how to connect the dots between DCOM and my service.
-
2012년 5월 4일 금요일 오후 11:43
don't worry about it Dave. looks like the application was accesiing sql server service that was making it to fail. That is figured out now.
Thanks anyway.
- 답변으로 제안됨 Dave PatrickMVP 2012년 5월 5일 토요일 오전 1:23
- 답변으로 표시됨 Natty PLC 2012년 5월 7일 월요일 오후 4:58
-
2012년 5월 5일 토요일 오전 1:23
Good to hear its sorted.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

