azure-web-sites

Azure websites with .NET 4.5.2

落花浮王杯 提交于 2020-01-02 16:19:28
问题 According to this semi-official answer here, Azure websites now supports .NET 4.5.2: https://stackoverflow.com/a/23554969/68231 However, when I visit the Kudu debug console, it doesn't show that .NET 4.5.2 is installed: And indeed, when I try to push out a website targeted to .NET 4.5.2, Kudu refuses to build and deploy the website in question, with errors like this: Areas\Integration\Controllers\TwitterController.cs(18,31): error CS0012: The type 'System.Object' is defined in an assembly

Azure websites with .NET 4.5.2

我的梦境 提交于 2020-01-02 16:19:10
问题 According to this semi-official answer here, Azure websites now supports .NET 4.5.2: https://stackoverflow.com/a/23554969/68231 However, when I visit the Kudu debug console, it doesn't show that .NET 4.5.2 is installed: And indeed, when I try to push out a website targeted to .NET 4.5.2, Kudu refuses to build and deploy the website in question, with errors like this: Areas\Integration\Controllers\TwitterController.cs(18,31): error CS0012: The type 'System.Object' is defined in an assembly

Azure does not override application settings

萝らか妹 提交于 2020-01-02 05:32:27
问题 In my Azure App Service I want to update application settings, but after publish from VS the keys doesn't override values from local Web.config In Azure it looks like: In the result my web.config on azure contains values from local settings <connectionStrings> <add name="MainConnectionString" connectionString="ConnectionStringToReplaceByAzure" providerName="System.Data.SqlClient" /> </connectionStrings> <appSettings> <add key="MS_SigningKey" value="Overridden by portal settings" /> <

Connect to Azure SQL server via AAD Authentication using EF Core

我怕爱的太早我们不能终老 提交于 2020-01-02 05:13:51
问题 Azure SQL servers support AAD authentication, and I want my applications to connect to SQL server using AAD authentication and not SQL server admin credentials. I am using EF core to connect to SQL, how do I enable EF Core to use AAD authentication. My application is deployed in Azure App Service and it has MSI extension enabled, so I am looking forward to using Microsoft.Azure.Services.AppAuthentication for getting the token from AAD. 回答1: Connect to Azure SQL server via AAD Authentication

Can the new Azure File Service be used from Azure WebSites?

我只是一个虾纸丫 提交于 2020-01-02 04:15:28
问题 The title pretty much says it all... Microsoft just launched the new File Services on Azure. (http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx) Can I use it from within a Azure WebSite? Or is it limited to use from VMs and CloudServices due to "net use" restrictions? Thanks 回答1: Yes - use the REST API - the Azure website MUST be in the same region as the storage account. Once your share is created, it can be accessed via the SMB or

“Dependency could not be resolved” deploying ASP.NET 5 website to Azure

一世执手 提交于 2020-01-02 03:59:05
问题 I have a ASP.NET 5 website with 3 subprojects. The subprojects have a reference to EF 6.1. Locally everything works fine, but when I try to deploy the website to azure using the assistant, I get the error message Dependency EntityFramework >= 6.1.3 could not be resolved in XXX\wrap\PDWeb.Application\project.json 22 The generated project.json of the PDWeb.Application subproject is { "version": "1.0.0-*", "frameworks": { "net452": { "wrappedProject": "../../Application/PDWeb.Application/PDWeb

Azure AD Application not appearing in existing AD App list for an Azure web application

混江龙づ霸主 提交于 2020-01-02 03:39:08
问题 I was just going through some walkthrough where I created an Azure AD App to use it as an authorization/authentication in my Azure web application. Now when I go to select existing AD app for my Azure website (App Services) it doesn't appear in my Azure AD Applications list. The path to add existing AD app is "App Services > MyAzureApp > Authentication/Authorization > Auzre Active Directory > Express > Select existing AD App" I have used following settings for my Azure AD app: Sign-on URL:

How to gain access tokens using Azure Easy Auth?

自作多情 提交于 2020-01-01 19:23:32
问题 I have a Single Page Appplication (SPA) built using React and a Web API, both of which are hosted on Azure's App Service. Authentication is provided by Azure AD. I have been using the Active Directory Authentication Library (ADAL) for JavaScript. While all the examples seem to be about Angular, I have managed to get the pure JavaScript version of the library working with the React application. I have used the OAuth2 implicit grant flow to utimately provide authenticated access to the Web API

Configure Azure SQL Database Firewall for just my Web App

99封情书 提交于 2020-01-01 18:57:33
问题 We use Azure Web Apps with Azure SQL and would like to make this setup more secure by configuring the database firewall to only allow connection from the specific web apps rather than any service in Azure . How can I limit connections to just my Azure services? 回答1: Assuming that you have an ip address (hosting plan needs to be shared, basic or standard)**: a) Navigate to SQL Databases >> Servers Tab >> Select the server hosting your database >> Configure Tab b) Alternatively select your

'Unexpected token <' on every new build of angular production PWA until site refresh

白昼怎懂夜的黑 提交于 2020-01-01 04:18:32
问题 I know there are some similar questions like so unexpected token after angular 2 production build but it doesnt actually answer my question. Basically I have an angular app and its a PWA, now everytime I do a new production build the first time I visit the site I get an error like so and then as soon as I refresh the page, the site works as normal. This happens on any browser/device Now my suspicion is that every time the app is updated, the main bundled js file changes, and the PWA has