azure-web-sites

Azure Websites, Can one deploy .NET 4.5.2 websites

蓝咒 提交于 2019-11-27 06:41:29
问题 From this SO post I see 4.5.1 is supported in WAWS and when you select 4.5, you are really running 4.5.1. How about the recently released 4.5.2 ? Is there any official documentation anywhere on which framework updates have been applied to WAWS? 回答1: (changing the answer now that we have updated Azure Web Sites with .NET 4.5.2) .NET 4.5.2 is currently installed on Azure Web Sites. So you can deploy websites which take advantage of 4.5.2 framework features. I'm updating this answer to reflect

How to install composer on app service?

谁说我不能喝 提交于 2019-11-27 05:30:46
I am new to using Microsoft Azure. My application requires composer to be installed on the server, how can I have it installed on the system of App services service? Application is in PHP. Gary Liu - MSFT You can install composer extension in the manage portal of your App Services. Login on your Azure Account at https://portal.azure.com Click the "tools" button, select "extensions" bar in the list on the right. Click "Add" button, open the extension list allowed to install in App Services. You can choose "Composer" there. After installing, you also can install Visual Studio Online extension or

VSTS: Pass build/release variables into Powershell script task

邮差的信 提交于 2019-11-27 05:19:04
问题 Ideally, I would want to configure our Azure Web App application settings using build variables (on VSTS), for example: We perform our publish tasks using Powershell scripts. In order to set app settings, the following script could be used: param($websiteName, $appSettings) Set-AzureWebsite -Name $websiteName -AppSettings $appSettings I could pass these build variables manually into a Powershell script build task, like so: PrepareAppSettings.ps1 -websiteName "MyWebApp" -appsettings @{

What is the difference between an API App and a Web App?

主宰稳场 提交于 2019-11-27 05:11:58
问题 I've been reading a few tutorials now on deploying Web Apps and API Apps to Azure. However, I am still a little unsure as to why you would use one over another. I can create a new .NET solution with API controllers and deploy this as a Web App, so why would I specifically require an API App? Are these optimized specifically for ASP.NET Web API, where as Web Apps are for delivering HTML? 回答1: Updating the answer to current state of Azure, App Services now replaces all Mobile, Api and Web Apps

Could not load file or assembly System.Web.Http.WebHost after published to Azure web site

不打扰是莪最后的温柔 提交于 2019-11-27 05:03:05
问题 I created a web project and it runs well in Visual studio. However, I got the following error after published it to azurewebsites. What can cause the issue? Could not load file or assembly 'System.Web.Http.WebHost, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Description: An unhandled exception occurred during the execution of

How to check if code is running on Azure Websites

送分小仙女□ 提交于 2019-11-27 04:44:44
问题 I knew that we can use RoleEnvironment.IsAvailable to check if code is running in Web/Worker Role. How about Azure Websites ? I tried the above RoleEnvironment code but it always returns false. I need to run some configuration code in Application_Start so I cannot depend on the request stuff. Any help is appreciated. 回答1: This is actually very easy simply check for existence of this environment variable: WEBSITE_SITE_NAME . !String.IsNullOrEmpty(Environment.GetEnvironmentVariable("WEBSITE

How to Get Error Details of an ASP.NET 5 app deployed on Azure Websites?

烂漫一生 提交于 2019-11-27 04:21:24
问题 I have an ASP.NET 5 solution with a website and several project libraries. I'm using MVC 6 and Entity Framework 7. Locally the app is working fine and until today it was working also on Azure deployed as an Azure Website. But today after the latest deployment on Azure I got an error 500 like this on the startup (still working fine locally): I tried to get more details by : using middleware diagnostics adding the customError / httpError settings in the web.config file downloading the

Publish WebAPI and MVC projects to same Azure Web Site?

帅比萌擦擦* 提交于 2019-11-27 04:15:56
问题 I have two seperate projects in Visual Studio - one with a WebAPI and one with a MVC Web Site... Can I publish both of these to the same Azure Web Site, so that requests to: - /api/products/ => gives JSON from the WebAPI - /products/ => gives HTML from the MVC web site 回答1: Go to Azure portal and create an AzureWebsite - Then setup an additional application in the settings as follows - Now create two projects in the Visual studio solution -> 1) MVC and 2) WebApi Download publishsettings file

How to get Azure easy auth JWT access_token

£可爱£侵袭症+ 提交于 2019-11-27 03:34:18
问题 I have an Azure App Service on which I have enabled Authentication/Authorization and configured AD as the authentication provider. All /.auth routes exist on the service, and I can log in. After successful login I can call /.auth/me to get the access_token . The response looks like: [ { "access_token": "AQABAAAAAA...Gni4EiQgAA", "expires_on": "2017-02-28T19:17:08.0000000Z", "id_token": JWT TOKEN ... } ] I then use the access_token in an authorization bearer header to request data from the

Meaning of “Always On” setting on Azure Web Site

蹲街弑〆低调 提交于 2019-11-27 02:17:51
问题 We are using free BizSpark subscription on Azure and hosting our application as Azure Web Site. We periodically struggle with unexpected site shutdowns what's very painful for our application since it has a lot of background process running. "Always on" setting can be a remedy for this problem, but unfortunately it's unavailable for us in the current subscription. As you may know IIS has two settings recycle based on: By default, each application is terminated every 1740 minutes (29 hours) -