azure-worker-roles

Role instances are taking longer than expected to start - Is there a new solution to this problem?

て烟熏妆下的殇ゞ 提交于 2019-11-28 10:43:51
I've rebooted my computer 50-100 times this week. I find I can start / deploy locally usually 3-4 times before getting this message: "Windows Azure Tools for Microsoft Visual Studio Role instances are taking longer than expected to start. Do you want to continue waiting?" The solution to get me going again is rebooting. I know it's not a new problem. I recall that MS agreed it was a problem but does anyone have a solution that does not involve going back to the Hosted Web Core. Seems like this problem is something a lot of people get and it's been around without a resolution (that I know of)

Visual Studio not finding my Azure subscriptions

心不动则不痛 提交于 2019-11-28 10:43:07
I have a working Azure account with various services already running. I receive monthly bills for these. Now, I created a workerrole in Visual Studio that I want to deploy. I get the "Publish Windows Azure Application" screen that asks me to sign in. After I sign in, I get the message that I don't have a subscription: "Sorry but we didn't find any Windows Azure Subscriptions associated with your account. You can sign in with a different account or sign up for a Windows Azure subscription". Using a browser I can login in the Azure Portal with the same username/password. I can view my

Multiple roles on the same instance in Windows Azure

大城市里の小女人 提交于 2019-11-28 07:31:56
Is it possible to deploy multiple roles in the same instance? I have three web roles (website in asp.net mvc3, and two WCF services instances) and two worker roles (windows services). The load for this application is very small, so I don't want to create so many instances in Windows Azure and pay for all of the instances now. Instead I want to deploy all my application in the same instance and change it later if I will get some income from my applications. I Googled and found some forum posts than it's possible and some than it's not possible... but I can't find information how to do it... So

azure role not starting after windows update 10February

故事扮演 提交于 2019-11-28 07:06:03
问题 After installation of windows update on 10th February 2016, the azure roles are not starting in emulator (Full/Express). The logs show below [00005748:00006624, 2016/02/14, 12:03:24.391, FATAL] Role process exited with exit code of -2147024809 [00005748:00006624, 2016/02/14, 12:03:24.397, INFO ] Stopping role: deployment25(0).AzureCloudService2.WebRole1_IN_0. Notify: False Recycle: False StopTimeout: 30 [00005748:00006624, 2016/02/14, 12:03:24.398, IMPRT] State of deployment25(0)

Run multiple WorkerRoles per instance

試著忘記壹切 提交于 2019-11-28 04:34:47
I have several WorkerRole that only do job for a short time, and it would be a waste of money to put them in a single instance each. We could merge them in a single one, but it'd be a mess and in the far future they are supposed to work independently when the load increases. Is there a way to create a "multi role" WorkerRole in the same way you can create a "multi site" WebRole ? In negative case, I think I can create a "master worker role", that is able to load the assemblies from a given folder, look for RoleEntryPoint derivated classes with reflection, create instances and invoke the .Run()

Azure Roles and Instances

爱⌒轻易说出口 提交于 2019-11-28 03:59:04
问题 Can I have a Web Role and a Worker role run on the same instance, or do I have to obtain 2 separate hosting instances and pay twice the amount I would otherwise? I have a WCF Web API that I want to host on Azure. I also have a Worker Role that listens to a Queue in Azure Storage. Every time a message is added to the Queue, it will obtain that and run a small task depending on the message. I was wondering if I can just run these two on the same instance or not. 回答1: "Worker Role" and "Web Role

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

六月ゝ 毕业季﹏ 提交于 2019-11-28 03:36:41
问题 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 copying locally to the worker role). Is there an established workflow/best practices on how to do this? The closest thing I was able to find was this question: Copy file from URL to Azure BLOB However to use StartCopyFromBlob I would need to have a

Quartz.Net Jobs in Azure WebRole

核能气质少年 提交于 2019-11-28 01:00:41
问题 I'm currently porting a WCF Service Project over to an Azure Role. Until now the library containing the service also hosted a Quartz.Net JobFactory for some lightweight background processing (perdiodically cleaning up stale email confirmation tokens). Do I have to move that code into a seperate worker role? 回答1: No you don't have to setup a separate worker role. You simply have to start a background thread in your OnStart() Method of your Web Role. Give that thread a Timer object that

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

跟風遠走 提交于 2019-11-28 00:02:39
问题 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 Timer . Even the default code provided in the Worker project template in Visual Studio uses a Thread.Sleep : public class WorkerRole : RoleEntryPoint { public override void Run() { // This is a sample worker implementation. Replace with your logic.

The type initializer for 'Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment' threw an exception

笑着哭i 提交于 2019-11-27 18:30:40
问题 I am trying to use Windows Azure Caching to store sessions in a MVC4 application. I build a application following steps from Link but when i try to make object of DataCache using below code line. DataCache cache = new DataCache("default"); Errors occurs: Microsoft.WindowsAzure.ServiceRuntime.dll not found or version mismatched, I updated my Windows Azure Emulator version to 2.0.0 and install WindowsAzure.Caching package version 2.0.0.0 using NuGet package installer. Now the error changes to