service

Make Executable run at a lower priority

Possible Duplicate: Setting a thread priority in a service I've created a Windows Service and I want it to always run at LOW priority. Is there any way to achieve this via code or how I package up the install? ...

How does fast user switching affect a windows service?

How does fast user switching affect a windows service? Are the services suspended? or do they keep running in the background when a different user logs in? ...

How to run a script on linux from a windows service?

Does anyone know an elegant way to initiate a bash script (to run on a linux box) from a windows service written in C#? I can only think of some combination of putty doing auto-login and automatically running a command upon login. But this seems clumsy and a bit insecure. Security doesn't need to be very high as both boxes reside on t...

Calling webservice from WCF service

I am having an issue consuming a webservice (c#.net) from a WCF service. The error i am getting is EndPointNotFoundException "TCP error code 10061: No connection could be made because the target machine actively refused it" I wrote a unit test to check if i could send a request to the web service and it worked fine [The unit test is usi...

dynamic creation of web service using parameter from database

Hi, i faced one problem here : i need do create a servlet that can dynamic create web service and the web service parameter is store at database. So each time i call a specify web service, i will get the parameter of that web service and dynamically generate the code at the servlet. For example: i have 3 different web service, and one ...

Multithreaded stress tests fail

I am doing a stress test of a web service by running many threads of the same process, but the second thread always stops in the middle of running without throwing an exception. How do you figure out what’s wrong? ...

Tomcat Logging while running as a windows service

I have a web application running under Tomcat. Logging for various features is implemented using java.util.logging. When running tomcat via startup.bat the logging files are created and record the logging as expected. When running as a windows service using the same war file the output from logging is virtually absent. There is some (...

WCF - Client-Server Communication.

Can anyone tell me what Step-by-Step actions take place when a WCF Clients connect to a WCF Service and calls an Operation? Plz describe the steps with step number and maintaining the serial. Alternatively plz provide me with a web link that describe these steps. ...

WorkbookOpen Event doesnt fire with Windows Service, whereas it fires with windows applicaion.

Hi, when i am using below code with windows application it always fires WOrkBookOpen event. public partial class Form1 : Form { public Form1() { InitializeComponent(); } Microsoft.Office.Interop.Excel.Application app; private void button1_Click(object sender, EventArgs e) { app = new Microsoft.Of...

Menu service in Prism application CAL

Hello all, I am trying to create a Prism (CAL) framework (this is my first forray into CAL) and am having difficulty devising a service for registering menu items for a region). Here is what I have come up with so far... /// <summary> /// Menu item service - allows any module to register menu items with any region /// </summary> public...

Axis2 service using JAVA: Mapping qname not fond for package

I am developing a web service from an existing framework. Our framework has an abstract base class in package base and a derived class in package derived. A service class creates an instance of the object derived but in the signature it is returning base type. Here are the code snippets: Base Class: package base; public abstract class ...

How to get log4net to generate log files when running as non-administrator user?

A process running as a non-administrator user does not have rights to write to the program files folder. What is the best way to configure log4net to write to a location that a non-administrator user has rights to? Ideally there would be: A single configuration file or configuration from code would work for all versions of MS Windows...

Android: HTTP/JSON communication within application or separate thread?

I've an application which receives and sends data (JSON) from/to a HTTP server via HTTP POST requests. There is not really any payload except of a few strings, so I'm wondering if it would make sense to build this whole HTTP communication as an Android Service or just to create a separate thread within my application? ...

Help with a Windows Service/Scheduled Task that must use a web browser and file dialogs

What I'm Trying To Do I'm trying to create a solution of any kind that will run nightly on a Windows server, authenticate to a website, check a web page on the site for new links indicating a new version of a zip file, use new links (if present) to download a zip file, unzip the downloaded file to an existing folder on the server, use t...

Where should I put Comparers in an app that uses WCF?

I have an application that uses WCF for all DataAccess. It returns some business objects and it has some operations. Should this code exist in my Client or in my Service? If in the service, HOW should I implement it? Can I simply add it as an interface to my business object? Will that come through the WCF Service Proxy Code? (This is a...

WCF communicating with hosting app?

I am hosting a WCF service inside of a WPF app. I would like the WCF to be able to communicate with its host. Specifically, I'd like to receive event notifications from the WCF when certain WCF methods are called by clients. I've tried modifying my WCF to be a singleton like so: [ServiceBehavior(InstanceContextMode = InstanceContextMod...

HASP key on ATL Web Service and Windows Vista / IIS 7

Hi! I developed a ATL C++ Web Service on VS 2005 to access a HASP hardware key. This code works fine on Windows XP and IIS 6. When i try it to run under Windows Vista and IIS 7, the w3wp.exe process that is responsable to run the web service, crash with a access violation error. Someone had already this problem ? sugestions needed. Than...

Web Services - When referencing a web service locally, it asks for credentials

I am currently creating a web service locally. I created 2 separate files: One for the web app and the other for the web service. When I try to reference this web service from my web app, it asks for my credentials. It does not accept the credentials I inserted (which I know is correct). How do I remove this from my web service? ...

What is the easiest way to implement a self restarting service

I have got a windows service written in .NET and I need to be able to implement a self-restarting feature for it. E.g. service constantly monitors the environment in runs in and once a value of the environmental variable reaches its threashold value the service must restart itself. What would be the easiest way to do it? ...

ASP.NET Fire and Forget (One Way) Web Service

I've create a regular old ASMX web service in ASP.NET and added SoapDocumentMethod(OneWay = true)] to the function call as I've read this is supposed to make the call Asynchronous. However I call this in my code and it definitely does not make the call asynchronous, my page just sits there waiting for the function to finish working. What...