Click here to Skip to main content
15,890,512 members
Everything / Service

Service

service

Great Reads

by Safak Tarazan
Usage of services, alarm manager and broadcast receivers
by Michael Haephrati
Windows Services are powerful little beasts and encountering them is unavoidable when developing under Windows
by wayvirgo
How to use the Google Calendar API from VB.NET.
by honey the codewitch
Add the ability to run a service in console mode and to control or install your service from the command line

Latest Articles

by Michael Haephrati
Windows Services are powerful little beasts and encountering them is unavoidable when developing under Windows
by Hugo G Fernandez R
In this article, I will explain and show step by step how to implement through the swashbuckle library a good and useful documentation for your RESTful APIs created under the ASP.
by Michael Haephrati
An up to date article about NT Services
by honey the codewitch
Add the ability to run a service in console mode and to control or install your service from the command line

All Articles

Sort by Updated

Service 

22 Aug 2010 by #realJSOP
You should be putting the data file into the appropriate user-specific folder.
15 Nov 2010 by #realJSOP
Writing to the registry requires admin privileges. You probably have to install it from the admin account on the machine.
24 Nov 2010 by #realJSOP
Without seeing your .clientconfig file for your Silverlight app AND your web.config file for your service, we really can't help you.
27 Nov 2010 by #realJSOP
Googling this phrase - "deploy java servlet" - revelaed 500,000 hits, and the very first one has the title "Introduction to Java Servlets, Developing your first Java Servlet".Seriously dude - this is the internet, any question you might come up with has almost always been asked/answered...
7 Dec 2010 by #realJSOP
You could just have the client app periodically check to see if the server app is running...
19 Dec 2010 by #realJSOP
If you don't trust your admins, fire them, and then hire someone that you do trust. We won't help you write a virus - EVER.If you write a service that logs when it's been stopped, and by whom, you can at least detect and eliminate the threat without having to "write a virus".
20 Dec 2010 by #realJSOP
Yeah, you can set up a windows service that allows connections via TCP/IP sockets, WCF, or whatever. At that point, you can make the service do anything you want on the remote machine.
15 Apr 2011 by #realJSOP
I refuse to help someone writing software that effectively spams people's phones - even if it's not intended for MY phone. As far as I'm concerned, you're on your own. Try using google.
29 Apr 2011 by #realJSOP
No. If an application requires an interface, you can't open it from a Windows service (at least not in Vista/Windows 7). In XP (and earlier), you can set the service to "interact with the desktop", and even then, that will only work when a user is logged in.
16 Jun 2011 by #realJSOP
A service can't have a UI. You have to do like SA said - create a separate app (that lives in the system tray) that can communicate with and control the service.
20 Jun 2011 by #realJSOP
A service cannot display a messagebox, and neither Vista and Windows 7 do not allow/support "interacts with desktop" ( a feature of windows services in XP and older). What you want to do is create a system tray application that can communicate with the service, and have that app display...
12 Jul 2011 by #realJSOP
The VB version doesn't have tia.Stop() at the top of the tick event handler.I have to ask why you're stopping/starting the timer like that though. Instead of doing that, set a flag indicating the timer event is busy, and if it is when a timer event comes through, just exit the...
4 Aug 2011 by #realJSOP
You have to add an Installer project to your solution. Google is your friend.
5 Aug 2011 by #realJSOP
0) You haven't told us HOW you're calling the stored proc from your service. However, if you're using the SqlConnection/SqlCommand method, you can improve performance by only creating/opening the connection and command objects one time for each update/insert cycle. // allocate your...
2 Sep 2011 by #realJSOP
I wrote an article that kinda does that.Synchronicity - A Folder Synchronizing Application[^]
1 Dec 2011 by #realJSOP
You can't put files in the system32 folder (in Vista/Win7). That's a security violation. Try putting them into their own folder inside "program files (x86)".
14 Dec 2011 by #realJSOP
I bet you installed the service in such a way that it doesn't have permission to write to the event log. Try taking the log stuff out as a test.
16 Dec 2011 by #realJSOP
If you're talking about backing up to the laptop, that's a REALLY bad idea.
28 Dec 2011 by #realJSOP
You can't really integrate a Windows service with a web page, but using a database to specify the data used by the service is certainly viable, and is the way i would do it.
2 Feb 2012 by #realJSOP
I am developing a web service that needs to sit on a secure server. I've done this in the web config:
10 May 2013 by #realJSOP
Determine the nature of the entry assembly
10 Sep 2014 by #realJSOP
VS2013, Win7 (32-bit)I'm writing a WPF app that utilizes MEF, and one of the modules (the one I'm testing) uses interop services. When I run the app to test the module, the app shuts down with no indication that anything is wrong. I've put try/catch blocks around the code where it stops, and...
13 Oct 2016 by #realJSOP
You can't set a timeout on a per-method basis, but could do something like what is described at this link:Crafting a Task.TimeoutAfter Method | Parallel Programming with .NET[^]My google search was "c# timeout with task".Here's some minimal code that may work for you:///...
18 Oct 2016 by #realJSOP
Sounds like it's broke to me...
19 Mar 2018 by #realJSOP
You may need something like this in your wcf config:
4 Apr 2018 by #realJSOP
Try setting the ftpwebrequest.timeout value to -1 (unlimited). The MS docs say it's set to that, but it's actually set to 100000 (100 seconds).
12 Mar 2019 by #realJSOP
You're essentially "crossing the streams", and .Net is gonna complain. Welcome to Microsoft's newest forced incompatibility infrastructure. If it were me, I would get refactor the web service to use .Net Framework instead of .net Core (it honestly shouldn't be difficault to do), and get on with...
12 Jun 2013 by 09hadi
Hi, I have developed a windows service in c# on visual studio 2008. When I compile it there is no error but when I install it using the devloper's command prompt I get this:Installing assembly 'F:\PTCL\Projects\clickService\clickService\bin\Debug\clickService.exe'.Affected parameters are: ...
23 Jun 2013 by 09hadi
Hi, I have developed a windows service and installed it but the thing is I want the service to perform some actions over and over again. I thought of using the OnContinue event but it fires only when the service has been manually paused and then resumed. When I let the code in on the OnStart...
7 Jul 2013 by 09hadi
I used threading to solve the problem.
9 Apr 2023 by 0x01AA
OnStart and OnStop are not events the .NET object System.ServiceProcess.ServiceBase does expose. These are virtual Methods you can ovveride in case you derive from ServiceBase. For more infromation please read this: Register-ObjectEvent...
28 Oct 2015 by 1234ctk
I did a project with a wcf service- which run as windows service, and a user interface that using the wcf service-I activated it on the same computer and it worked.my question is-what should I do in order to separate the project to 2 computers-that the wcf service will be in one computer and...
24 Aug 2011 by 1prince
I have a VB Project related to travels domen, I have to developed new module for " Hotel Booking System " I have to access to a 3rd party web service " http://wsdev.ccratravel.com/ws/HotelWebService.asmx?WSDL "its have 6 web service Method : GetHotels , GetHotelInfo , GetRooms ,...
5 Jul 2011 by 2irfanshaikh
This might be because of:1. Web Reference URL in config file.2. Port (I think the port is blocked). I think you should try to PING and telnet on the deployed IP and port.
6 Feb 2012 by 2irfanshaikh
To solve you problem, you can use message Queue service. While shutting down, add a queue in the Message Queue with all details. and when windows service start check for the Queues in the Message Queue and insert the same data in the database.If you don't want to use the Message Queue, then...
25 Nov 2012 by __TR__
You can refer this similar threadweb services in asp.net web application[^]Here is a good article on web serviceYour first C# Web Service[^]More here[^]You can also check Google[^]
12 Jul 2012 by _Amy
Hi,Please refer these links:Client Side Gridview Pagination using JQuery[^]Load ASP.Net User Control Dynamically Using jQuery[^]All the best.--Amit
29 Oct 2015 by _AQ
Hi,I have Created Windows_Form_Application, I need to run this app in background whenever windows starts... (Don't say, Put your Application in Start up). By adding Windows Service application Can it be possible to run Form application in background? Thanks in advance..
10 Sep 2014 by _Asif_
This could be you way. How to Debug or Test your Windows Service Without Installing it...[^]A part from that you can find tons of related Article on Google. Just give it a try.
22 May 2015 by _Asif_
Check this article How to create Windows Service in C/C++?[^]
27 May 2015 by _Asif_
Yes, you can! Find a detail explanation and simple examples here[^]This[^] is an elegant way of doing the same thing but in a much better way!
28 Nov 2015 by _SurajP
Hello,I am using AddIPAddress and DeleteIPAddress methods from a windows Service.To use these APIs, I need the service to Logon from the "Local System" account which is something I want to avoid.Is there another way of doing this?Thanks!
1 Dec 2015 by _SurajP
Figured this:-The restricted user can be made a member of the Network Configuration Operators group. Network Configuration Operators Members of this group can make changes to TCP/IP settings, and they can renew and release TCP/IP addresses. This group has no default members. • and No...
3 Sep 2013 by _tasos
You can set a chron job, e.g. a url that will generate the daily report. The chron job is set at the web server, and you can set the timespan (every hour, every day, etc) to call the url. Alternatively, you could set a trigger in the Global.asax file (e.g. the Application_BeginRequest event)...
28 Mar 2012 by _Zorro_
Hello,Did you look for information on services for Windows? (Not sure about the subject in C++, I suppose if you have access to the framework you can do the same).I would look on this end (this is the first article I found, just to give you the idea[^])Services remain "on" even if...
26 Feb 2013 by A Roychowdhury
Hi,Am new to VB.Net. I have created a windows service. Where my simple goal is to create an Excel file and save it to my local drive. I have used the following code. Dim oExcel As Excel.Application Dim oBook As Excel.Workbook Dim oSheet As Excel.Worksheet ...
22 Dec 2014 by a.anvesh
I need the service to start at runtime. I need to capture log on / logoff / switch user events. I haven't gotten to that yet, but it ispossible from within a windows serviceCould you please help me in that...ASAP..ThanksAnvesh
5 Jun 2011 by a99607
Hello,I've created a service and installed it on my win2007 platform. I checked the "Allow to interact with desktop" checkbox. But still' it seems that my service runs in background (the service suposed to run some other application, which is supposed to be seen, but I only see it in the...
11 Feb 2013 by Aarti Meswania
In visual studio .Net I want to create setup of Winform application with a window service in single setup package, it is possible?Thanks in Adv.:)
16 Mar 2012 by Abbas_here
Dear frds,I want secure my web service, so only authorize user can take refrence, and internal user who having internal domain also can able to take reference of the web services,Please tell me mechanism for authenticate them.Thanks in advanced.
16 Sep 2013 by abdul subhan mohammed
Hi,i'm trying to fetch data from sql server using web services parameterized method in ASP.NETBUT unfortunately i'm not getting this...i want to know how to pass the parameters to web services method from/in ASP.NETI M USING STORED PROCEDURES TO DO...
25 May 2015 by abdul subhan mohammed
Hope you want to call json from your aspx page. if it so, then use this code. function GetDescription(a) { // alert(a); // the dropdown item selected value $.ajax({ type: 'POST', contentType: "application/json;...
23 May 2019 by abdul subhan mohammed
Dear All, I have an encrypted file and I'm trying to decrypt it by using FileStream C#. I'm passing the file path to create file-stream and when I'm trying to fetch the data from the FileStream, the data is null. SampleCode FileStream fs = new FileStream(@"" + offlinePath, FileMode.Create); ...
10 Jun 2019 by abdul subhan mohammed
Dear All, I'm trying to create windows service to upload data from the client machine to the server using Ajax/web-server to SQL database. Here, the window's services will create one log file. The file on the client's machine is encrypted, so the windows services will first decrypt and then...
21 Jan 2012 by Abey Thomas
This is a typical example where a distributed software architecture is required.I would help you with the top-level design of the systemsSolution -1There should be 3 main components- ASP.NET website- Database- WCF polling serviceIn this design, the web user will visit the...
12 Jul 2012 by Abhijit Barua
I bind gridview using web service & jquery. Now how can i paging gridview.
8 Jan 2011 by Abhinav S
You need to keep the service project running (and point to the proper localhost port number (ie localhost:50582).
4 Feb 2011 by Abhinav S
Make sure your service startup type settings are automatic so that in case your system reboots the service restarts automatically.
8 Mar 2011 by Abhinav S
Make sure the URL to the web service is correct on the server.You will need to keep the URL dynamic (as in load from a text file or database) so that you can change this as and when required - without compiling your code.
18 Apr 2011 by Abhinav S
Try debugging the code till you can. Then use a tool like TCPMon or Fiddler to read data that goes over the wire - it may help you get to the root of the problem.
15 Jul 2011 by Abhinav S
If you try to configure your service, you will notice a 'dependencies' tab.You can always set MySQL to be a dependent service. It will start before your local service start.You can also configure this via the command prompt - sc config depend=
17 Jul 2011 by Abhinav S
Windows Service is running continuously (Windows takes care of that) - so if you want to execute code at certain intervals, it is a good choice.
7 Sep 2011 by Abhinav S
Make sure these external dll's are available and registered on your client machine.
19 Mar 2012 by Abhinav S
Have a look athttp://msdn.microsoft.com/en-us/library/bb332338.aspx[^]http://msdn.microsoft.com/en-us/library/bb655893%28v=vs.90%29.aspx[^]
21 Mar 2012 by Abhinav S
TryHow to: Host a WCF Service in IIS[^]http://www.youtube.com/watch?v=iptFJaeJ-F0[^]http://blogs.msdn.com/b/amitlale/archive/2007/05/21/hosting-wcf-service-in-iis.aspx[^]
25 Jul 2012 by Abhinav S
I guess you meant WCF and web services.Try What's the Difference between WCF and Web Services?[^].If you still need more information, try What is the difference WCF and Web services?[^].
3 Jan 2013 by Abhinav S
These were three modes of communication.WCF is a single concept that defines bindings to do each of these tasks.You need to learn what type of communication is required for you and then use the appropriate bindings in WCF.
20 May 2013 by Abhinav S
Here is a basic article that would help you - http://www.csharp-examples.net/restart-windows-service/[^].Of course, you need admin privileges to start and stop services.
22 Aug 2013 by Abhinav S
Two things1) Make sure any dependent services are started.2) You have enough free memory.
2 Apr 2014 by Abhinav S
Try How to Write a .NET Windows Service with Console Mode[^].
14 May 2014 by Abhinav S
Try the following -http://docs.oracle.com/cd/E13222_01/wls/docs90/webserv/client.html[^]http://technology.amis.nl/2011/06/29/how-to-call-a-call-a-webservice-directly-from-java-without-webservice-library/[^]http://javabrains.koushik.org/2013/06/writing-web-service-client-calling.html[^]
9 Mar 2015 by Abhinav S
Another link - Installing a Service Programmatically[^].
8 Apr 2015 by Abhinav S
Your server side loop will stop running if IIS stops. Let IIS manage threads.
22 Apr 2015 by Abhinav S
SOAP is the standard i.e. set of contracts that all communicating parties understand. Internally, SOAP uses XML.Hope that clarifies the difference between the two.
6 May 2015 by Abhinav S
It will have to be manual effort. This might help you - Moving from Silverlight to MVC3[^].
24 Jan 2016 by AboorvaRaja Ramar
To Expose BizTalk Schema as a Rest/Json Service with GET method.
1 Sep 2014 by abtinC# 2009
HiI have a running windows service on my system that logged in windows event, But I cannot see thatin windows services list
31 Jan 2013 by Adam R Harris
Quote:So to achieve the above thing what should I use and how to use & implement the solution ? - Create a web service that returns a list of new items for the given user. - Create a windows app that will poll the web service and display the notifications for new items.If you...
2 Oct 2012 by Adam197
I'm attempting to run a WCF Client/Server program and receive error stating "No connection could be made because the target machine actively refused it. I'm using a port on my localhost and verified the client/server app.config files are correct. Firewall is not an issue either. When I look at...
3 Mar 2014 by AdityaBohra
Hello, I am working on a project in which I have to display all the services of the system in my project. I got success in displaying the ServiceName,DispalyName and Status of the services using below codeListViewItem datalist; services =...
1 Mar 2012 by adrielmf
Good morning everyone,I have a service,and I was wondering if there is any method to do the service automatically start.For example: my service run 24 hours a day. Even with the method CanStop set to false, the service can sometimes occur fall, either for lack of energy,the terminal being...
7 Jun 2017 by Afzaal Ahmad Zeeshan
Both the errors are pretty much clear and neat in their sense, Quote: Conversion from string "" to type 'Integer' is not valid How can you convert an empty string to an integer? It should at least be a "0", or something similar. There is a safe way to parse the string to integers, int number;...
17 Nov 2012 by Ahmed Pc
Hi everyone,I am trying to translate the statement which appears on the top of the service links "Bookmark/Search this post with" to arabic using translation interface, I have put the translation but it did not work, the statement "Bookmark/Search this post with" still appearing in English...
3 Jan 2012 by ahmedatas
hello to all . I need to do a project about convexHull algorithms in web Service [WİTH C#]. Algorithm names here : •Gift wrapping aka Jarvis march :One of the simplest (although not the most time efficient in the worst case) planar algorithms. Discovered independently by Chand &...
14 Nov 2012 by aidin Tajadod
Hi,As I remember, when you have a cluster, you can have a virtual IP which always refer to the active node. use that virtual IP and check your service.
7 Jun 2017 by Aifos Lavigne
Hi, I got a windows service that sends 234 emails to administrator as notification every 03:00 EST. This is working fine for years. But suddenly I got a 102 emails error from EmailAutoResendServicesaying: Email Auto Resending service encountered an error in Actual resending of email from...
9 Aug 2011 by Ajay Bir Singh Yadav
How to performance test the web or WPF services?
26 Sep 2012 by akosidab
Hi,I would like to ask if there is a way to get the background color value in reporting services 2005?Thank you in advance :)
6 Jul 2015 by Akram Ahmed
1.) Via Creating Proxy with svcutil.exe and access their method. ServiceClient client = null; string endPointAddr = ConfigurationManager.AppSettings["endpointAddress"].ToString(); EndpointAddress endpointAddress = new EndpointAddress(endPointAddr); ...
9 Feb 2012 by Al Moje
Hi,Try this format if could help...Example:
23 Dec 2010 by Al-Farooque Shubho
Definitely WCF. WCF offers you authenticated service with Transaction management along with a lot of freedom to configure the communication channel and protocols (Address, Bindings and EndPoints), which Web Service lacks.Best of luck!
5 Jun 2012 by Albert Holguin
1. Sure... why not?2. Only if you have to wait for the process to complete, otherwise, it doesn't have to be on its own thread (spawn an independent process and just let it be).3. You can have a reload option through the command prompt, a lot of Linux processes simply do this by turning off...
16 Jul 2013 by Aleksandar.S
Hello everyone,I'm trying to make an IP camera proxy/relay. To clear what that is, a camera can hold up only up to 15 connections. Since this should be used with a larger number of users, my idea is to make a REST web service with Web API and serve an MJPEG stream to every user. The source...
6 Jan 2022 by alex giulio
The context is that I have a window service. This window service is used to start an Applicaion(Gui). Up to now, the window service has started the application. Since the Application needs to perform some tasks under admin, it needs to start with...
15 Sep 2015 by Alex(Lei) Chi
Guys, I am looking for a service deploy tool with scheduler configuration and dependency for a while.I remember it should be WIX(Windows Installer Xml) - four years ago memory.it should support:Remoting deployment managementSchedule TaskService dependency configurationactually,...
13 Jul 2015 by Alex345098
How to invoke a windows service installed in another machine in a web application?I want to invoke a windows service installed in another machine in a web application. I am able to invoke the service in the same machine. I am working with asp.net with c#.Code is as follows: ...
4 Feb 2019 by AlexaRS
Hi, I am having some issues with windows service app in vs2015. It uses credential manager to check the existence of certain credential and logs it locally in txt file. While I debug app, I can retrieve username for specific credential. When in release, I have empty string. What am I doing...
25 Sep 2013 by ali_shahryarifar
hii create a web service in VB.net and publish in my web host. but when add in my project and use , show this message in "add web reference" dialog form !!!!What I Do this problem? tanks.
25 Aug 2010 by Alice88
people who looking for a taobao agent,can seek this website:www.taobaomaster.com.Taobaomaster, a professional online purchasing agent, is committed to assisting people both out of and in China to buy their interested items on taobao , or on other famous Chinese shopping websites. Many years of...
17 Sep 2011 by Alimjan Yasin
I am testing program at this article said and when it comes to install the service they service did not show up in service manager.the article http://msdn.microsoft.com/en-us/library/ms733069.aspxwhen I use installutil.exe for install service.exe , it said there is no...