azure-web-sites

Setting ASP.Net 5 Authentication AppId and AppSecret Configuration in Azure Websites

旧时模样 提交于 2019-12-23 01:54:36
问题 I'm getting an Error 500 due to missing AppId and AppSecret on my Azure websites deployment. How do I set this up on the server? Copying the project.json file seems to be insufficient. On the development machine, the AppId and AppSecret values were added to configuration through SecretManager. UPDATE: I have now hardcoded the AppId and AppSecret values in code as the way its done in previous versions and of course this still works. Eventually, I'd like to still be able to use SecretManager

Publish ASP.NET MVC 5 website to Windows Azure

蓝咒 提交于 2019-12-23 01:13:58
问题 I have recently changed by asp.net MVC app to use MVC 5. It also uses entity framework 6. I have published to Azure Website numerous times in the past, but never with two code first migration configurations. I think this is my problem but I don't know how to fix it. I have two DbContext classes. One for my domain models and the other for the Identity models. On my local development machine this has caused me no issues. I also have a seed method in the Identity configuration class to create a

Azure ASP.NET RC1 Deployment Failure

女生的网名这么多〃 提交于 2019-12-22 22:56:48
问题 I have an ASP.NET Core RC1 application that is deployed to Azure via GitHub deployment (i.e., I commit source to GitHub and the application is built/deployed by Azure). Everything worked fine up until sometime within the last 5 days. I successfully deployed my application 5 days ago (~2016-05-16). Today I made a change and tried to deploy again but the deploy failed. I attempted to deploy again (thinking the problem may be transient) and encountered the same problem. I then tried re-deploying

Azure ASP.NET RC1 Deployment Failure

ⅰ亾dé卋堺 提交于 2019-12-22 22:56:30
问题 I have an ASP.NET Core RC1 application that is deployed to Azure via GitHub deployment (i.e., I commit source to GitHub and the application is built/deployed by Azure). Everything worked fine up until sometime within the last 5 days. I successfully deployed my application 5 days ago (~2016-05-16). Today I made a change and tried to deploy again but the deploy failed. I attempted to deploy again (thinking the problem may be transient) and encountered the same problem. I then tried re-deploying

Getting the azure app service slot name on startup?

为君一笑 提交于 2019-12-22 18:46:23
问题 How can I get the name of the slot (production or staging) of my app service when the asp.net core process starts. The HTTP_HOST environment variable doesn't appear to be set on startup and I have no http request to inspect. 回答1: If we want to get the host name, you could use the environment variable WEBSITE_HOSTNAME to do that. var hostName = Environment.GetEnvironmentVariable("WEBSITE_HOSTNAME"); If you run it on the slot environment then you will get the value youwebsiteName-slotName

Azure SQL Database sometimes unreachable from Azure Websites

雨燕双飞 提交于 2019-12-22 17:11:13
问题 I have a asp.net application deployed to Azure websites connecting to Azure SQL Database. This has been working fine for the last year, but last weekend I have started getting errors connecting to the database giving the following stacktrace. [Win32Exception (0x80004005): Access is denied] [SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name

Costs of B2C and Refresh tokens

淺唱寂寞╮ 提交于 2019-12-22 12:21:14
问题 I'm not sure I'm understanding this properly, but here goes: Since MSA and Google tokens expire every hour, the only way for my app to reflect changes in the user's permissions on the MSA and Google site would be to refresh the EasyAuth B2C token on roughly the same interval, right? If they revoke access to my app, then they probably don't want unexpired tokens rolling around for days. And each time I need to refresh that token, another refresh call is made to B2C and then on to the identity

Naked domain support for Azure Websites

故事扮演 提交于 2019-12-22 05:23:09
问题 From the looks of it the new Azure Websites Feature still does not support hosting them under a naked domain such as example.com instead of www.example.com. Am I missing something? 回答1: Azure Websites have now released support for naked domains. Websites that are run on Shared or Reserved instances does support naked domains through an A record. Domain management is available through the Azure management portal. Update 2012-10-21: I previously stated that free instances could rely on CNAME to

Using PIP in a Azure WebApp

自作多情 提交于 2019-12-22 04:48:17
问题 I'm pretty new to Azure and I'm trying to get a Django WebApp up and running. I uploaded the files using FTP, But Azure doesn't run my requirements.txt . So I searched for a bit and found out that you can install the requirements.txt with pip. Back in Azure, PIP doesn't seem to work. Neither in the Console, The KUDU CMD or the KUDU powershell. Python does work. When I try to install PIP via Python, it first says that a older version is already installed. When Python tries to upgrade PIP, it

Hosting Neo4J Browser Separately From Server

点点圈 提交于 2019-12-22 04:39:45
问题 I want to have three different Neo4J instances running (each with a different database). Then I need three different Neo4J browser visualizers (think project1.domainname.com / project2.domainname.com / project3.domainname.com) with each one mapping to a specific database instance I've managed to get the three different database instances running on a single Azure VM - so far so good. But I'm not sure how to create and map those browsers. I'd like to run them each as Azure websites as that