azure-web-sites

Get client IP in Azure through MVC 5 controller

为君一笑 提交于 2019-12-11 00:13:42
问题 I can't find a question or post specific to Azure for this, and I'm not sure what's different in the environment in Azure versus my testing environments that would cause this. I've tried a few methods to get this to work but I'm not coming right. Please note this isn't Webapi, so using the HttpRequestMessage, as far as I know, is not going to work either. Here's what I've tried so far: Method 1: string ipAddress = ""; IPHostEntry Host = default(IPHostEntry); Host = Dns.GetHostEntry(System

Deployment of a web application using FSharp.Data to Azure Websites

大城市里の小女人 提交于 2019-12-10 23:42:43
问题 This is a similar question to How do I deploy a web application using F# to Azure Web Site. My C#/F# MVC project uses the FSharp.Data NuGet package, and the deployment process fails with the message Could not locate the assembly "FSharp.Data, Version=1.1.4.0, Culture=neutral, PublicKeyToken=null". The only effective workaround I can see is to replace all of the NuGet references (FSharp.Data, FSharp.Data.DesignTime, FSharp.Data.Experimental, FSharp.Data.Experimental.DesignTime) with explicit

Is it possible to move custom domain from one web app to another?

落花浮王杯 提交于 2019-12-10 23:33:23
问题 I have a custom domain www.abc.com configured for web app webapp-a, and I'd like to transfer it to webapp-b without downtime. If I try to add the domain to webapp-b, I am getting The host name www.abc.com is already assigned to another Azure website: webapp-a It there a way to let webapp-a continues to serve the requests, until the DNS cache expires? Edit: The domain has IP based SSL binding, and the DNS is caching the virtual IP. 回答1: I faced the same issue, and was able to solve it in a

Port being undefined in the Azure Node.js application running on IISNode

僤鯓⒐⒋嵵緔 提交于 2019-12-10 22:29:36
问题 I have an Azure App Service running Node.js application using IISNode. The problem is that process.env.PORT is undefined. I have read that IISNode uses a thing called named pipes and that the port information might not be easily readable (?), but in my case I only get undefined. The project I try to deploy can be found from GitHub. I do have a Web.config file defined and it looks like this: <handlers> <!-- indicates that the app.js file is a node.js application to be handled by the iisnode

What is the SLA for a single instance VM on Basic / Standard tier of Azure Website

 ̄綄美尐妖づ 提交于 2019-12-10 22:03:46
问题 This has been asked before differently last year but it has not received an authoritative answer. The updated SLA says - "We guarantee that all websites running in a customer subscription will respond to client requests 99.95% of the time. No SLA is provided for Websites under either the Free or Shared tiers." Does this unambiguously mean that SLA for a single instance VM on Basic / Standard tier of Azure Website is 99.95%? If not, what is the assurance? 回答1: Yes, the SLA for any Azure

Azure New Portal web apps missing [closed]

心已入冬 提交于 2019-12-10 21:53:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I have a number of web apps that I can see and on the old Azure management website, but these don't appear in the new portal, in Cloud Explorer in Visual Studio and the Azure App Service Support website. Any help in getting this sorted out would be much appreciated. 回答1: just to validate, are you in the same

Choosing between dnx451 and dnxcore 50 for Azure Web App in terms of functionality, performance, etc

我是研究僧i 提交于 2019-12-10 21:53:49
问题 I am creating a new project that will run in Azure Web App on the new ASP.NET 5. We are not planning to run it on linux or anything like that, at least now. So the question is, should I try to keep both frameworks if possible just in case or I should prefer one of them. There are e.g. much less dependencies that I can use with dnxcore50 which is not so nice. So the main question is: are there any benefits of using dnxcore50 if running in Azure Web App, like: performance, stability, etc. over

Azure App Service ApiApp

夙愿已清 提交于 2019-12-10 21:48:08
问题 I am trying to create an API App in Azure App Service with PowerShell. The cmdlet I am calling always create a Web App by default. If it is possible, I would like to know how I can specify the type/kind to be Api App instead of Web App ? New-AzureRmWebApp -Name $name -Location $location -AppServicePlan $plan -ResourceGroupName $resourceGroup From my reading there is not much different between both except the icon, is it worth it to set the type to "Api App" if it's what my app is all about? I

ASP.NET Core 2.0 site POST request resulting in 404 on Azure

风流意气都作罢 提交于 2019-12-10 20:56:34
问题 I've just upgraded an ASP.NET Core 1.1 web application to 2.0 and tested without issue locally. However, when the site is deployed to Azure a POST request that worked locally results in a 404 (I guess this could be the same for all POST requests, but I'm unable to log-in due to the issue). Any ideas why this might fail to be working when deployed to Azure but working perfectly when run through IIS Express locally? I deleted the original deployment slot on Azure and re-created as initially

Just updated ImageResizer via NuGet, can't run app because it can't find BundleAttribute

一曲冷凌霜 提交于 2019-12-10 20:09:50
问题 I was just trying to update Azure Storage, but doing that meant I needed to update the ImageResizer AzureReader and update the app to use .Net 4.5.2 (the Azure site is set for .Net 4.6). Now I've got everything at the newest version; I've cleaned and rebuilt the app. It works fine locally, but when I publish it to Azure, I get the following error. I can not get the diagnostics page to load. Server Error in '/' Application. Could not load type 'ImageResizer.Util.BundleAttribute' from assembly