windows-services

Unable to browse repository after setting visual SVN Server

馋奶兔 提交于 2020-02-20 09:49:12
问题 I have setup VisualSVN Server 2.1.7 on my windows 7 x64 system. I have used all default options : Installed path : C:\Program Files (x86)\VisualSVN Server Repositories path : D:\Repositories Server name, port : testsrvr, 8443 (use secure connection = checked) Using "subversion authentication". I have created a user and a test repository. Given "Read/Write" access to that repository for that user. When I try to browse the repositories, IE shows "Internet Explorer cannot display the webpage". I

Windows could not start service on Win Server 2008 R2 SP1 (Error 1053)

折月煮酒 提交于 2020-02-20 06:49:41
问题 This issue seems to be widely discussed, but I have problems with finding the solution in my particular case. My service is set up to be running under Local System account. On my first machine with Windows 7 SP1 (64-bit) installed, everything works as expected. But, just after I try to start the service on my second machine with Windows Server 2008 R2 SP1 (64-bit) , not even a second passes, and I'm facing this annoying error: Windows could not start the ProService service on Local Computer

Visual Studio - Debug vs Release

只愿长相守 提交于 2020-02-12 09:19:17
问题 I built a windows service, targeted for .NET 2.0 in VS 2008. I run it as a console app to debug it. Console app is working great. I put it on my local computer as a service, compiled in debug mode, still working great. I'm ready to release now, and suddenly, when I set it to release mode, the service compiles and installs, but nothing happens. (No code in service is running at all). I realize that the release vs debug mode are property configuration settings, but it seems that in release mode

Visual Studio - Debug vs Release

柔情痞子 提交于 2020-02-12 09:17:44
问题 I built a windows service, targeted for .NET 2.0 in VS 2008. I run it as a console app to debug it. Console app is working great. I put it on my local computer as a service, compiled in debug mode, still working great. I'm ready to release now, and suddenly, when I set it to release mode, the service compiles and installs, but nothing happens. (No code in service is running at all). I realize that the release vs debug mode are property configuration settings, but it seems that in release mode

System error 5 Access is denied when starting a .NET service

最后都变了- 提交于 2020-02-09 08:58:10
问题 When I try to start a service I created in Visual Studio I receive the following error: System error 5 has occurred. Access is denied. I am running the command line with elevated privileges, so it's not that problem. Is there any place I can look to see what error is occuring. 回答1: To get it to work I needed to add permissions to the output bin\debug folder for my service project. The Local Service account didn't have permissions to the output .exe file, and this was why the error was

How to detect if a Window can be Shown?

隐身守侯 提交于 2020-02-02 11:29:46
问题 When an application is running as a Windows Service (written in .NET), what would be the best way to detect whether or not a user is logged on, and when a user logs on, to be able to begin displaying the necessary dialogs, or when that user has logged off, so the display of dialogs can be prevented? I hope I phrased this correctly :) 回答1: You shouldn't be doing this at all from a service. First, a service by default doesn't have access to the desktop. You can change this in versions of

How to detect if a Window can be Shown?

十年热恋 提交于 2020-02-02 11:29:32
问题 When an application is running as a Windows Service (written in .NET), what would be the best way to detect whether or not a user is logged on, and when a user logs on, to be able to begin displaying the necessary dialogs, or when that user has logged off, so the display of dialogs can be prevented? I hope I phrased this correctly :) 回答1: You shouldn't be doing this at all from a service. First, a service by default doesn't have access to the desktop. You can change this in versions of

Windows service not showing up in installed services (and hence unable to start)

筅森魡賤 提交于 2020-02-01 07:28:26
问题 I just built a very simple Windows service to test something and built it to get the .exe. As per this article in MSDN, I also installed the service using the Visual Studio Command Prompt 2010 (ran as administrator) installutil TestService.exe . When using the installutil command, everything runs fine and I get a message saying that the service has been installed. Further, to start the service when I check inside the Services node (in Server Explorer in Visual Studio), I do not see any

It is possible to communicate to windows service from WCF

限于喜欢 提交于 2020-02-01 05:49:04
问题 I am bit new to windows services . I have WCF service running on one machine(machine 1) and windows service running on another machine(machine 2). I need to I need to do run a powershell script on machine 2 using the WCF service. I have no idea where to start and how to accomplish this. Further more I need to pass a message from WCF web service to Windows Service Please advice me or provide some good example or tutorial. EDIT I want to run a powershell script on machine 2. This powershell

Windows Service running Async code not waiting on work to complete

五迷三道 提交于 2020-01-31 08:40:27
问题 In Brief I have a Windows Service that executes several jobs as async Tasks in parallel. However, when the OnStop is called, it seems that these are all immediately terminated instead of being allowed to stop in a more gracious manner. In more detail Each job represents an iteration of work, so having completed its work the job then needs to run again. To accomplish this, I am writing a proof-of-concept Windows Service that: runs each job as an awaited async TPL Task (these are all I/O bound