Could Internal Windows Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow
Internal Windows Powershell Error
the company Business Learn more about hiring developers or posting ads with us Stack internal windows update server Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of
Windows Could Not Stop The Service On Local Computer. The Service Did Not Return An Error
4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up C# Windows Service not running correctly up vote 1 down vote favorite I've written a Windows Service (using windows could not stop the service on local computer error 1061 Visual Studio 2010 Premium, C#, .NET 4) to monitor a folder. All it does is detect when a change is made in the folder (a file/folder added, something deleted, etc) and writes the detections to a text file. Not an Event Log, just a normal .txt file. Now, it installs fine (I presume), and it shows up in Computer Management and allows me to run it. It supposed to write "Monitoring started" error 1061 the service cannot accept control messages at this time windows server 2012 to the file - but it doesn't. Then, when I try to stop the service it gives me this error: "Windows could not stop the FileMonitoring service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, contact your system administrator." And doesn't stop. Then, when I attempt to stop it again, I get this error: "Windows could not stop the FileMonitoring service on Local Computer. Error 1061: The service cannot accept control messages at this time." And then it stops. Does anyone have any idea how to resolve this issue? Before this service, I just made a simple service that wrote to a .txt file "Started" when the service started and "Stopped" when the service stopped, and it worked perfectly. All that's added into this is the used of FileSystemWatcher. Any help would be much appreciated, and I'll give any info/code snippets you need, just ask. Thanks in advance! EDIT: Here's some code for you: protected override void OnStart(string[] args) { watcher = new FileSystemWatcher(); watcher.Path = @"C:\temp\services\Watched"; watcher.Changed += new FileSystemEventHandler(LogFileSystemChanges); watcher.Created += new FileSystemEventHandler(LogFileSystemChanges); watcher.Deleted += new FileSystemEventHandler(LogFileSystemChanges); watcher.Renamed += new RenamedEventHandler(LogFileSystemRenaming); watcher.Error += new ErrorEventHandler(LogBufferError); watcher.EnableRaisingEvents = true; LogEntry("Monitoring Started."); } protected override void OnStop(
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about
Windows Could Not Stop The Service On Local Computer Error 1053
hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question error 1061 windows 10 _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up
C# The Service Cannot Accept Control Messages At This Time
Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Service created with NSSM will not start when logon as 'Local System' account up vote 0 http://stackoverflow.com/questions/4885080/c-sharp-windows-service-not-running-correctly down vote favorite 1 I'm trying to install the TOR component obfsproxy.exe as a service using NSSM but it only works if I modify the service to logon as my own user account. NSSM creates services with the logon account set to 'Local System'. When I try start the service Windows says 'Could not start, the service did not return an error'. The eventlog doesn't give any hints other than Program C:\Program Files (x86)\obfsproxy\obfsproxy.exe for service obfsproxy exited with http://superuser.com/questions/524757/service-created-with-nssm-will-not-start-when-logon-as-local-system-account return code -1073741515. If I change the logon user to my own user account (member of admin group) it works perfectly. What rights could my own account have that the 'Local System' account does not have. I dont want to force users to use their own accounts to start the service, I want to find out why it doesn't work and fix it so the default nssm installation works. services windows-services share|improve this question asked Dec 27 '12 at 12:23 Michelle 118126 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted You should look at: Network. Does obfsproxy.exe use any remote/mapped drives? Those will be specific to your account. Registry. If obfsproxy.exe wrote settings to the user section of the registry when it was installed, those settings will not be available to the Local System account. And be sure to check for a log file from obfsproxy.exe that documents a reason for its early exit... share|improve this answer answered Dec 27 '12 at 15:20 CoreTech 88665 thanks. obfsproxy.exe is a self standing executable and not part of an installer. It does not use any remote/mapped drives. I have put the log option in the list of arguments passed to the application when the service starts but it doesn't write anything to the log - it would seem that it exits before it opens the log for writing. –Michell
One games Xbox 360 games PC https://support.microsoft.com/en-us/kb/839174 games Windows games Windows phone games Entertainment All Entertainment Movies & TV Music Business & Education Business Students & educators Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security the service Internet Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Band Microsoft windows could not Lumia All Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft