azure-web-roles

How to set up an A-record for Azure hosted website / web role?

蹲街弑〆低调 提交于 2019-12-23 16:40:34
问题 We want to host a website on Windows Azure and it can technically be a Website or a Web role , we don't particularly care. Is there currently a way to set an A-record for either of them? It seems that shared Websites don't support DNS entries at all and that the reserved instances support CNAME only. Do web roles support A-type DNS records? If not, how real-world deployments on Azure deal with that? For our web site, it is absolutely necessary that it serves both www.example.com and example

Is it possible to connect do remote desktop with windows azure websites?

房东的猫 提交于 2019-12-23 04:35:22
问题 I have been doing this with webrole. But as I understand windows azure websites: multiple sites hosted in a single webrole. Q.1. Is it possible to connect to webrole? Q.2. Is it possible to atleast connect to Azure IIS management console? 回答1: No, with Windows Azure Web Sites it is a managed solution. You can edit web.config and use the management portal, but there is no more direct ways to access the underlying compute resource. 回答2: Adding to Jeff's answer, while you can't remote debug your

Is it possible to connect do remote desktop with windows azure websites?

房东的猫 提交于 2019-12-23 04:35:16
问题 I have been doing this with webrole. But as I understand windows azure websites: multiple sites hosted in a single webrole. Q.1. Is it possible to connect to webrole? Q.2. Is it possible to atleast connect to Azure IIS management console? 回答1: No, with Windows Azure Web Sites it is a managed solution. You can edit web.config and use the management portal, but there is no more direct ways to access the underlying compute resource. 回答2: Adding to Jeff's answer, while you can't remote debug your

Azure websites RoleEnvironment.IsAvailable equivalent [duplicate]

自作多情 提交于 2019-12-23 02:42:17
问题 This question already has answers here : How to check if code is running on Azure Websites (2 answers) Closed 4 years ago . I'm migrating an web app from an Azure Cloud Services Web Role to Azure Websites. Websites can't find Microsoft.WindowsAzure.ServiceRuntime and doesn't seem to like the Cloud Service helpers in general. The app uses RoleEnvironment.IsAvailable in a few places to behave differently online versus on a development computer. (We ran in development outside of the Web Role

Azure Web Role Stress Test - 1000ms blocking operation in AsyncController

霸气de小男生 提交于 2019-12-23 01:37:14
问题 Today, I wanted to simulate waiting for a long-running blocking process (5 to 30 seconds) from within an AsyncController in an MVC3 web role. However, to begin, I just started with 1 second, to get things going. Yes, the wisdom of this is questionable, since the blocking operation cannot currently be run asynchronously on an I/O Completion Port to an external service, but I wanted to see what the performance limit is for this particular situation. In my web role, I deployed 6 small instances.

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

纵然是瞬间 提交于 2019-12-22 21:07:14
问题 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

Why does IIS accept requests before RoleEntryPoint.OnStart returns?

送分小仙女□ 提交于 2019-12-22 18:37:40
问题 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? 回答1: 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

Why does IIS accept requests before RoleEntryPoint.OnStart returns?

半腔热情 提交于 2019-12-22 18:37:13
问题 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? 回答1: 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

Entity Framework DbContext in Azure Web Role

半城伤御伤魂 提交于 2019-12-22 04:21:25
问题 I am migrating an existing Web Application (using Entity Framework 5) to an Azure Web Role. The database connection string is being moved from the web.config to the ServiceConfiguration.*.cscfg files. The problem is that in the auto-generated Model.Context.cs file, my entities class is defined like this: public partial class MyEntities : DbContext { public MyEntities() : base("name=MyEntities") { } // DbSets, etc } This will always look for MyEntities in the web.config . How can I override

Could not load file or assembly ServiceRuntime 2.4.0.0

怎甘沉沦 提交于 2019-12-22 03:38:22
问题 After upgrading our project to use the Azure SDK 2.5, I get the following runtime exception when deployed to Azure (web role): Could not load file or assembly 'Microsoft.WindowsAzure.ServiceRuntime, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. One of the referenced packages from NuGet is still referencing ServiceRuntime 2.4.0.0 . From what I understand, all I need to do to fix this is create a