Click here to Skip to main content
15,890,527 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 Title

Service 

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 &...
3 Jan 2012 by Ganesan Senthilvel
Best reference is available at CodeProject: Convex Hull[^]
3 Jan 2012 by idle63
Maybe also a starting point (3D):http://www.cse.unsw.edu.au/~lambert/java/3d/hull.html[^]Regards
20 Nov 2012 by ascentit solutions
I am using a class library in my windows service. I have added the dll as well as used using derective, but still it is giving me error "The type or namespace name 'SSCommuniLib' could not be found (are you missing a using directive or an assembly reference?)"I removed and added the dll...
20 Nov 2012 by Sergey Alexandrovich Kryukov
You are not adding anything with using directive. You totally misunderstood its purpose. It is only used to change the naming of the types in the code of some namespace. It is not related to assemblies at all, it is only related to namespaces; for example, naming of the types in the code can be...
12 Nov 2014 by Member 11223520
I do all the instruction to build odata with wcf data service but i need $format=json working
18 Dec 2016 by Ningomba
$http in Angular simply explained
12 Jul 2013 by pokemonjohn
HiI have a windows service which i have been using on a windows server 2008 for some time with out any issues.I'm no trying to get this to work on a windows Server 2012 box.The windows service has an installer project and will install / uninstall fine on both servers, how ever on the...
25 Aug 2015 by Member 11936499
I have implemented a .net webservice, with a method witch receives a DataSet as parameter.Now, I want to implement security based on digital certificate authentication. On the server side, I managed to do this, but I can't manage to implement the client, in order to use the same proxy class...
7 Aug 2016 by Member 11579281
Upgrading to .Net framework 4.5 . Where's the C# services installer project template? Or is there a new method for installing / deploying services? Thanks!What I have tried:Tried searching through nuget web and found no love.
7 Aug 2016 by David_Wimbley
The way to attach an installer to your windows service is the following steps1) In new project setup, select Windows -> Windows Service project template2) Select/double click on Service1.cs3) Right click on the Design window that opened from step 2, and select "Add Installer"4) You...
29 Jun 2012 by SuperMiQi
Hello everyone,I am working with .NET remoting in c# and this work very well with the registered object via: RemotingConfiguration.RegisterWellKnownServiceTypeThe object is defined as following:public class One : System.MarshalByRefObject{ private Two _Two = new Two();...
29 Jun 2012 by Herman<T>.Instance
type [WebMethod]above public Two GetSubObject()
1 Jul 2012 by SuperMiQi
Hello All,I have found the keyword [Serialize()] is working fine. I just had a error with the eventLog feature in my service.This works very well for sharing you dataset.Thank anymway.Best regards.MiQi
8 May 2013 by RichCode
Probably a simple question... I've connected to simple web services before by using Visual Studio to add a web service where it creates all the class information for you. But soon I will need to connect to a secure web service using WS usernametoken (username and password with nonce +...
8 Jul 2013 by chandubbbb
I am unable display the message box in the fallowing windows service .can any body help me to overcome thispublic partial class Service1 : ServiceBase { public Service1() { InitializeComponent(); } protected override void...
8 Jul 2013 by unclepaul
windows services are not meant to have a GUI.
3 Dec 2013 by Member 9904848
I am trying to consume a REST service from another company. When I use the link in the browser it works fine. However I get the 401 error when accessing from code. What am I doing wrong? Do I need to add something to the web.config of the web app?string URL =...
4 Dec 2013 by Member 9904848
Figured it out. The REST Service is returning a response code of 401 if the session is not valid. So I am catching that exception and handling it. Thanks.
26 Nov 2013 by murkalkiran
Submit Button CodeString test = cboPorts.Items[2].ToString();string ComName = test;this.s = new SerialPort();this.s.PortName = test;this.s.Open();this.s.BaudRate = 9600;this.s.Parity = Parity.None;this.s.DataBits = 8;this.s.StopBits = StopBits.One;//this.s.Handshake =...
4 Dec 2013 by Dave Kreskowiak
With the complete lack f detail in your "question", about the only thing anyone can say is that you really need to study "WebServices", or batter yet, "WebAPI". Google is your friend, use it!All you have to do is Google for "Web Services tutorials" and "WebAPI tutorials".
8 Apr 2013 by GGev
I have a web page(.aspx), on which I'm loading some user control by jQuery ajax. Something like this: $.ajax({ type: "POST", url: "WebService.asmx/GetGrid", data: data, contentType: "application/json; charset=utf-8", ...
22 Nov 2011 by Reyhaneh63
Hello everyone.I'm looking for a way to solve this problem. Let me describe the problem with an example.Imagine i'm a server or an user in a network. i send a file to another user(user2).This file may has different contents . This file must be save in a table in sql server db.Then an alarm...
7 Jan 2012 by Oscar Arros González
you need to specify the data transfer way, and then, you need a client program to the user2 to get the messages via socket or reading a database or file with messages.regards.
19 Jul 2011 by sepel
Hi any body.I wrote a application that brows my company network and explore for Some information on hard drives.for some computer it give me error and I can't access them.When I execute my program I see in task manager that my user name is set for it's owner.However there is some system...
4 Dec 2010 by Dave Kreskowiak
You cannot use the Local System account for your application. Lcaol System only has permissions to that system, nothing else. If your app is looking at each system to collect data, it'll have to run under and account that has permissions to get to that data on every machine. System and Local...
3 Dec 2012 by amir tarek
I made a web service that connects to a database hosted in SQL Server 2008 R2 on my local computer, and makes some operations on it.This is the connection string in the web service:conn = new SqlConnection("Data Source=amir-pc\\SQLEXPRESS;User Id=sa;Password=1234; Initial...
3 Dec 2012 by Rai Pawan
AmirHave you instantiated the conn object with the above mentioned connection string?Also do check if the connection is already open or not, since if the connection is already open the conn.open will throw InvalidOperationException exception resulting in your function returning false in...
18 Aug 2013 by niyo66
I'm new in consuming web services and i have to access a state-run web service.I was given an app.config file, a certificate file (.cer) and some general instructions.Haven'n used Visual Studio 2008 Express before but i have 15 years experience in writing vb5/6 code.Anyway, I installed...
12 Aug 2010 by Wildshane
Hi,I am looking at creating an activation service for a small app I am currently working on.Would just like to know if anyone knew of any good web tutorials or instructionals that described the current approaches to online activation of desktop applications.I am wanting to know a bit...
12 Aug 2010 by Yusuf
did you consult this guy[^]
19 Aug 2014 by Jinan Kordab
This article describes how to create or delete an Active Directory Services Email using ASP.NET web page, remotely.
21 Sep 2015 by Member 11906462
I require to convert the existing webservice security communication to TLS1.2 protocol. The existing client application code cannot be modified. An adapter service which can run as a windows service will convert the existing SSL3 calls to TLS1.2. Any help in building this adapter service is...
25 Nov 2020 by wusir371
Hi, thereI created an windows service file named filewatcher.exe by C# and installed this service to windows server via InstallUtil.exe. I want to add the same file as a service in Ubuntu(cross-platform service).So I've installed mono in my ubuntu and use the command sudo update-rc.d...
7 Aug 2013 by Mehdi Gholam
Try supplying the full path to your program:sudo update-rc.d /fullpath/here/for/example/filewatcher.exe defaults
12 Aug 2013 by wusir371
Well, from this question, I have got three points:1, filewatcher.exe is developed by VS2012 - Windows Service(C#) project, this kind of .exe cannot be run by mono on Ubuntu, maybe windows service's special configuration can only be install as windows service. However, normal C# executable file...
7 Jun 2016 by Member 12478311
I am trying to add WCF service Reference to classlibrary using svcutil.exeMy WCF Service is hosted in Windows Application Form.The following is the error i am getting:Quote:Could not find default endpoint element that references contract 'IData' in the ServiceModel client...
7 Jun 2016 by VR Karthikeyan
Refer these articles,1. 3 Ways to generate proxy for WCF Service[^]2. Create Proxy Class For WCF Service Using svcutil.exe | Shahid Afzal's DevToolBox[^]3. Generating WCF/WebService proxy class using SvcUtil.exe - Nithin Mohan T K's blog space[^]
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...
2 Oct 2012 by Stephen Hewison
Hi,We have a our own cloud which we've built and host in the UK.Currently all of our clients are based in the UK but we have opportunities to provide services to Qatar.Would it be advisable to construct a new cloud in the region of should the UK based cloud be able to adequately...
22 Nov 2012 by Karthik J, Coimbatore
Friends,I using the below code for deleting the list from three tables(Deleting Perfectly!). It will take hardly 10 seconds for deleting.Here, I want to show please wait image for these waiting time.. It will show when starting the process and hide on delete process...
22 Nov 2012 by pramod.hegde
You need to add ajaxStart() method to your code. Within this method, you can have any type of loading indicator, or changing the screens transparency etc... $("yourDivOrAnyControl").ajaxStart(function(){ $(this).html(""); });So, final code would look something...
22 Nov 2012 by Karthik J, Coimbatore
width: 150px;">$(document).ready(function () { $("#ajax_loading_div").addClass("loading"); $.ajax({ ...
28 Feb 2015 by nira.parmar
HI There,I have created one windows service for re-curing operation, but due to some technical issue we are looking for alternative for windows service. So we have decided to create windows task scheduler, but we stuck at which application we need to create for windows tasks...
28 Feb 2015 by DamithSL
you can create console application and execute the exe file from the windows task scheduler on given timeRun C#Console Application using Windows Scheduler[^]
13 May 2015 by Member 10198655
Hi in my project I build a windows service to generate reports on a schedule ,it takes its data source from wcf service but when I want to use windows form report save to pdf method this exception appear An error occurred during local report processing.while I have created localreport.rdlc...
13 May 2015 by Member 10198655
I figure it out ,the solution is to put the full path of the local report like C:users\user\documents\.........
8 Jul 2011 by Ivan Budiono
Class to access a .NET Web Service with an Object parameter or even an array of objects.
17 Jul 2016 by Andy Point
Android Download Manager Tutorial: How to download files using Download Manager from the Internet
14 Jan 2019 by marimir
I am developing an application which connects to a web service via the internet and gets some information and I've used Async task for this in two activities. Now I want to use the same code in a service class which works with Timer task and on every tick, if the application is not running, it...
13 Mar 2019 by Safak Tarazan
Usage of services, alarm manager and broadcast receivers
3 Jul 2013 by Safak Tarazan
Sending SMS in a time sequence by using handler, runnable and service
9 Oct 2018 by Member 14013230
Hello, We are facing issue while start and stop background service in oreo 8.0 Error : FATAL EXCEPTION: main Process: com.phonov1.app, PID: 4121 android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground() at...
2 Jan 2014 by Hasan Çakır
I have a problem with my project and here is my mainavtivity javapackage com.example.tut2;import java.io.IOException;import org.ksoap2.serialization.PropertyInfo;import org.ksoap2.SoapEnvelope;import org.ksoap2.SoapFault;import org.ksoap2.serialization.SoapObject;import...
5 Jan 2014 by tabrej
There are two three issues with your code.1. In MainActivity.java in asyncTaskOrnek, doInBackground() method line#107 there is a null pointer exception.2. In case of exception you are not closing aht object3. Check this tutorial to learn how to use Dialog box in an Async Task...
9 Feb 2015 by kapoor90
I am new to AngularJS. I am using Angular with Partial Views in MVC5. I want a very simple functionality. I want to use 3 partial views. In first PV,i want a textbox called FirstName. In Second PV, I want a second textbox called LastName and finally, in Third Partial View i want to show the...
9 Aug 2015 by Mujeebur Rahman
Angular backend less development
1 Oct 2015 by musti_276
Hi,The question I asked in the google forumhttps://groups.google.com/d/msg/angular/x-9erGOfVak/60FSrTxvAAAJ
27 Sep 2010 by Frozen Rain
There is a simple way to consume WCF from clients which do not support Microsoft's SOAP implementation. It is achieved by using REST to accept data and convert REST calls to SOAP calls with the PHP Framework.
1 Jun 2018 by Member 9983063
Hello Guys, Recently am working on JSP project i am beginner in this platform but i have a project my senior done this but now i need to some editing in gui but the problem is i change the path in server file when i changed so apache tomcat service automatically stopped and not start again how...
1 Jun 2018 by Jochen Arndt
This can't be answered without having deeper knowledge about your system. You should at least tell us what you have changed in which file and how the service is started / stopped on your system which depends on the used operating system and version. But even with that information it might be...
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...
5 Dec 2013 by Member 10123226
Problem at Hand: I have to create a Service which runs continuously. This service monitors 5 apps say 5 android games installed on your phone. This service needs to get the information of: 1. How many times the game is opened and run? 2. For how much time the each game has run.for example:...
6 Dec 2012 by Tarun Batra
I made an console application in visual c++ in VS 2010 i added the console handler so that when i press ctrl+c the application may terminate successfully and it worked for me too without error later i put the application into the window service and called the same console handler in service...
6 Dec 2012 by AnkitGoel.com
Please refer to http://stackoverflow.com/questions/11569473/heap-corruption-detected-after-normal-block-126[^http://stackoverflow.com/questions/11569473/heap-corruption-detected-after-normal-block-126mark as answer if helped.
18 Apr 2011 by BlackMirrh
I have a problem with debugging our ASMX Web Service (There are three services on the Server)When I'm trying to debug the Web part(ASP.NET) with the WebReferences from the Services It builds and open the Web page then debugging stops right after the Web page opens.I got this source code...
18 Apr 2011 by Sandeep Mewara
I got this source code from someone else and I need to change some source codeAdd the source to your project solution. Clean the project and build it. Add this webservice-reference in your web application. Now, try. I can not change it because I can not debug it.BTW, I am not sure on why...
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.
7 Nov 2012 by naveedahmed43
Hi guys,i moved the laser fiche .asmx web service from old server (windows 2003) to the new one (windows 2008 r2). i can see all the methods from the web service hosted on new server when typing the url from another machine. but the problem is when i try to consume it by creating a new...
5 Feb 2013 by mario genov
Basically what I'm trying is redirect requests to an ASMX web service to another ASMX web service. For simplicity's sake let's say I have an ASMX web service with Hello method only and simple soap extension like this one (let's ignore the log entries code). The differences in my soap extension...
6 Apr 2023 by Member 1823449
I've written a web service under Visual Studio in C# that has some service methods. All works quick and fine in the client APP under Windows. But if i use one method named "GetCertInfos" in a loop the loop gets after a random amount of...
6 Apr 2023 by Member 1823449
I wrote a new Method which needs only one service call for multi certIDs : [WebMethod] public string[] GetMultiCertsInfos(long[] certIDs) { List result = new List(); try { foreach (long certID...
24 Mar 2011 by Perry Bruins
Hmmm, this code is not even compileable, maybe that is the problem?
22 Oct 2013 by thevontr
hello all,I have a question, how we could upload excel file to web server in c#.After that, we make window service that copy excel data into table sql database, the excel data were copied to sql table after pass validation such as data cannot copied if there is any existing data in that...
22 Oct 2013 by Ranjan.D
Refer this http://msdn.microsoft.com/en-us/library/aa479405.aspx[^]Use FileSystemWatcher in your Windows Service and write logic to read excel file and dump rows into database.http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx[^]PS: Code is not free. One has...
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...
1 Apr 2014 by Member 10086051
Once user enter invalid credentials login pop-up is not displayed again, even after refreshing the page, it displayed after closing the browser.
29 Sep 2014 by Arunprasath Natarajan
Dear Friends,I have created a content in the webpage and generating that content in mail to few users.Now i need to push that mail ramdomly weekly once and at any time.
29 Sep 2014 by CPallini
That's should be simple: for each user generate randomly the timestamp at which the push event should happen. Then your program periodically could check if the timestamp is elapsed AND the email has not yet been sent. If both conditions are met then it could send the email (and mark it as 'sent').
15 Jan 2015 by saramgsilva
This article has the goal to show how to update a .Net Backend project from Azure Mobile Services, this mean we will update the references added to the project using Nuget packages.
16 Jun 2017 by komakommander
Hi everyone,i am banging my head on the following task:I have an AzureFunction that uses a ServiceBus-Trigger like so:{ "bindings": [ { "name": "myQueueItem", "type": "serviceBusTrigger", "direction": "in", "connection": "MyConnection", ...
16 Jun 2017 by Gurdeep
Your problem clearly lies in the difference between these lines: var content = Encoding.UTF8.GetBytes("Some string"); ByteArrayContent postContent = new ByteArrayContent(Encoding.UTF8.GetBytes(message)); Why use the ByteArrayContent?
31 Mar 2015 by Prakash SNP
This article shows how to build an Azure IoT Solution for water utilities Industry
15 Jan 2015 by saramgsilva
This article has the goal to show how to create a development and production environment for a .Net Backend from Azure Mobile Services.
3 Oct 2015 by Henrik R L
HiI have to create a .NET windows program that must be able to send an ID number to a service hosted on Azure and get a pdf document back from an Azure SQL server/file storeage. I also have to create another program to upload a pdf document and a corresponding ID number to the same service...
26 Feb 2013 by Mr. Mahesh Patel
Hi Experts,I want to encode byte array to string in android 4.0 application,and decode this string to byte array in C# .Net Web service.I only want a function for encode byte array in android 4.0and decode this string in .Net Web Service.Any one can help me...?Thanks in advance
26 Feb 2013 by Manfred Rudolf Bihy
Just in case google isn't working for you I found this by doing a simple search:Android:android.util.Base64 extends java.lang.Object[^].NET:http://msdn.microsoft.com/en-us/library/system.convert.frombase64string.aspx[^]Regards,&mdash; Manfred
26 Feb 2013 by Tejas Vaishnav
Hello friend,you can use this two methods for converting bytes to string encoding with base64 and visa versainternal byte[] StringToBytes(string streamString){ return Convert.FromBase64String(streamString);}internal string BytesToString(byte[] stream){ return...
5 Feb 2015 by Member 10136231
Hi,I am trying to send a push notification to BlackBerry devices using the BES's post service.The Code is something like this:System.Net.WebRequest req = System.Net.WebRequest.Create(ConfigurationManager.AppSettings["BESURL"] + userEmailID +"&PORT=" +...
10 Feb 2015 by mdimran247
This seems to be an issue with making POST request. I had the same problem and solved it as below1) Convert WebRequest to HttpWebRequestHttpWebRequest req = (HttpWebRequest)System.Net.WebRequest.Create(ConfigurationManager.AppSettings["BESURL"] + userEmailID + "&PORT=" +...
16 Sep 2013 by pkmonga
I have to convert PHP project having Rest ful webservices with 2 legged OAuth Implementation and i have to convert it into .Net Project.i am not able to find the Suitable OAUTH in .net with parameters given to me.Parameters given only are Consumer Key, Consumer Secret Key and URL to hit.Based...
1 Jun 2011 by srinivaskalagara
I got a requirement that requires to pass a Certificate information in SOAP header to IBM DataPower to authenticate the request.I'm newbie to SAML. Could any one guide me to build SAML header in SOAP request using VS2005(framework 2.o)?Thanks,Srinivas Kalagara
1 Jun 2011 by walterhevedeich
Maybe you can get some ideas from here[^].
20 Feb 2015 by i_syed2000
I'm planning to use EntityFramework as my back end layer. I have also defined a ServiceLayer (not WCF), which has method which closely mimics application use cases.I'm trying to figure out the role of Business Logic Layer, and DAL layers and how Service layer interacts with them. Take this...
21 Jan 2012 by Weidong Shen
This article describes how to do data validation with Self-Tracking Entity Generator for WPF/Silverlight.
29 Dec 2011 by Weidong Shen
This article describes the IClientChangeTracking interface generated by Self-Tracking Entity Generator for WPF/Silverlight.
8 Oct 2012 by Tim S. Connell
I need to autogenerate images for dispaly on large factory floor monitors.I orginally accomplished this (C# 2005) using a datagridview to create the image, then copying the image to a file. It has become an issue running the application on a server to generate the images being dispalyed on...
13 Jul 2011 by bemahesh
Hi,I am working on to sync files between servers. I have created windows service which implements FileSystemWatcher .net object which allows one to monitor local folder path and get changes as files or folders get created, deleted, renamed or changed events and take action based on...