webrole

Generate Web.Debug.config which could be debugged

本小妞迷上赌 提交于 2020-01-13 07:27:23
问题 I have a web role Its web.config has a following lines <system.web> <compilation debug="false" targetFramework="4.5.1" /> When I want to debug my role each time I need to switch that option to true . Can I generate only for debug web.config with debug="true"? While compiling I have see the transforming step: Transformed Web.config using C:\data\Main\WebRole\Web.Debug.config into C:\data\Main\obj\x64\Debug\WebRole.csproj\TransformWebConfig\transformed\Web.config. Can I customize the above

Azure: security between web roles

旧巷老猫 提交于 2019-12-25 14:30:08
问题 In Azure, if you choose to use internal endpoint (instead of input endpoint), https is not an option. http & tcp are the only options. Does it mean internal endpoint is 100% secure and you don't need encryption. Then it comes to another question. If i choose to use input endpoint between mvc application and wcf service. Is it really necessary to have https between them? Is it OK if i have 2 input endpoints for wcf. One with http on port 80, which is supposed to be used by mvc application.

Environment.GetEnvironmentVariable(“RoleRoot”) returning null when called in a WebRole

狂风中的少年 提交于 2019-12-21 04:33:09
问题 I have a method (in a separated class library) which is called by a WebRole and a WorkerRole. This method contains the path of a file, which is returned using Environment.GetEnvironmentVariable("RoleRoot") , as follows: private string FooPath() { string appRoot = Environment.GetEnvironmentVariable("RoleRoot"); return Path.Combine(appRoot + @"\", @"approot\file.foo"); } When I call this method from a WorkerRole the path is returned normally. But when I call it from a WebRole I get null . Any

Change document root on azure php webrole

百般思念 提交于 2019-12-13 01:25:35
问题 I want setup Laravel framework on azure webrole and have to change document root, but so far I can't find way how to do this My deployment project folder: ├──webrole <- now this is document root │ ├──app │ ├──bin │ ├──bootstrap │ ├──config │ ├──database │ ├──public <- I want make this as document root │ ├──resources │ ├──storage │ ├──tests │ ├──vendor │ ├──.env │ ├──.env.example │ ├──.gitattributes │ ├──.gitignore │ ├──artisan │ ├──composer.json │ ├──composer.lock │ ├──gulpfile.js │ ├─

Trying to create my .cspkg Azure package file, but getting an error “Need to specify the physical directory for the virtual path…”

隐身守侯 提交于 2019-12-12 18:54:57
问题 When I try to package my Azure web app (to create the .cspkg and .cscfg files), I get the following error in my ServiceDefinition.csdef file: Need to specify the physical directory for the virtual path 'AzurePOCWebRole/' of role AzurePOCWebRole Here's my .csdef file: I'm assuming the error is referring to my <Site name="AzurePOCWebRole"> piece. I try adding physicalDirectory to <Site name="AzurePOCWebRole" physicalDirectory="../AzurePOCWebRole"> : And try to create the package again, but I

How to pass object from webrole.cs to the controller of MVC?

混江龙づ霸主 提交于 2019-12-12 01:57:48
问题 I am working on web role in the Azure cloud service. Basically my web role is an MVC application and how can I make the controller in MVC communicate with the webrole.cs class. For example, in the run() method in webrole.cs I have received a message and I want to pass it to the MVC controller, how can I do that? Any help is appreciated! 回答1: You'd better use a azure service bus queue to do that. Send a message on Run, and take the message from queue in your mvc app. 来源: https://stackoverflow

Issue with Azure-TFS build in the case multiple websites in single webrole

99封情书 提交于 2019-12-11 03:55:32
问题 I have been using and publishing multiple websites in single web role without any issues. Then I tried implementing continuous delivery with Team foundation service as mentioned in http://www.windowsazure.com/en-us/develop/net/common-tasks/publishing-with-tfs/ But the problem started when i tried to use (azure)TFS builds. The build always fails when compiling the secondary site. There are no issues when manually packaged and deployed or packaging and deploying using powershell scripts.

Asp.net MVC5 WebRole after deployed to Azure Cloud, breaks on @Scripts.Render

回眸只為那壹抹淺笑 提交于 2019-12-10 17:35:53
问题 I have a cloud service with an Asp.Net MVC 5 Web Role and Azure SDK 2.3 targeting 4.5.1 framework; The website works perfectly in Local. But when I deploy it to Azure Cloud service, I have the classic null reference error: Object reference not set to an instance of an object. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 9: @Scripts.Render("~/bundles/jquery") My BundleConfig.cs is simple: public static void

Azure: How to execute startup tasks for each site entry at webrole?

与世无争的帅哥 提交于 2019-12-08 06:19:59
问题 We have WebRole, that hosting multiple sites. We made startup tasks for each site with some site specific actions. The problem is that only startup task of first site (first site listed in section), could be run during deployment. Looks like this happens cause only first site (or that one from web-role defifnition) will be copied to [drive]:\approot folder at WebRole Instance. All other sites will be copied to [drive]:\sites\ (early it was another location so it could be a subject of future

Generate Web.Debug.config which could be debugged

无人久伴 提交于 2019-12-04 22:39:37
I have a web role Its web.config has a following lines <system.web> <compilation debug="false" targetFramework="4.5.1" /> When I want to debug my role each time I need to switch that option to true . Can I generate only for debug web.config with debug="true"? While compiling I have see the transforming step: Transformed Web.config using C:\data\Main\WebRole\Web.Debug.config into C:\data\Main\obj\x64\Debug\WebRole.csproj\TransformWebConfig\transformed\Web.config. Can I customize the above transformation? There is a guidance http://msdn.microsoft.com/en-us/library/vstudio/dd465318(v=vs.100).aspx