azure-web-roles

Restart Azure Worker Role from Web Role

馋奶兔 提交于 2019-12-08 01:51:10
问题 I have a Worker Role that executes code (fetching data and storing it to Azure SQL) every X hours. The timing is implemented using a Thread.Sleep in the while(true) loop in the Run method. In the Web Role I want to have the abillity to manualy start the code in Worker Role (manualy fecth and store data in my case). I found out that the whole Worker Role can be restarted using the Azure Management API but it seems like an overkill, especialy looking at all the work needed around certificates.

Azure Web Role Internal Endpoint - Not Load Balanced

眉间皱痕 提交于 2019-12-08 00:57:38
问题 The Azure documentation says that internal endpoints on a web role will not be load balanced. What is the practical ramification of this? Example: I have a web role with 20 instances. If I define an internal endpoint for that web role, what is the internal implementation? For example, will all 20 instances still service this end point? Can I obtain a specific endpoint for each instance? We have a unique callback requirement that could be nicely served by utilizing the normal load balancing

Azure: there was a failure to launch the remote debugger

时间秒杀一切 提交于 2019-12-07 15:34:29
问题 I deployed a web role in windows Azure, based on the following tutorial. http://weblogs.asp.net/scottgu/archive/2013/10/22/windows-azure-announcing-release-of-windows-azure-sdk-2-2-with-lots-of-goodies.aspx but when I try attaching the debugger I get the following message: "there was a failure to launch the remote debugger" apparently this is a known issue, and the suggested solution from Microsoft is to restart the visual studio and try again, which unfortunately didn't work for me http:/

Add WebRole.cs - and have it called - in an existing ASP.NET MVC site converted to web role

与世无争的帅哥 提交于 2019-12-07 11:43:41
问题 I have an ASP.NET MVC 4 site running perfectly well in an Azure WebRole. The ASP.NET MVC project was started on its own, after which I added an Azure Cloud Service project to the solution and added the ASP.NET project/site as one of the 'roles' of the service (so it shows up in the 'Roles' folder). My problem is that I would like to have working a WebRole.cs file within the ASP.NET MVC project, but no matter what I've tried to do, it appears that when deployed, it just never gets called.

How to detect if ASP.NET site is running locally, in azure web role, or azure web site?

ε祈祈猫儿з 提交于 2019-12-07 06:07:16
问题 Note: This is different from the question of detecting running locally versus in an Azure role, which I understand has been answered already. I've got an APS.NET MVC app which I deploy to Azure. I'm running V2.5 of the Azure tooling. I'd like to be able to detect which of the following three scenarios the code is running in: Locally (debugging on IIS), Azure website or Azure web role I've seen in other posts the suggestion to use the following: RoleEnvironment.IsAvailable However, this seems

How do I import a public certificate to Windows Azure?

拈花ヽ惹草 提交于 2019-12-07 05:40:49
问题 I am going to communicate from Windows Azure to another public web service through SSL. And the certificate on public web service is self-signed. Therefore I need to trust the public certificate on my Windows Azure. How can I import the certificate (.cer) to Windows Azure? The management portal only allow import a certificate with private key. 回答1: This is actually an issue with the portal, not with azure itself. Go to the "Add Certificate" section in the portal, click the browse button,

Azure WCF Webrole error: The remote server returned an unexpected response: (413) Request Entity Too Large

十年热恋 提交于 2019-12-06 12:53:45
I have a Windows Azure webrole (WCF) webservice. I have a method to upload files to Window Azure blob storage. This works well, but only for small ( < 30 Kb) files. <OperationContract()> Function UploadFileV1(ByVal ApplicationSessionGuid As String, ByVal UserSessionGuid As String, ByVal FileContent As Byte(), ByVal FileName As String, ByVal FileDescription As String, ByVal FileDisplayName As String, ByVal IsPublic As Boolean) As DataSet If this part: ByVal FileContent As Byte() is bigger than 30 Kb then I get an error when I call the webservice. The remote server returned an unexpected

Why does IIS accept requests before RoleEntryPoint.OnStart returns?

自古美人都是妖i 提交于 2019-12-06 12:13:25
I'm playing with Azure sample from here on Compute Emulator and I found that if I make OnStart() in my class inherited from RoleEntryPoint rather slow to return the .aspx page in the web role accepts HTTP requests even before OnStart() returns. I find it rather confusing - why would IIS accept requests to the role that hasn't yet started? The emulator does not emulate the load balancer 100%. For the cloud, when your role is in OnStart() you are reported to the LB as Busy and no traffic will be routed to it. Once you return from OnStart() with true, it will take a few seconds or so but only

Restart Azure Worker Role from Web Role

南笙酒味 提交于 2019-12-06 11:55:46
I have a Worker Role that executes code (fetching data and storing it to Azure SQL) every X hours. The timing is implemented using a Thread.Sleep in the while(true) loop in the Run method. In the Web Role I want to have the abillity to manualy start the code in Worker Role (manualy fecth and store data in my case). I found out that the whole Worker Role can be restarted using the Azure Management API but it seems like an overkill, especialy looking at all the work needed around certificates. Is there a better way to restart Worker Role from Web Role or have the code in Worker Role run on

Azure WebRole Scheduled Task Every Morning

谁说胖子不能爱 提交于 2019-12-06 09:13:54
问题 I am trying to figure out a solution to getting a WebRole to run a Task every morning at 5AM. I have looked at Quartz.Net and the examples on stackoverflow but all of them schedule the task to run every 10 minutes. Are there any examples that show how I can schedule it? 回答1: Quartz.Net should be good for you.Try to use CronTrigger (or CronTriggerImpl in version 2.x). Example of cron-expression - "0 0 5 * * ?" - run every day at 5 AM . Cron trigger sub-expression position meaning: Seconds - 0