windows-services

Exception HResult 0x800a03ec when trying to open Excel with Microsoft.Office.Interop.Excel.Workbooks.Open()

喜你入骨 提交于 2019-12-19 03:14:19
问题 Following Exception is thrown if I try to open an excel file on a client machine: Exception from HRESULT: 0x800A03EC Inner Exceptions: (empty) Stack Trace: at Microsoft.Office.Interop.Excel.Workbooks.Open(String Filename, Object UpdateLinks, Object ReadOnly, Object Format, Object Password, Object WriteResPassword, Object IgnoreReadOnlyRecommended, Object Origin, Object Delimiter, Object Editable, Object Notify, Object Converter, Object AddToMru, Object Local, Object CorruptLoad) at (own

What are the security risks in running a Windows Service as “Local System”?

冷暖自知 提交于 2019-12-19 02:01:27
问题 I have written a .NET Windows service which runs as "Local System". Recently I read that, running as local system might expose system credential to hackers enabling them to take over the system. What are the risks involved and how can I prevent them when I run service as Local System. 回答1: Services running as LocalSystem are part of the system's trusted space. Technically speaking, they have the SeTcbName privilege. This means, inter alia , that such services can alter any security settings,

Run JAR as a Windows service [duplicate]

断了今生、忘了曾经 提交于 2019-12-18 18:54:06
问题 This question already has answers here : How to create windows service from java jar? (8 answers) Closed 6 years ago . I have a JAR file and I would like to register and run it as a Windows service. With a well-configured JAR and already registered JVM shutdown hooks it should not be a big work to do this. I already have a JAR with external lib dir, I can start it with java -jar My.jar and stop with Ctrl+C . I also checked JSL, JSmooth, and procrun from Apache with no working solution. I

What is the benefit of developing the application as a windows service?

笑着哭i 提交于 2019-12-18 18:47:06
问题 I am going to develop an application which will process online data (comming through socket) and it does not need any user interaction. I am thinking of a simple console application, but what about windows service does it provide extra benefit? (I know windows service does not need user logged in to run the service but I am asking about extra benefit) 回答1: On the top of my head: You can control the user (and the rights associated with this user account) which starts the process an

How to call Webservice from Windows Service?

梦想的初衷 提交于 2019-12-18 17:36:07
问题 How to call Webservice from Windows Service? I am having one webservice on my Webserver. I have a windows-service to trigger that webservice. So I just want to integrate and call my webservice from my windows service. How can I do that? EDIT: TempWindowService is name of my windows application MyServ is the name of my reference of my webservice. TempWindowService.MyServ newService = new TempWindowService.MyServ(); newService.BatchProcess(); Here BatchProcess() is the webmethod under my

Getting the error “The 'VFPOLEDB.1' provider is not registered on the local machine” even after installing and registering the provider

杀马特。学长 韩版系。学妹 提交于 2019-12-18 15:52:08
问题 Alright, so I've got a Windows service that has a FileSystemWatcher that watches an output folder for some Visual FoxPro database files. And it leverages the VFPOLEDB.1 provider to read those files. I cannot go away from this provider because it's being used in production. However, I've never had to support this application before so that's why my development box isn't setup for it. Here is my environment: Windows 7 x64 Visual Studio 2005 .NET 2.0 Windows service so, when I first started

Some Services stop automatically if they are not in use by other services

十年热恋 提交于 2019-12-18 14:09:54
问题 Error "SOME SERVICES STOP AUTOMATICALLY IF THEY ARE NOT IN USE BY OTHER SERVICES" while trying to start a windows service. I have a service that does not use the windows service config file and uses static properties - it works fine Now, i make use of app.config file and rebuild my setup project + the service project. Now i install the service and then try to start the service - i get the following error: SOME SERVICES STOP AUTOMATICALLY IF THEY ARE NOT IN USE BY OTHER SERVICES Service logs

Wamp Server Error [Local Server - 2 of 3 services running]

╄→гoц情女王★ 提交于 2019-12-18 13:34:29
问题 I am new to wamp servers and trying to install wampServer 3.1.0 on my windows 10 machine . Somehow it is not installed properly and is having configuration error . At present "Wamp server is still in orange state and is throwing the error" 2 of 3 services running As of my understanding either of Apache,MySQl orPHP is not working . On further investigation I found that Apache is ok. But on running mysql.exe(C:\wamp64\bin\mysql\mysql5.7.19\bin) it is throwing : ERROR 2003 (HY000): Can't connect

Using a FileSystemWatcher with Windows Service

假装没事ソ 提交于 2019-12-18 13:27:54
问题 I have a windows service which needs to monitor a directory for files and then move it to another directory. I am using a FileSystemWatcher to implement this. This is my main Service class. public partial class SqlProcessService : ServiceBase { public SqlProcessService() { InitializeComponent(); } protected override void OnStart(string[] args) { FileProcesser fp = new FileProcesser(ConfigurationManager.AppSettings["FromPath"]); fp.Watch(); } protected override void OnStop() { } } This is my

Getting user Idle time in C#?

佐手、 提交于 2019-12-18 13:19:20
问题 I found this tutorial on how getting Idle time of the user Idle Time. The problem is that it will only work if the application runs on the user. And my application runs on SYSTEM. How can I get the idle time? or if PC is idle? 回答1: As I understood, you are okay with the result of GetLastInputInfo function. Thus I would suggest the following. Now, suppose you have executable A that runs under Local System account. Create executable B that will gather relevant system information (with the help