Is there an easy way to develop services in .NET when I am not working as an administrator? There are a couple of issues that I have encountered. First of all, when you are debugging, you cannot just press F5 from visual studio, as it says that you need to install the services first and then start from the services admin tool. The problem is that without administrator rights, I cannot create or control services. We use Windows Server 2008 with AD to manage our users. Is there a specific set of rights that I can grant users that they can add / remove / start / stop services? What if we want developers to access the services that they actually created themselves? Also, once the service is running, what's the best way to debug it. Assumingthat the service is started and already running, Visual Studio can connect to the already running process, is there a better way so that debugging can start from the service entry point?
One thing that I usually do when working with services is to create a console application to run code during development. This means that you should have the service as a thin layer on the code that does this work, so you can call this code from your console application, but in any case this is not a bad idea.
I know that it definitely does not answer your question, but I hope it can be useful!
Users need permission to log in as a service.
Use "Administration", "Local Security Policy", "Local Policies", "Assign User Rights".
" ".
.
- , , - Sleep(20000); , . , Service Manager Maanger, (ServiceStatus = SERVICE_START_PENDING), .
Sleep(20000);
,
, . Visual Studio - , . , , . , , , .
In fact, you can give users the ability to start a service without being an administrator; now, if you can isolate them from certain services, I'm not sure.
Source: https://habr.com/ru/post/1774980/More articles:How do I get started with developing SharePoint Web Parts? - asp.netsetjmp / longjmp in c #. Is it possible? - c #The problem with spaces in the file path is the execution of the command line in C # - command-lineWhere is isnan source code? - gccXerces2-j XML Attribute / Element Schema Type Declaration Type - javaЛучшая практика и семантика вложенных функций пространства имен и использование extern "C" - c++How to handle non-ASCII characters in Java when using PDPageContentStream / PDDocument - javachanging the text of UILabel into a preview from the main view - iosSplit DateTime for date and time in ASP.NET MVC - datetimeadding multiple lines of text to detailTextLabel without creating a custom cell - iphoneAll Articles