azure-web-roles

Azure cloud service app (web role) goes down for ~10 mins occasionally due to Windows Updates? How can I schedule them?

梦想与她 提交于 2021-01-28 02:51:14
问题 It seems to happen every couple months or so and while it auto-recovers on its own usually within ~10 minutes I'd still like to find out how to change the Windows Update schedule since it frequently occurs during business hours. We have several web apps in various Azure subscriptions, and they all behave this way. Once we get a notification that one goes down, the others usually go down over the next few days/week. I used remote desktop to view the Event Viewer for the web role and see the

Implement azure colocated caching

笑着哭i 提交于 2020-01-21 04:45:08
问题 Using VS2012 I added the caching feature from the WebRole Properties Caching Tab. Among others, it generated the following XML in web.config: <dataCacheClients> <tracing sinkType="DiagnosticSink" traceLevel="Error" /> <dataCacheClient name="default"> <autoDiscover isEnabled="true" identifier="[cluster role name]"/> <!-- <localCache isEnabled="true" sync="TimeoutBased" objectCount="100000" ttlValue="300" /> --> </dataCacheClient> </dataCacheClients> Okay, great. I replaced the [cluster role

Role has encountered an error and has stopped

喜夏-厌秋 提交于 2020-01-15 19:16:54
问题 I am facing problem very similar to problem what we have in this question. We have a standard MVC5 application that we have deployed on Windows Azure using webrole. After deploying I can see below error message on visual studio 'Microsoft Azure Activity Log' window Your role instances have recycled a number of times during an update or upgrade operation. This indicates that the new version of your service or the configuration settings you provided when configuring the service prevent the role

Role has encountered an error and has stopped

白昼怎懂夜的黑 提交于 2020-01-15 19:15:11
问题 I am facing problem very similar to problem what we have in this question. We have a standard MVC5 application that we have deployed on Windows Azure using webrole. After deploying I can see below error message on visual studio 'Microsoft Azure Activity Log' window Your role instances have recycled a number of times during an update or upgrade operation. This indicates that the new version of your service or the configuration settings you provided when configuring the service prevent the role

Is it possible to run SQL Express within a Azure Web Role?

不羁岁月 提交于 2020-01-14 14:06:37
问题 I am working on a project which uses a relational database (SQL Server 2008). The local (on-premises) application both reads and writes to the database. I am working on a different front end for Azure (MVC2 Web Role), which will use the same data, but in a read only fashion. If I was deploying a traditional web app, I would use SQL Express to act as the local database, and deploy changes with updates to the application (the data changes very slowly) or via some sync system. With Azure, the

Is it possible to run SQL Express within a Azure Web Role?

喜你入骨 提交于 2020-01-14 14:06:36
问题 I am working on a project which uses a relational database (SQL Server 2008). The local (on-premises) application both reads and writes to the database. I am working on a different front end for Azure (MVC2 Web Role), which will use the same data, but in a read only fashion. If I was deploying a traditional web app, I would use SQL Express to act as the local database, and deploy changes with updates to the application (the data changes very slowly) or via some sync system. With Azure, the

How to connect to the Azure Compute Emulator remotely to test a web role from an iPhone

筅森魡賤 提交于 2020-01-13 20:20:41
问题 I need to test and debug my web app from an iPhone, but the Azure Compute Emulator appears to only listen on 127.0.0.1 and so it is not accessible from external machines. Anyone know how to change that? If it is impossible to change, does anyone have a suggestion for how to set up port forwarding to work around this limitation? 回答1: This limitation is by design for security reasons. There are, as you noe, a bunch of scenarios where it would be useful to bypass this restriction such as running

Generate Web.Debug.config which could be debugged

本小妞迷上赌 提交于 2020-01-13 07:27:23
问题 I have a web role Its web.config has a following lines <system.web> <compilation debug="false" targetFramework="4.5.1" /> When I want to debug my role each time I need to switch that option to true . Can I generate only for debug web.config with debug="true"? While compiling I have see the transforming step: Transformed Web.config using C:\data\Main\WebRole\Web.Debug.config into C:\data\Main\obj\x64\Debug\WebRole.csproj\TransformWebConfig\transformed\Web.config. Can I customize the above

WaitHandleCannotBeOpenedException on Azure web role start with Task.Wait()

我怕爱的太早我们不能终老 提交于 2020-01-11 05:17:26
问题 The following (web) role entry point, after returning, causes the below exception to be thrown. public class WebRole : RoleEntryPoint { public override bool OnStart() { Task.Run(() => { // Anything can be here, but the lamdbda can be empty too... }).Wait(); return true; } } The exception: A first chance exception of type 'System.Threading.WaitHandleCannotBeOpenedException' occurred in mscorlib.dll Additional information: No handle of the given name exists. As apparent this is thrown from the