windows-services

Access to a windows share through UNC path, before the session opening

陌路散爱 提交于 2020-01-06 14:18:11
问题 I've to do a windows service which starts before the user logon. It's also mean that this service has to do have its own username/password. So how can I open a network share remotly without being logged? I'm in a windows domain, and the goal is to use some configured credentials to access the remote files I need. Do you have an idea? I just can't find anything to access easily to the server Edit: I'm sorry I made a mistake, the client computer isn't in the domain, the server is :( 回答1: If you

Installing Higher Versions of existing Windows Service in VS 2008

我的未来我决定 提交于 2020-01-06 14:17:15
问题 I am installing a Windows Service on my Desktop with a particular version. Then I revise my service and make some changes in the service.I upgrade my installer version.I also make the property RemovePreviousVersion true.When I start to Install the upgraded Windows Service, I get the below mentioned Error. Error: The specified service already exists . Stack Trace : At System.Process.ServiceInstaller.Install(IDictionary)at System.Configuration.Install.Installer.Install at WinDbSync1.Project

Error while running an installed Windows Service on dedicated Server

随声附和 提交于 2020-01-06 12:44:23
问题 Error while running an installed Windows Service on dedicated Server I installed my windows service on my virtual dedicated server using the exe file of my windows service. When I try to run my windows service from a virtual dedicated server then I get following error. Service cannot be started. System.InvalidOperationException: Could not find default endpoint element that references contract 'MyService.MyServSoap' in the ServiceModel client configuration section. This might be because no

Windows Service not installing

断了今生、忘了曾经 提交于 2020-01-06 11:54:29
问题 I'm attempting this walk-through: http://msdn.microsoft.com/en-us/library/ff649818.aspx On Step 6 I've had problems using Installutil so had to copy it into the Debug folder of the windows service exe . Now the command line runs but the service does not install and I get the following error message. Where do I start to find the problem? This is the commend line application that I'm using: 回答1: Use the Visual Studio Command Prompt to ensure that installutil is in your path. Make sure you run

Trying to start a new service - but having a permission problem

时光怂恿深爱的人放手 提交于 2020-01-06 08:23:29
问题 The error: I get a popup window when trying to manually start the windows service. It says: Windows could not start the XXX service on Local Computer. Error: 1069: The service did not start due to a logon failure. Post-build events: There are 2 Windows services in the solution and they have the same post-build events: REM C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /u "$(TargetPath)" REM C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /i /username=.

Hosting a WCF(mex endpoint) service inside a windows service on windows 2008

亡梦爱人 提交于 2020-01-06 07:56:11
问题 I'm hosting a WCF service inside a windows hosted service. When I start the WHS, I get the following error: The ChannelDispatcher at 'net.tcp://mysecreturl/' with contract(s) '"IClass"' is unable to open its IChannelListener. System.InvalidOperationException: A registration already exists for URI 'net.tcp://mysecreturl/Indexer/'. at System.ServiceModel.Channels.UriPrefixTable`1.RegisterUri(Uri uri, HostNameComparisonMode hostNameComparisonMode, TItem item) at System.ServiceModel.Channels

Service wont start under Windows 7: FAILED 1053

混江龙づ霸主 提交于 2020-01-06 06:05:47
问题 I wrote a C++ service that functions perfectly under Windows XP but fails to start in Windows 7. SC CREATE returns success, however, SC START returns FAILED 1053: The service did not respond to the start or control request in a timely fashion. From what I understand this is caused by timeout, but I receive the error immediately. Is this a problem with my service code or some setting in 7? Does Windows 7 send service control requests differently then XP? If so, how would I go about catching

Database insert on FileSystemEventHandler with Windows Service

女生的网名这么多〃 提交于 2020-01-06 05:43:05
问题 I have managed to get the Service working, along with the FileSystemEventHandler inserting into a text file, but this now needs to be changed to insert into a database and a text file. using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Diagnostics; using System.IO; using System.Linq; using System.ServiceProcess; using System.Text; using System.Threading.Tasks; using System.Timers

Deleting Windows user accounts remotely WCF and C#

流过昼夜 提交于 2020-01-06 04:31:06
问题 Can I programmatically and remotely create and delete Windows User accounts via WCF (self hosted) and C#? This works locally, but not via WCF... Ideas? DirectoryEntry localDirectory = new DirectoryEntry("WinNT://" + Environment.MachineName.ToString()); DirectoryEntries users = localDirectory.Children; try { DirectoryEntry user = users.Find(usernameAccount); users.Remove(user); }catch(SystemException) { System.Console.WriteLine("Error: User account not found in the system"); } } 回答1: It should

“There is insufficient memory. Save the document now.” error while opening word 2003 document

ⅰ亾dé卋堺 提交于 2020-01-05 10:34:29
问题 I have developed one windows service through which I am trying to open an word document. But when service tries to open document, it logs following error "There is insufficient memory. Save the document now." If I run the same program as normal windows application, it works fine but problem comes only when I try to run the program as windows service. I tried to google this problem, but there arent many answers about this problem. Is there any way to increase the memory limit for windows