azure-web-roles

What starts first Application_Start or WebRole's OnStart?

我的未来我决定 提交于 2019-12-30 18:57:08
问题 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? 回答1: 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

Multiple site strategy on web role(s) and cloud service(s)

北城以北 提交于 2019-12-30 03:15:13
问题 We have 3 public facing web applications which we are migrating to Azure. All sites use port 80. OPTIONS As far as I understand, there are three different options when using Web Roles: 1. All 3 sites hosted in ONE web role in a single cloud service : HTTP access can be configured by hostHeader in ServiceDefinition.csdef This is the cheapest Requires that all projects need to be published at the same time The sites cannot be scaled separately, only as a whole 1 Cloud Service project in Visual

How can I get the WebRole site root path from RoleEntryPoint.OnStart()?

旧巷老猫 提交于 2019-12-29 06:16:31
问题 As part of starting up a WebRole on Windows Azure I would like to access files on the website being started and I would like to do this in RoleEntryPoint.OnStart(). This will for instance enable me to influence ASP.NET config before the ASP.NET AppDomain is loaded. When running locally with Azure SDK 1.3 and VS2010 the sample code below do the trick, but the code has the stench of hack around it and it does not do the trick when deploying to Azure. XNamespace srvDefNs = "http://schemas

How can I get the WebRole site root path from RoleEntryPoint.OnStart()?

孤街浪徒 提交于 2019-12-29 06:16:26
问题 As part of starting up a WebRole on Windows Azure I would like to access files on the website being started and I would like to do this in RoleEntryPoint.OnStart(). This will for instance enable me to influence ASP.NET config before the ASP.NET AppDomain is loaded. When running locally with Azure SDK 1.3 and VS2010 the sample code below do the trick, but the code has the stench of hack around it and it does not do the trick when deploying to Azure. XNamespace srvDefNs = "http://schemas

How can I get the WebRole site root path from RoleEntryPoint.OnStart()?

北战南征 提交于 2019-12-29 06:16:15
问题 As part of starting up a WebRole on Windows Azure I would like to access files on the website being started and I would like to do this in RoleEntryPoint.OnStart(). This will for instance enable me to influence ASP.NET config before the ASP.NET AppDomain is loaded. When running locally with Azure SDK 1.3 and VS2010 the sample code below do the trick, but the code has the stench of hack around it and it does not do the trick when deploying to Azure. XNamespace srvDefNs = "http://schemas

Deploy PDBs on an Azure Web Role

情到浓时终转凉″ 提交于 2019-12-28 16:41:53
问题 I have a project that is deployed via a VS 2012 Azure Project (from right in VS, not manually). The web role project is set to build "pdb-only" Debug Info in release mode, but when deploying the PDBs are not packaged and copied to the web role VM on Azure. How do I get the PDBs to get included in the package and transmitted to the server? The reason I want to include my PDBs in production is because I want to get line numbers in my ELMAH reports. 回答1: I tried this out with a basic "File, New

Deploy a web role on Azure

十年热恋 提交于 2019-12-25 12:35:21
问题 Below is the task i have to complete in a few weeks, my question is does anyone know of any tutorials or books which will be of use to me? I also only have little knowledge of C#. You will design the relevant code in ASP.NET and C# so that you can deploy a web role on Azure that can: a) read in a zip file from input on the web page b) uncompress the zip file which will have an executable, an arbitrary list of arguments and data files c) run the executable with the arguments (and hence read in

Deploy a web role on Azure

蹲街弑〆低调 提交于 2019-12-25 12:34:27
问题 Below is the task i have to complete in a few weeks, my question is does anyone know of any tutorials or books which will be of use to me? I also only have little knowledge of C#. You will design the relevant code in ASP.NET and C# so that you can deploy a web role on Azure that can: a) read in a zip file from input on the web page b) uncompress the zip file which will have an executable, an arbitrary list of arguments and data files c) run the executable with the arguments (and hence read in

Azure VIP Swap to different number of end points

六月ゝ 毕业季﹏ 提交于 2019-12-25 09:34:48
问题 I'm trying to replace a hosted service with an empty redirect project, however when I try to do so I get the following error; Windows Azure cannot perform a VIP swap between deployments that have a different number of endpoints. I believe the only solutions available to me are the following; Point DNS to the staging deployment which after 48 hours of propagation delete the production instance and change my DNS to a new deployment of the empty redirect project. Delete the production instance

Failed to retrieve deployment history when I try to view the deployment tab of a web site connected to TFS

倾然丶 夕夏残阳落幕 提交于 2019-12-25 04:08:00
问题 When I try to view the deployment tab of a web site connected to TFS, I get the following error: Get/Refresh TFS OAuth token failed with invalid_grant It used to work. Doesn't work anymore. And not able to disconnect this could service from TFS: "Unlink TFS failed to complete cleanly. All info was removed from the Portal, but some might remain on TFS Hosted Services." Do you have any idea ? 回答1: Today, I was able to use the link to connect to my Visual Studio Account. It works now. 来源: https: