I have several different c# worker applications that run various continuous tasks: sending emails from queue, importing new orders from website database to orders database, making database backups and restores, running data processing for OLTP -> OLAP, and other related tasks. Before, I released these as windows services, but currently I...
I am experiencing some weird behavior with localized messages reported from my background worker process in my windows forms application.
The application is a setup application with windows forms.
The application launches a background worker to perform and IIS reset and then install MSIs.
The first time I run the application on a Spani...
I have a class containing a worker thread which receives data from a queue in a loop.
Another part of the app sinks an event from this class, which the class raises for each queue item.
These events are fired asynchronously, so at busy times the other part of the app can be processing several events at once.
This should be fine but we...
Hello,
C# 2008
I am using the code below to login to a softphone. However, the login progess is a long process as there are many things that have to be initialized and checks to be made, I have only put a few on here, as it would make the code to long to post.
In the code below I am checking if the CancellationPending if the CancelAsy...
Hello everyone,
In my IIS log, I found warning level event ID 1013, which says the stop time exceeds expected stop time for worker process of a specific web application.
My question is, how could I know or track from what reason IIS worker process stops? Does this warning level event ID means worker process application pool is stopped ...
By default, the IIS 6.0 process creates as many as four threads per processor. We can adjust the maximum number of threads in the IIS 6.0 service process by adding the MaxPoolThreads entry to the following registry path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Inetinfo\Parameters and give the value between 2 - 20.
I would...
I have a scenario. I have a list of user id's displayed on the windows form. As soon as I click one of the user id's I go and get the user details from the DB. To retain the responsiveness of the application, on selection changed event of the listbox, I create new BackgroundWorker(BW) objects and hit the DB. I show 'Searching user 'abc'....
how does one include other .js files in the .js of a Worker. Every "include" solution for Javascript that I've found does it by loading into a tag, which is not an option for Workers since they don't have access to the DOM.
I see from your 950087/include-javascript-file-inside-javascript-file that using Ajax and eval() will do it. I ca...
Hi there,
I mean issue with setting the Worker Process to read/write/modify.
In what scenario/task do we need to use Worker Process for web script?
Currently I only know of 1 scenario>> when a script want to resize image. What else?
How can we easily set WP permission for a particular web folder automatically, so that we can carry ou...
Here is a sample program:
def worker(from, to)
puts "#{from}..#{to}"
for i in from..to do
if i == 42
puts "kill the rest of the threads"
break;
end
puts i
sleep 1
end
end
if __FILE__ == $0
threads = []
for i in 0..9 do
threads << Thread.new { worker(i*10, i*10+10) }
end
threads.each { |th...
My knowledge of how processes are handled by the ASP.Net worker process is woefully inadequate. I'm hoping some of the experts out there can fill me in.
If I crash the worker process with a System.OutOfMemoryException, what would the user experience be for other users who were being served by the same process? Would they get a blank scr...
Not sure what I'm doing wrong:
class MyClass
{
private EventInfo eventInfo;
public void OnGenerateEvent(object sender, EventArgs e)
{
// Called from *main* thread
// Load assembly and set eventInfo here
eventInfo = ....GetEvent(...);
eventInfo.AddEventHandler(source, handler);
//...
First question here so hello everyone.
The requirement I'm working on is a small test application that communicates with an external device over a serial port. The communication can take a long time, and the device can return all sorts of errors.
The device is nicely abstracted in its own class that the GUI thread starts to run in i...
I want to declare a worker manager to perform some work in managed thread.
Weblogic documentation tells that we can
- declare a global worker manager using the admin console
- declare a local it in an ejb-jar.xml config file.
I want to use the second option. But my ejb-jar.xml is generated by the ejbgen tool.
There is no tag in ejbgen...
Hi I have a producer - consumer pattern. The WPF UI is sort of ancilliary to a long-running worker thread which is listening to packets and enqueing tasks. In practise all the messages are dequeued and then the UI consumer processes.
The issue I have is that I have a UIcontroller class which is responsible for all WPF GUI components. It...
We have a composite wpf solution which use MVVM. there is a view class, in its code behind, we use a new worker thread to connect to a legacy system and load it into WindowsFormHost in xaml file using a third party app.
When user logon the solution, it tries to load three instances of view class on three tabs. sometimes we get "Windows ...
I would like to be able of adding a tiny REST endpoint to an Azure Worker Role, just dumping some non critical monitoring meta-data. I can think of many complicated ways of doing that, but I feel there are simpler solutions. What would be your code snippet to tackle this?
...
Can anyone tell me, is there a way to run a process in IIS shared hosting service.
Suppose, the scenario is like "I want to send emails to a list of email id's after everywhere 3 hrs", so the challenge here is the process should not be invoked by a HTTP link. It should be automatic.
I think we can do this by IIS worker processes.
Also...
I just upgrade the PHP version in my VPS to 5.3.2
I used FastCGI and worker MPM in php 5.1.2 or 5.2.1 I forgot, it worked fine, and it was so fast, I like it.
After I upgrade the PHP version, it gives me Internal Server Error 500 on all .php pages.
What is wrong? does FCGI support php 5.3.2?
If yes, there should be some differences in...
I'm building an architecture in that web servers dispatches jobs to background worker nodes in a random way so the load is balanced.
How could my web servers know that I've added a worker node?
Thanks!
...