azure-web-roles

Access to a specific file location (c:/folder/file) in an Azure website

こ雲淡風輕ζ 提交于 2019-12-11 01:28:14
问题 A company provides me a .dll with many files. The dll access to files using this kind of path " C:/folder/file.config ". I'm working on IIS 8 over a dedicated server BUT I would like to migrate the project on Windows Azure. I know that Windows Azure provides Virtual Machines, But I wouldn't use it just for this need. In my dream, I would like to use a web site linked to an Azure Storage and the dll which is located on the web site could access to its " C:/folder/file.config ". Could Windows

How do I know why my Azure instance doesn't start?

蓝咒 提交于 2019-12-11 01:01:31
问题 I deployed my service package into Windows Azure. Management Portal has been showing "waiting for the role instance to start" for 30 minutes already so I assume something is wrong. I know that there's Azure Diagnostics, but is there some easier way to find what's going on in my instance - like some console displaying some detailed output or something? 回答1: @dunnry The problem is that you can't open a RDP session to the server if your Azure Role is not running, so you don't know anything what

Is it possible to host a WCF service in an Azure WebRole (MVC)

陌路散爱 提交于 2019-12-10 21:48:18
问题 Is it possible to host a WCF service in an Azure WebRole (MVC)? Also; I assume that net.tcp is not supported. 回答1: And you're correct that net.tcp won't work in a web role (where all input endpoints have to be HTTP). But net.tcp should work fine in a worker role. 回答2: Yes. It's often a little easier to host your WCF services in a web project. Especially when you have multiple WCF Services. 来源: https://stackoverflow.com/questions/2926737/is-it-possible-to-host-a-wcf-service-in-an-azure-webrole

MS Azure Webrole - How to specify web root drive storage size

半城伤御伤魂 提交于 2019-12-10 19:19:49
问题 I'm working on very large and complex enterprise web application to be hosted in azure. In noticed that the web root is located on E drive. I also noticed that C: drive is 490GB size. But interestingly the size of web root on E drive is only 1GB. is there any way to either specify the drive you want to install e.g. C: or specify the size of the drive while deploying? I also checked that all M,Large etc. VM Size have same storage size for E: 回答1: You cannot specify the location of webroot !

Unable to RDP to Windows Azure Svc VM (RDP enabled, RDP endpoint configured)

断了今生、忘了曾经 提交于 2019-12-10 19:13:41
问题 I've seen multiple articles discussing how to configure your RDP settings via visual studio, credential caching via the RDP program, and yet we still have a problem. I've also seen articles saying "you need to add an endpoint to your role for RDP" -- If I do that, Visual Studio complains that "an endpoint is already defined for remote desktop" -- because it does this behind the scenes (or so it seems) when you enable RDP via the UI. (It wont let me publish, so I'm going to (cringe) assume

Conflicting versions error adding ASP.NET MVC 3 Web Role to Windows Azure project

自作多情 提交于 2019-12-10 14:40:34
问题 I am getting the following error creating a new project after installing Windows Azure Tools 1.4: Conflicting versions of ASP.NET Web Pages detected: specified version is "1.0.0.0", but the version in bin is "2.0.0.0". To continue, remove files from the application's bin directory or remove the version specification in web.config. 回答1: You'll find you have an assembly in your bin folder that is a different version from the one mentioned in the web.config. The weird bit is that it may not be

How to Stop single Instance/VM of WebRole/WorkerRole

时光毁灭记忆、已成空白 提交于 2019-12-10 13:31:47
问题 We have a VM say SampleVM depoyed & running on Azure Environment and on the same we have created 2 instances One is WebRole & other is WorkerRole running onto Slot staging. My prob is I am able to Start/Stop SampleVM through powershell command but How can I Start/Stop a single instance(WebRole or WorkerRole) running on a SampleVM. However when I stop SampleVM then both the Instance also stopped but I want to stop only one Instance/VM i.e. WebRole Or WorkerRole. Please provide some powershell

Azure tools - Object reference not set to an instance of an object

柔情痞子 提交于 2019-12-10 12:49:02
问题 I am trying to create a new project that uses the "Windows Phone Empty Cloud Application" template(Windows Azure Tools) in Visual Studio 2010. When creating a new project it opens a small window with instruction/readme where it says: In Solution Explorer, right-click the Windows Azure project, point to Debug and click Start new instance. Wait for the Web role to start and click the Continue to this website (not recommended) link to be able to browse the site despite of the certificate warning

Azure webrole excesive headers

泄露秘密 提交于 2019-12-10 12:18:54
问题 I have a website running in Azure Web Roles. I tested the site against asafaweb.com and got an "Excessive Headers" warning. Basically Azure sends out the IIS version and the .net version as part of the header. There is plenty of information on how to turn these headers off in IIS, but how do I turn them off in Azure? 回答1: This is what I use in most projects to hide these headers: Global.asax.cs (only applies to MVC projects) protected void Application_Start() { MvcHandler

Azure network communication between instances of the same role

筅森魡賤 提交于 2019-12-10 10:31:07
问题 Can multiple role instances of the same role can talk to each other by obtaining VIP (Virtual IP) address for a specific endpoint listened by all those instances from RoleEnvironment ? If so, is returned VIP can be load balanced to the caller (of RoleEnvironment methods) instance itself. 回答1: Role instances can talk to each other via internal endpoints. Unlike input endpoints, they are only visible to other instances within a deployment (regardless of the role). Talking directly, via internal