azure-web-roles

azure table : Duplicate partition key results in (409) conflict

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 19:34:51
问题 I am trying to insert multiple rows into the Azure table service. As far as this article goes, I have understood the partition key to be able to store duplicates. However, while following this article, when I try to insert a duplicate partition key I get an error: The remote server returned an error: (409) Conflict. What could be wrong in my code? I am following it as per the second article; Or is my understanding incorrect? Also, the first article says that the row key is supposed to act as

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

≯℡__Kan透↙ 提交于 2019-12-01 18:51:06
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 framework. The exception appears to be harmless, I haven't experienced any issues. Still I'm curious,

What starts first Application_Start or WebRole's OnStart?

馋奶兔 提交于 2019-12-01 18:15:38
I have MVC project on Windows Azure. This project has WebRole with method OnStart. And I want to know what starts first Application_Start of Global.asax or WebRole's OnStart? Pretty sure this is non-deteministic after SDK 1.3. Trying to time something from one to the other will just end in a race condition. Prior to 1.3, the Hosted Worker Core (HWC) was hosted in the RoleEntryPoint, so there was a deterministic startup (OnStart, Application_OnStart, IIRC). However, with IIS hosting the web now, it is the IISConfigurator.exe that creates the app pool, etc, and eventually w3wp.exe hosts your web

FileLoadException: Could not load file or assembly in WebRole (recycling instance)

与世无争的帅哥 提交于 2019-12-01 14:29:31
My WebRole won't start but keeps restarting and throws this exception: Application: WaIISHost.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileLoadException: Could not load file or assembly 'Autofac, Version=3.4.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'Autofac, Version=3.4.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da' at MyDomain

Cloud service for webrole running in ARM Resource group

拈花ヽ惹草 提交于 2019-12-01 13:43:42
My understanding so far on PaaS deployment using WebRoles or Worker Roles- Spinning Web roles or Worker roles will create Cloud service to manage it. However, in ARM resource group, their is no concept of Cloud service, then how are web & worker roles managed in ARM resource group? Also I tried adding the webroles via JSON Outline in VS 2015, but no option to add webroles. So not sure if you can deploy webroles via JSON template? Any information will be of great help. Azure Resource Manager Web apps rely on the concept of App Service Plans, rather than cloud services. Basically this is the

FileLoadException: Could not load file or assembly in WebRole (recycling instance)

雨燕双飞 提交于 2019-12-01 12:53:15
问题 My WebRole won't start but keeps restarting and throws this exception: Application: WaIISHost.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileLoadException: Could not load file or assembly 'Autofac, Version=3.4.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT:

How can I access ConfigurationSettings using a PHP Cloud Service on Windows Azure?

做~自己de王妃 提交于 2019-12-01 12:03:58
I'd love to be able to access ConfigurationSettings from within a PHP application in a Windows Azure cloud service (web role), but I can't seem to make it work. I've got this configured in my ServiceDefinition.csdef, and I have the corresponding settings configured in my cscfg files: <ConfigurationSettings> <Setting name="DBSERVER" /> <Setting name="DBNAME" /> <Setting name="DBUSERNAME" /> <Setting name="DBPASSWORD" /> </ConfigurationSettings> I have tried to do something like RoleEnvironment::getConfigurationSettings() using the "new" PHP SDK, but it doesn't seem to work. I've searched and

How can I access ConfigurationSettings using a PHP Cloud Service on Windows Azure?

依然范特西╮ 提交于 2019-12-01 09:19:44
问题 I'd love to be able to access ConfigurationSettings from within a PHP application in a Windows Azure cloud service (web role), but I can't seem to make it work. I've got this configured in my ServiceDefinition.csdef, and I have the corresponding settings configured in my cscfg files: <ConfigurationSettings> <Setting name="DBSERVER" /> <Setting name="DBNAME" /> <Setting name="DBUSERNAME" /> <Setting name="DBPASSWORD" /> </ConfigurationSettings> I have tried to do something like RoleEnvironment

VIP Swaps and Persistence - when exactly do VIPs get recycled?

有些话、适合烂在心里 提交于 2019-12-01 08:49:05
How is VIP swapping + CNAMEs better than IP swapping + A records? As a continuation from the above - I'm very close to reverting back to A records due to issues I'm having with CNAMEs in Azure. From the Azure docs , it's stated: Note, however, because the lifetime of the IP address is associated with a deployment, it is important not to delete your deployment if you need the IP address to persist. Conveniently, the IP address of a given deployment slot (production or staging) is persisted when using the two upgrade mechanisms in Windows Azure: VIP swaps and in-place upgrades. I have myapp

VIP Swaps and Persistence - when exactly do VIPs get recycled?

徘徊边缘 提交于 2019-12-01 07:09:26
问题 How is VIP swapping + CNAMEs better than IP swapping + A records? As a continuation from the above - I'm very close to reverting back to A records due to issues I'm having with CNAMEs in Azure. From the Azure docs, it's stated: Note, however, because the lifetime of the IP address is associated with a deployment, it is important not to delete your deployment if you need the IP address to persist. Conveniently, the IP address of a given deployment slot (production or staging) is persisted when