azure-web-roles

Build error after upgrade Azure SDK from 2.4 to 2.6

大兔子大兔子 提交于 2019-12-04 22:20:36
问题 I just upgraded my web role project (and solution) from Azure SDK 2.4 to Azure SDK 2.6 using the upgrade functionality under project properties > application. When I am building my application, everything works well but when I try to run it (and start up the Azure emulator and such) it gives the following error when I click "NO" if I want to proceeed with build errors: unable to get setting value Parameter name: profileName See build output: Nothing more. When I open my output I can not find

how to get blob-URL after file upload in azure

天涯浪子 提交于 2019-12-04 15:04:53
问题 I'm trying to connect web and worker role. So i have a page where user can upload video files. Files are large so i can't use the query to send files. That's why i'm trying to upload them into the Blob Storage and then send the url by the query. But i don't know how to get this url. Can anyone help me? 回答1: Assuming you're uploading the blobs into blob storage using .Net storage client library by creating an instance of CloudBlockBlob , you can get the URL of the blob by reading Uri property

aspnet_compiler in Azure starup task

一个人想着一个人 提交于 2019-12-04 14:58:43
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? sharptooth 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 is to use ClientBuildManager.PrecompileApplication as described in this answer . I tried calling

Is it possible to have the Windows Azure emulator open the browser to a URL other than 127.0.0.1

China☆狼群 提交于 2019-12-04 11:57:45
Simple question but lots of meaning/discussion behind!!! Is it possible to have the Windows Azure emulator open the browser to a URL other than 127.0.0.1 and port 81? Follow the steps to change 127.0.0.1 to desire IP Compute Emulator Settings: Go to %Program Files%\Microsoft SDKs\Windows Azure\Emulator\devfabric Take backup of “DevFC.exe.config” so that if something goes you can revert it back. Change following settings to desired IP address range and subnet: <add key="StartIPAddress" value="192.168.0.20"/> (This can be IP address on your machine) <add key="EndIPAddress" value=”192.168.0.40" /

Deploying Multiple Web Roles and Worker Roles on a Single Azure Cloud Service

邮差的信 提交于 2019-12-04 07:20:57
This may not be new, but I hope some one can put me on right track as its bit confusing during azure deployment. I'm in the process of planning for deployment on Azure. This is what I have A Public facing ASP.Net MVC app (web-role) + WCF Service (web-role) to be accessible only to this asp.net app + WCF Service (worker-role) again accessible to 1. over message-queue An Custom STS i.e. ASP.NET MVC app (web-role) acting as Id-Provider (for 1. which is a Relying Party) + WCF Service (web-role) to expose some of STS funcionality to RP's such as 1. SQL Azure: accessed by 1 and 2 Note: 1. will

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

送分小仙女□ 提交于 2019-12-04 05:21:40
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? 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 ${pageContext.request.userPrincipal.name} in ADMIN Group </c:if> </c:if> Note that : Calling method with/without

How to update an Azure Cloud Service setting using Azure Powershell

不问归期 提交于 2019-12-04 04:13:56
问题 Is it possible to update the value of a setting in an Azure Cloud Service with Azure Powershell? 回答1: So far there is no way to update just a single setting (the Service Management API does not allow it - it only accepts the whole service configuration). So, in order to update a single setting, you will have to update the entire configuration. And you can do this with PowerShell: # Add the Azure Account first - this will create a login promppt Add-AzureAccount # when you have more then one

Cloud service for webrole running in ARM Resource group

丶灬走出姿态 提交于 2019-12-04 02:06:29
问题 My understanding so far on PaaS deployment using WebRoles or Worker Roles- Spinning Web roles or Worker roles will create Cloud service to manage it. However, in ARM resource group, their is no concept of Cloud service, then how are web & worker roles managed in ARM resource group? Also I tried adding the webroles via JSON Outline in VS 2015, but no option to add webroles. So not sure if you can deploy webroles via JSON template? Any information will be of great help. 回答1: Azure Resource

Automatically install Application Initialization in Azure Web Role (SDK v1.8, Windows Server 2012)

空扰寡人 提交于 2019-12-04 01:18:46
问题 I see Microsoft have released Application Initialization as part of IIS 8.0. Unfortunately it isn't enabled in the Web Role by default. (by that I mean, "Application Initialization" as a feature of the web server role is not enabled. I know the Web Role has IIS 8.) Does anyone know how I can enable this from a start-up script? I've already a number of start-up scripts, but I'm not sure how to add a server role feature. The module itself appears inside Server Manager under "Server Roles" ->

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

喜你入骨 提交于 2019-12-03 22:56:50
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 running. Or as this drive is just a vhd of resources, we may well occasionally upload a new vhd. So