azure-web-roles

Can I access web.config from my Azure web role entry point?

久未见 提交于 2019-11-30 05:47:51
问题 I have an Azure web role and I want to store some settings in web.config under <appSettings> tag. Yes, I'm aware of service configuration files, yet I have reasons to prefer web.config. When I execute (from here): System.Configuration.Configuration rootWebConfig = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(null); if (rootWebConfig1.AppSettings.Settings.Count > 0) { } settings count is always zero although I've added a key-value pair under <appSettings> . What am I

Updating aspnet.config on Azure Web Role

落花浮王杯 提交于 2019-11-30 04:49:45
问题 I have a SignalR solution that is deployed to an Azure Web Role (cloud service, not Azure Web Site) and in order to ensure we can maximise the number of connections to each instance I need to make some changes various ASP.NET settings as detailed in this article: http://www.asp.net/signalr/overview/performance/signalr-performance#tuning The appConcurrentRequestLimit and requestQueueLimit settings were easily changed with a startup task that uses APPCMD to make the relevant changes. However,

How to get aspnet_compiler invoked from Visual Studio during build?

一世执手 提交于 2019-11-30 04:37:06
问题 I want Visual Studio to precompile my ASP.NET application which is used as an Azure web role payload. So I've found this post that explains how to call aspnet_compiler to validate views. I tried to add the following to "post-build event" of my ASP.NET application: call "%VS100COMNTOOLS%\vsvars32.bat" aspnet_compiler -v / -p $(ProjectDir) or alternatively this (application name specified explicitly): call "%VS100COMNTOOLS%\vsvars32.bat" aspnet_compiler -v /ASP.NET-Application-ProjectNameHere

How to disable RC4 cipher on Azure Web Roles

依然范特西╮ 提交于 2019-11-30 03:13:22
问题 I have a web application that is hosted on Microsoft Azure Web-Role. How can I disable RC4 cipher? 回答1: The problem I encountered using a Powershell script was that the keys that require modifying contain a forward slash and Powershell treats this as a path separator and the script fails. The solution was to create a console application and set that to run at start up: class Program { static void Main(string[] args) { string[] subKeys = new string[] { "RC4 40/128", "RC4 56/128", "RC4 64/128",

Disable IIS Idle Timeouts in Azure Web Role

亡梦爱人 提交于 2019-11-29 21:30:33
To prevent AppPool recycling every 20 minutes, I'd like to remove IIS AppPool Idle Timeouts when my Azure Web Role starts. My website is a Web Application Project. How do I do this? Edward Brey Create a startup task to disable the idle timeout: In the website project referenced by your web role project, add a file Startup.cmd to the root folder. In the properties for Startup.cmd , set Copy to Output Directory to Copy if newer . Add this line to Startup.cmd : if exist %windir%\system32\inetsrv\appcmd.exe %windir%\system32\inetsrv\appcmd set config -section:applicationPools

How many roles can you have per Azure instance

╄→гoц情女王★ 提交于 2019-11-29 15:26:57
问题 I know that you can only have 1 web role per instance but does this apply to Background roles as well? In more detail can 1 instance run a background role and a web role? 回答1: I think the terminology used in your question is confusing the other responders. In Windows Azure compute, you have a cloud service. A cloud service can be thought of as your overall architecture, or at least the front end, the middle tier, etc (any tier where there is compute as opposed to storage). For example your

Is it a good idea to reuse an Azure web role for backend processing?

▼魔方 西西 提交于 2019-11-29 13:57:05
I'm porting a huge application to Windows Azure. It will have a web service frontend and a processing backend. So far I thought I would use web roles for servicing client requests and worker roles for backend processing. Managing two kinds of roles seems problematic - I'll need to decide how to scale two kinds of roles and also I'll need several (at least two) instances of each to ensure reasonable fault tolerance and this will slightly increase operational costs. Also in my application client requests are rather lightweight and backend processing is heavyweight, so I'd expect that backend

azure role not starting after windows update 10February

ⅰ亾dé卋堺 提交于 2019-11-29 13:12:42
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).AzureCloudService2.WebRole1_IN_0 changed from RoleStateBusy to RoleStateStopping. [00005748:00006624, 2016/02/14,

Azure Roles and Instances

霸气de小男生 提交于 2019-11-29 10:42:28
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. David Makogon "Worker Role" and "Web Role" are just simple templates for "Windows Server 2008 with IIS running" and "Windows Server

Do you need 2 instances of Azure websites for SLA like Web Roles?

房东的猫 提交于 2019-11-29 10:12:39
On cloud services web roles you must create at least 2 instances to get Azure's 99.95% SLA because when they do updates to the servers' OS etc, Azure will need to restart the machines (one at a time). This is well documented and you will be shouted at by the portal when running a one instance web role for doing this. With Azure websites you don't get such warnings and I cannot find any documentation suggesting 2 instances for the 99.9% SLA. However, I also can't find any documentation saying that you don't need 2 instances for this SLA. So which is it? Do I need 2 instances for Azure websites'