Questions tagged [azure-worker-roles]

For questions relating to the Microsoft Azure Worker Role.

For questions relating to the Microsoft Azure Worker Role.

842 questions
10
votes
5 answers

Windows Azure Worker Role not getting past first line of code

I have a worker role that works perfectly in development but doesn't work when deployed. "Doesn't work" is rather vague, but that's really all I have to go on as I'm not seeing any errors or anything (in the event log anyway - maybe there is…
s1mm0t
  • 5,795
  • 4
  • 34
  • 45
10
votes
1 answer

Getting a Service to Run Inside of an Azure Worker Role

I have a windows service that I need to migrate to onto Azure as a Worker Role. Everything builds fine in my Azure solution. However, when I upload everything only the web role starts. The worker role instance gets stuck cycling between the…
hughesdan
  • 2,796
  • 12
  • 52
  • 78
10
votes
2 answers

Copy file from remote server using SFTP straight to Azure blob storage

I've got a remote server with a bunch of static files (outside of Azure). I've created a worker role in Azure and I want to use the worker role to transfer these files using SFTP from my remote server straight to my blob storage account (without…
Lance Bloom
  • 163
  • 1
  • 2
  • 6
10
votes
1 answer

How to test azure worker role in the local machine?

I have azure worker role: ImportDataWorker but when I set it up as startup project it doesn't allow me to run the project:
Sergey
  • 7,347
  • 14
  • 46
  • 76
10
votes
4 answers

Azure Worker Role Config File Transformations

I've setup a new worker role and setup a couple of new config transforms for it via SlowCheetah. When I build the project with one of the new configs selected, I do in fact see that configs folder get created underneath the \bin folder as you would…
James Alexander
  • 5,718
  • 10
  • 40
  • 52
9
votes
1 answer

Using Thread.Sleep or Timer in Azure worker role in .NET?

I understand that in a Windows service, it is better to use Timer rather than Thread.Sleep(timeout). However, in all code examples I could find on the Internet that were handling Azure workers, it is Thread.Sleep(timeout) which is used instead of…
Guillaume
  • 1,744
  • 1
  • 25
  • 42
9
votes
4 answers

Controlling azure worker roles concurrency in multiple instance

I have a simple work role in azure that does some data processing on an SQL azure database. The worker basically adds data from a 3rd party datasource to my database every 2 minutes. When I have two instances of the role, this obviously doubles up…
NER1808
  • 1,569
  • 23
  • 38
9
votes
4 answers

Azure communication between Worker Role and Web Role

Hi I am building a Cloud Service which has (for the moment) one web and one worker role. My desired workflow would be: the browser calls a webApi controller on the web role, which sends a message to a queue (or service bus) which is then processed…
Mirko Lugano
  • 905
  • 1
  • 11
  • 24
9
votes
5 answers

Azure Worker Role compatibillity with .Net 4.5.2

In visual studio (with Azure SDK 2.2 and 2.3 installed) I am getting an error trying to run an Azure Worker Role: The role X is using an unsupported TargetFrameworkVersion v4.5.2 Should I be getting this with the latest SDK? Is there a date for…
oatsoda
  • 1,863
  • 24
  • 45
9
votes
7 answers

Azure: Worker role looping through "recycling"

I'm currently working on an Azure project that works 100% locally with emulator resources. I'm now trying to deploy a worker role, but I'm running into an issue that I'm not sure how to troubleshoot. Upon deploying the worker role in my Azure…
8
votes
3 answers

How to create multiple threads in Windows azure worker role

I want to do multiple operations in a single worker role. How to create threads in worker role?
Ashwani K
  • 7,322
  • 18
  • 59
  • 94
8
votes
2 answers

Azure WorkerRole Stopping Immediately After Starting

I have an Azure WorkerRole that is stopping (no exceptions are being thrown) for no apparent reason. It stops in the same spot every time, but the code is simply executing a process that takes about 20 seconds to run. Can anyone postulate as to why…
Jason
  • 2,358
  • 2
  • 18
  • 21
8
votes
2 answers

Programmatically delete local repository with LibGit2Sharp

I would like to delete the local repo folder that I cloned from remote repository using LibGit2Sharp. I read here here that I have to Dispose() the Repository before I can delete it, but it still not works fine. using (var repo = new…
Gábor Domonkos
  • 921
  • 1
  • 12
  • 31
8
votes
7 answers

What is the reason for "while(true) { Thread.Sleep }"?

I sometimes encounter code in the following form: while (true) { //do something Thread.Sleep(1000); } I was wondering if this is considered good or bad practice and if there are any alternatives. Usually I "find" such code in the main-function…
Preli
  • 2,773
  • 8
  • 35
  • 44
8
votes
2 answers

How to manually change the worker role files on cloud by doing RDP?

Pushing full cloud service project on to cloud is very time consuming, so if its some minor changes and I want them to reflect immediately then i RDP into the web role and make those changes and restart the IIS. Can something like this be done for…
Bitsian
  • 2,118
  • 5
  • 32
  • 68
1
2
3
56 57