Hello,
For some reason the Current Directory of my windows service is C:\Windows\System32
and when I schedule my service I get this error Access is Denied.
In one of the blogs I saw this peice to change the current directory.
But I am not sure where to place this code.
Thanks
System.IO.Directory.SetCurrentDirectory(System.AppDomain....
Hi !
I've written a console app that sends MS Reports to emails.. (the reason was that i could check it easily if it works)
I want this to run daily at 6 am.
My idea was to write a service (so nooone will need to be logged in and the service will run).
So I'd like to call the static Method directly in a WebService.
I've a solution wit...
I have written a service which a website can execute a command on remotely using the ExecuteCommand method. I have noticed that if the website is not running under a user that is an admin on the remote machine then I get a permission denied exception on trying to execute command.
The servicecontroller class doesn't even allow you to sp...
I have a windows service which fails in Init() method and throws some exception , so only way for me to check what the error is by looking at the event log. I want to debug the windows service, but the problem is that i can attach debugger only when service is rnning, in my case it fails in Init() method only. Any idea ?
...
I'm trying to write a simple media player that plays streaming audio using RTSP. I have a GUI-activity and a service that performs the playback. My question is how to best communicate between the activity and the service (e.g. updating the gui based on the player state).
I know that I can bind the service to the activity using onBind(),...
in the ServiceStart() call of a windows service, I create a thread and start it.
Thread1 = New TThread1(false)
In the Execute procedure of the subthread, there is a loop that runs forever and does that the service is supposed to do.
The problem is that when I get an error in this thread, I want to terminate the thread, and stop the ser...
Hello,
I have a windows service developed in VB.net. This Windows Service every night at 8 PM picks a file from copies a file from my C:\ftpDocs to Y:\FtpDocs folder.
Y: is a mapped drive which is \sourceServer\Output files. when I run the same code from VB.net Windows Application instead of windows service it is working absolutely fine...
I am writing a python service (pyamf) through which a user can access images. All images are stored on a central server. The python services will be running on satellite machines which have network access to server. The service should work as follows:
check locally to see if the file exists, if so, use it.
check locally to see if fil...
I have an application who reads word-files from a database, opens them and saves them as a .html file.
The application works fine, but now i want to call the application from a service. I can call the right functions etc. but, on the line wordApp.Open(...) it doesn't open my file (who exists!) and returns me a null object.
Anyone who kn...
Hello all I am a new android developer and I am currently making an application to communicate with SIP. I would like to set a background task to do all the SIP related tasks and, if possible, let it begin when the phone is started. My current thoughts are creating a Service and letting it start on the device boot, the problem is that th...
Hello, this is the scenario:
1 user has a main activity used for ui.
2 programm needs to communicate with peers and keep connection and wait for messages
3 when a message comes it is shown in the main acivity.
so the question is should I use a service for the communication and what type of service?
and also should I use AsyncTask in ...
I've been sent the following wsdl. I generated the C# proxy using wsdl.exe and also created my c# web page. Using Fiddler I have looked at the SOAP response and it contains data. Any guidance on what modification is needed in order to get the C# program to accept the SOAP response. Please excuse the formatting of the wsdl I was uncer...
I have a web service created in .NET, now I want to test it but I am having problems. I setup everything correctly on Windows Vista. IIS. I keep getting "Not Found" every time I try to access it. http://localhost/myservice/service.aspx'
.NET framework has been installed too.
What can I do?
...
Hello All
How can i control (start, stop) windows service from my windows application?
...
I'd like to start service before user mode is loaded (in kernel mode).
The reason is I wanna run several system applications(asm code to write data to BIOS) that are not allowed in user mode (privileges problem).
That's why I got an idea: 1. Write windows service 2. Start and run it in kernel mode
Is it possible?
Are there any other wa...
How can i restrict the behavior of a Windows service?
...
I tried everything I could think of, but I always get this error when I try to start the Apache FtpServer service.
Windows could not start the Apache FtpServer on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code ...
I am calling WatiN from a C# windows service. When I invoke WatiN it throws the following exception. The CurrentThread needs to have it's ApartmentState set to ApartmentState.STA to be able to automate Internet Explorer
I have tried starting up a thread and setting the apartment state via
mythread.SetApartmentState(ApartmentState.STA)...
Hi
I'm starting a service with an intent where I put extra information.
How can I get the intent in the code of my service?
There isn't a function like getIntent().getExtras() in service like in activity.
Thanks.
...
Hi,
I have a scenario where during the system install time, a few services were deployed on to the OSGi container and these services will be listening for other bundles that provide data and are dynamically installed and uninstalled at runtime.
These data providers do not expose any services and should not even invoke services; my id...