azure-web-roles

How to get full list of CloudConfiguration from inside a web service at runtime?

风流意气都作罢 提交于 2019-12-11 08:55:07
问题 ConfigurationManager has AppSettings name-value collection but CloudConfigurationManager has only GetSetting(string) method where you can get the config settings 1 by 1 if you know the key. Is there a way to get the whole config of the role runtime? The root cause is that I want to make strong typed configuration in order to abstract it away and make my code more testable. Using CloudConfigurationManager directly is implicit dependency which I want to remove with an abstraction which I want

Azure WebRole Sticky Load Balance

隐身守侯 提交于 2019-12-11 07:58:57
问题 I have an Azure WebRole, which publishes a WCF Service with PerSession setting. This means, session needs to be preserved for a long time... This is because of synch-framework and cannot be changed. Now I have the problem when I want to use Multi-Instances on that Web Role (Classic Azure Cloud Service) Can I configure an Application Gateway with endpoints not to the Public WebRole but to each Instances, so that the Gateway handles the Balancing? How? Thanks 回答1: Technically, the Application

Windows Azure Website with a Startup task

£可爱£侵袭症+ 提交于 2019-12-11 07:45:06
问题 I know that Azure Websites are made to be easy, not have role configs and such...but I was still wondering, is there ANY way to create a Startup Task when using a Website? I'm asking because I would like to ease the deployment of an existing website through FTP or GIT (not recompiling the source and such), and then use Startup Task to deploy an additional IIS provider to GAC? Kind regards, Vladan 回答1: In case of "Shared Instance" deployment model, I don't think it's possible because your

Debugging an Azure web role started with csrun.exe

徘徊边缘 提交于 2019-12-11 06:19:23
问题 I have a Visual Studio solution that has a cloud project with one web role (containing an ASP.NET MVC Web API). If I hit F5, the Azure emulator is started and I can debug the web role fine. I also have a test project that contains integration tests, to test the web api end to end. In the AssemblyInitialize operation, I use csrun.exe to deploy and start the Azure emulator like: "C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\csrun.exe" ..\..\..\..\Sources\Cfg.Mgp.Infrastructure.Cloud

Log4Net working fine in local dev fabric, worker role also, but not in Web Role

时间秒杀一切 提交于 2019-12-11 04:21:47
问题 I have a strange situation: I have configured custom log4net Appender to write to Azure Table storage. I have WorkerRole and WebRole. Both roles use osFamily="3" (Windows Server 2012), I use .NET 4.5 in both and use ASP.NET MVC4 for the WebRole. Everything is configured and works fine locally - both the worker and the web role are logging correctly. However, when I deploy to Azure, only Worker role logs successfully, webrole does not produce any logs (any!), while it should. I have configured

Only one instance works with Azure October 2012 SDK on IIS7.5

两盒软妹~` 提交于 2019-12-11 04:03:51
问题 I just upgraded my Azure solution to VS2012 and October 2012 version. I have 2 webroles but only 1 of them is working now when I look it from IIS Manager. I'm sure of it because my webrole's inter-role communication requests are failing too. First I tought it can be another problem so I asked this question: Windows 8 Azure Emulator is Remapping Port 80 to 81 Here you can see my IIS Manager: 回答1: I had the same issue, and RESOLVED it following the suggested Registry hack here: Strange behavior

View Azure cloud service IIS logs

大兔子大兔子 提交于 2019-12-11 03:54:23
问题 I have created a simple MVC3 site that displays data from a table in an Azure database. I have created a cloud service to run the site in and can publish it successfully. I have also run the site successfully in the Azure emulator. My problem is that when I select the page that displays the data there is an error as I get the default error page. I think I have the db connections set correctly but I cannot see any logs. So my questions are: Where are the IIS logs? I would like to see what the

Is it possible to get the web.config from a deployed Web Role?

痞子三分冷 提交于 2019-12-11 03:37:49
问题 I'm currently trying to decide the merits of encrypting the web.config for a Web Role deployed to Azure. The answer to this question seems highlights the importance of knowing who can access the instance: Shall the DB ConnectionString within Web.config be encrypted when using Azure Cloud? However, I was under the impression no-one could access a Web Role instance in a way that would allow them to read the web.config. So my question is this: Is it possible to get the web.config from a deployed

Azure Service Bus Relay - 502 Bad Gateway after Service Restart

↘锁芯ラ 提交于 2019-12-11 03:09:51
问题 We are using the Azure Service Bus Relay for connecting our on-premise WCF services to our Azure-hosted Web Role. When we upgrade our on-premise WCF services, we always get a 502 Bad Gateway response from our first few requests through the Azure Service Bus, after the service bus host has re-established itself with the relay ( we don't get the "No service is hosted at the specified address." since the service is hosted properly). After a given timeout period - it seems the error disappears

How to use subdomain in Windows Azure?

可紊 提交于 2019-12-11 02:12:36
问题 I currently have my domain.com assigned to my azure website, but I'd like to know what I need to use subdomains. I suppose I need to create a CNAME at godaddy. But what do I point it to? And how does each subdomain point to each folder in my solution? Do I need web roles for this? I have no clue how to achieve this. Note. I have a shared instance. And I'm already using a custom domain. All I want is to create a folder in my solution, and create apps inside it: Solution < ExampleFolder <