azure-web-sites

Average Memory working set and Memory working set in Azure

旧时模样 提交于 2019-12-10 15:22:40
问题 I have an app service in Azure. It shows two metrics called Average Memory Working Set and Memory Working Set . Now, Memory Working Set is defined as the set of memory pages touched recently by the threads in the process. The graph for these two as shown in the portal are as below: Now, there are three questions that I have: How do I find out what is the dedicated maximum memory my service has? What will happen once the limit is reached? Memory Working Set is the number of memory pages

Azure Mobile Service and Azure Web App authentication

孤人 提交于 2019-12-10 14:12:26
问题 I get two different SID for the same user when the user is logging in through a Azure Web App (ASP.NET MVC) and Xamarin.iOS app Setup Azure WebApp ASP.NET 5 with API Controllers Xamarin iOS App with Microsoft.WindowsAzure.Mobile.Client SDK Azure B2C AAD User on Web I get the ObjectIdentifier value that is the AAD SID: var userClaim = ClaimsPrincipal.Current.FindFirst("http://schemas.microsoft.com/identity/claims/objectidentifier").Value; User on Mobile I get only a Nameidentifier value and no

Get Azure WebApp/WebSite name at runtime

南楼画角 提交于 2019-12-10 13:11:58
问题 I have a WebApp with a name like myapp.azurewebsites.net and also have a failover with the name myapp-failover.azurewebsites.net. It uses a DNS and Traffic Manager so the site is actually www.mysite.com. I wan't to check if I am running on the main site or failover and the easiest way would be to check the myapp.azurewebsites.net name if possible. Is it possible to get this? 回答1: There are a number of Environment Variables that will help you identify which machine instance you are running on

Network path not found exception encountered randomly

南笙酒味 提交于 2019-12-10 12:52:06
问题 Azure .NET MVC application is encountering an exception i.e. "The network path was not found" Problem with the other queries that I searched before asking this question was that its not happening all the time, it's working as expected but this issue is occurring randomly like once every 15-25 days. It has been roughly 50 days since deployment of application on production and encountered this twice, while did not encounter this on Azure UAT environment(where low numbers of users were present).

“Could not find a part of the path” Error For File Read Operation in Azure WebApp

老子叫甜甜 提交于 2019-12-10 12:15:40
问题 I have MVC application which is having browse button I'm selecting file any location and reading file content using path and then process the content. Works fine in local but when published on azure as web app obvious it was not able to get the file system path but how to handle this? Could not find file 'D:\Windows\system32\mydata.json'. Index.cshtml <label>File Path</label> <table> <tr> <td>@Html.TextBoxFor(m => m.filePath, new { type = "file", @class = "input-file" }) )</td> <td>  </td> <

can't connect to DB - EADDRNOTAVAIL

℡╲_俬逩灬. 提交于 2019-12-10 10:54:13
问题 I have a simple node.js app that can't connect to a SQL Db. Web server is Azure Web App, running node.js and using Tedious for SQL. DB is Azure SQL Database. This is the detailed error: { message: 'Failed to connect to xxx.database.windows.net:1433 - undefined', code: 'ESOCKET' } Thu Jan 14 2016 08:05:05 GMT+0000 (Coordinated Universal Time): Unaught exception: ConnectionError: Connection lost - connect EADDRNOTAVAIL at Connection. (D:\home\site\api\node_modules\tedious\lib\connection.js:797

Access to the path is denied (An exception of type 'System.UnauthorizedAccessException' occurred) after deploying to azure websites

Deadly 提交于 2019-12-10 10:43:32
问题 I am downloading content from blob and storing it in the local folder of the user browsing my application. Everything is working fine without any issues locally but after deploying to App Service Web Application, I am getting access denied issue. I have tried the following options, Option 1: string pathString = @"D:\Test"; System.IO.Directory.CreateDirectory(pathString); I get access denied issue when trying to create the directory after deploying to app service web app. Option 2: Environment

Access security to an Azure App Service API App

南笙酒味 提交于 2019-12-10 10:39:10
问题 We have a system that is based on 2 tiers, a Backend tier and a Frontend tier, right now both are Azure WebSites communicating trough WebAPI. I wan't to move the backend WebAPI to API App - question is - if it's possible to configure the security of an API App in such way, that it is only accessible from the configured Frontend ASP.NET MVC 6 Web application (hosted in Azure WebSites). We planned to use Active Directory as an authentication method between the frontend Web App and the backend

Confused on what is the correct procedure on storing passwords in Web.config for Azure deployment

橙三吉。 提交于 2019-12-10 03:39:44
问题 I've had a very frustrating experience on putting an MVC 5 app on Azure. I have been reading the following page: http://www.asp.net/identity/overview/features-api/best-practices-for-deploying-passwords-and-other-sensitive-data-to-aspnet-and-azure But what I haven't managed to put in my head is the following: Security Warning: Do not add your secrets .config file to your project or check it into source control. By default, Visual Studio sets the Build Action to Content, which means the file is

Deploying ASP.net Core 2.0 to Azure

一世执手 提交于 2019-12-10 01:25:28
问题 I have upgraded an ASP.net Core 1.1 app to ASP.net Core 2.0 with the following steps: Changed the Target Framework to 2.0 Upgraded all Nugget Packages Now my auto deployment from git runs and says it is successful but the app does not run. I get the following error: HTTP Error 502.5 - Process Failure I also added a separate web app deployment slot and tried deploying it there and still get the same result. I have also tried deploying it manually to the slow and no change. 回答1: The accepted