azure-web-roles

How to connect to the Azure Compute Emulator remotely to test a web role from an iPhone

守給你的承諾、 提交于 2019-12-06 07:34:51
I need to test and debug my web app from an iPhone, but the Azure Compute Emulator appears to only listen on 127.0.0.1 and so it is not accessible from external machines. Anyone know how to change that? If it is impossible to change, does anyone have a suggestion for how to set up port forwarding to work around this limitation? This limitation is by design for security reasons. There are, as you noe, a bunch of scenarios where it would be useful to bypass this restriction such as running a test/int server or accessing from mobile devices. It is easy enough to circumvent though. You simply need

Best practice for Deployment of Web site into a cloud service

痞子三分冷 提交于 2019-12-06 07:26:30
问题 What's the best practice to deploy multiple Web site on Cloud Service ? I have three web sites, is it possible to deploy those three web sites into one Cloud Service ? (Three instances in one Cloud Service) Or Do I have to create three Cloud services and deploy each web site separetly ? Thank you My ServiceDefinition file: <WebRole name="WebRoleName" vmsize="ExtraSmall"> <Sites> <Site name="Web" physicalDirectory="../WebSite1"> <Bindings> <Binding name="Endpoint1" endpointName="Endpoint1" />

aspnet_compiler in Azure starup task

核能气质少年 提交于 2019-12-06 06:59:01
问题 Does anyone know if its possible to call aspnet_compiler from an azure role startup task to force a precompilation inplace. (And if so as a foregroudn/background or simple task?) Perhaps something like: %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_precompile.exe -v / -p "F:\siteroot\0" Or are there any better ways to accomplish this? 回答1: Yes, that should work once you figure out the right path to the compiler although I haven't tried this specific approach. An alternative I've tried

Azure: there was a failure to launch the remote debugger

吃可爱长大的小学妹 提交于 2019-12-06 03:55:18
I deployed a web role in windows Azure, based on the following tutorial. http://weblogs.asp.net/scottgu/archive/2013/10/22/windows-azure-announcing-release-of-windows-azure-sdk-2-2-with-lots-of-goodies.aspx but when I try attaching the debugger I get the following message: "there was a failure to launch the remote debugger" apparently this is a known issue, and the suggested solution from Microsoft is to restart the visual studio and try again, which unfortunately didn't work for me http://msdn.microsoft.com/en-us/library/windowsazure/dn459835.aspx Remote debugging may fail to attach to an

Which is the right function to call in a jsp page to verify the logged user is in role

烈酒焚心 提交于 2019-12-06 00:54:22
问题 I'm looking for the function to verify if the user logged belongs to a role. is maybe the following? pageContext.request.userPrincipal.roles How should I use it properly along with JSTL to test if the user belong to ADMIN group? 回答1: You can use Method expression ' request.isUserInRole ' in JSP to check whether current authenticated user has a role. Test this: <c:if test="${not empty pageContext.request.userPrincipal}"> <c:if test="${pageContext.request.isUserInRole('ADMIN')}"> User $

Add WebRole.cs - and have it called - in an existing ASP.NET MVC site converted to web role

ε祈祈猫儿з 提交于 2019-12-05 17:05:01
I have an ASP.NET MVC 4 site running perfectly well in an Azure WebRole. The ASP.NET MVC project was started on its own, after which I added an Azure Cloud Service project to the solution and added the ASP.NET project/site as one of the 'roles' of the service (so it shows up in the 'Roles' folder). My problem is that I would like to have working a WebRole.cs file within the ASP.NET MVC project, but no matter what I've tried to do, it appears that when deployed, it just never gets called. OnStart and the override of Run (which I know, must never leave the loop) -- these just apparently never

The correct way to delete and recreate a Windows Azure Storage Table = Error 409 Conflict - Code : TableBeingDeleted

谁说胖子不能爱 提交于 2019-12-05 13:28:51
问题 Im really new to Windows Azure development and have a requirement to store some data in a windows azure storage table. This table will really only exist to provide a quick lookup mechanism to some files which are located on azure storage drive. Therefore I was planning on populating this table at application start up (ie in web application global application start up) Rather than trying to maintain this table for changes the changes that could occur to the drive while the application is not

Your role instances have recycled a number of times during an update or upgrade operation

一个人想着一个人 提交于 2019-12-05 12:37:19
问题 I am trying to deploy a Cloud Service with 1 Web Role to Azure. When I do so, I get this message: Your role instances have recycled a number of times during an update or upgrade operation. This indicates that the new version of your service or the configuration settings you provided when configuring the service prevent the role instances from running. Verify your code does not throw unhandled exceptions and that your configuration settings are correct and then start another update or upgrade

How to detect if ASP.NET site is running locally, in azure web role, or azure web site?

本秂侑毒 提交于 2019-12-05 11:28:29
Note: This is different from the question of detecting running locally versus in an Azure role, which I understand has been answered already. I've got an APS.NET MVC app which I deploy to Azure. I'm running V2.5 of the Azure tooling. I'd like to be able to detect which of the following three scenarios the code is running in: Locally (debugging on IIS), Azure website or Azure web role I've seen in other posts the suggestion to use the following: RoleEnvironment.IsAvailable However, this seems to be an incomplete solution for my needs. It seems to detect if the code is running locally or as a

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