azure-web-sites

TokenValidationParameters no longer working after upgrade to 5.0.0

徘徊边缘 提交于 2019-11-28 20:45:57
问题 I have the following code which was working when I was using System.IdentityModel.Tokens.Jwt, Version=4.0.20622.1351 private static void ConfigureAzureAD(IAppBuilder appBuilder) { appBuilder.UseWindowsAzureActiveDirectoryBearerAuthentication( new WindowsAzureActiveDirectoryBearerAuthenticationOptions { Tenant = ConfigurationManager.AppSettings["ida:Tenant"], TokenValidationParameters = new System.IdentityModel.Tokens.TokenValidationParameters { ValidAudience = ConfigurationManager.AppSettings

Azure Website slow to serve static JS/CSS but not binary

混江龙づ霸主 提交于 2019-11-28 19:09:53
I have an Azure Website/Web App that is incredibly slow to serve static JS and CSS files but seems perfectly fine serving binary. To test the problem I uploaded two 30MB files, one big.js and the other big.rar . The JS file downloads at around 100KB/s if I'm lucky. The RAR file downloads at around 4,000KB/s. The results are extremely consistent. I've checked in Fiddler and gzip compression is occurring in both cases. As expected, the JS file is being sent with the MIME type application/x-javascript whereas the RAR file is being served as application/octet-stream . I am struggling to understand

How do I change the name of an Azure Resource Group?

守給你的承諾、 提交于 2019-11-28 18:07:57
问题 After the new model was implemented, all of my websites now belong to individual Resource Groups called "Default-Web-East" and all of my SQL databases belong to individual Resource Groups called "Default-SQL-East". This is confusing to say the least. I would like to rename the groups to have some semantic meaning. I would also like to group the associated SQL database and Web Site in the same Resource Group. However, I do not see anyway to do either. Is this possible? 1) Rename the Resource

Hosting Flask(Python) app throws CGI error

淺唱寂寞╮ 提交于 2019-11-28 13:12:52
I have followed all the steps as per the azure website. I can see the python 3.6 version running on Azure. I have installed the python 3.6 extension and added a proper web.config file. When I try to open my URL I am getting the below error http://myuniqueappname114.azurewebsites.net/ Any idea how to fix this error pls Generally, the issue was caused by your web.config file configured incorrectly to not start up your flask app from IIS. Here is my case for deploying flask Hello World app on Azure Website, which you can refer to to check your deployment whether be correct. I installed a Python

Asp.net on Azure cannot login facebook? Location: /Account/ExternalLoginCallback?error=access_denied

笑着哭i 提交于 2019-11-28 12:50:51
问题 I followed the link https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-how-to-configure-facebook-authentication to set up Facebook login. In the https://developers.facebook.com/apps, the "Valid OAuth redirect URIs" has the following URIs https://myapp.azurewebsites.net/signin-facebook https://myapp.azurewebsites.net/.auth/login/facebook/callback However, the site cannot login - the login page just stays. Type an Url https://myapp.azurewebsites.net/event will always

“No OpenID endpoint found” on Azure Website

て烟熏妆下的殇ゞ 提交于 2019-11-28 12:21:04
I have a strange issue with a MVC 3 app running as an Azure Website. I have had issues with Azure in the past, but the new Website concept works almost perfectly, except for this: DotNetOpenAuth.Messaging.ProtocolException: No OpenID endpoint found. This only happens with Google, only on Azure. Running locally it works fine, running on AppHarbor it works fine, but on Azure every attempt to use Google for OpenID login will result in a server error due to that exception (tracked using Airbrake). See for yourself, try logging in with Google on my website and if you immediately get a server error

Azure Websites, Can one deploy .NET 4.5.2 websites

微笑、不失礼 提交于 2019-11-28 12:00:44
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? (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 this change. 来源: https://stackoverflow.com/questions/23554496/azure-websites-can-one-deploy-net-4-5-2

Where to put SQLite database file in Azure App Service?

穿精又带淫゛_ 提交于 2019-11-28 12:00:23
Q1 : Where do you think is the right place to put a SQLite database file ( database.sqlite ) in Azure Web App file system? For example: D:\home\data\database.sqlite D:\home\site\database.sqlite D:\home\site\wwwroot\database.sqlite other? Q2 : What else should be taken into consideration in order to make sure that the database file won't be accessible to public users as well as not being accidentally overwritten during deployments or when the app is scaled up/down? (The Web App is configured for deployments from a Local Git Repository) Q3 : Where to learn more about the file system used in

How can increase Azure App Service 230 sec request time out

安稳与你 提交于 2019-11-28 11:33:36
I have hosted an Asp.NET MVC application on Azure App Service. I am getting a timeout exception which elapsed more than 230 seconds. How can increase it on Azure App Service? As far as I know, 230 seconds is the maximum amount of time that a request can take without sending any data back to the response. We couldn't increase it in azure web app. Here are two work around. One is you could move your application to a cloud service or created a VM where you have control over those settings. Another way, you could also use async pattern in MVC. For example: Firstly, you could send the request to

RequireHttpsAttribute with .NETCore RC2 causes HTTP302 redirect loop on Azure

亡梦爱人 提交于 2019-11-28 10:59:36
问题 I've been trying to get a .NETCore RC2 web app working on Azure with the RequireHttpsAttribute set but I'm having issues. To remove the possibility of this being a problem that I've introduced with my code, I cut things back to the bare minimum and recreated it using the "out of box" VS2015 .NETCore RC2 template. If I deploy the standard VS2015 .NETCore RC2 web app the site runs fine. If I then add [RequireHttps] to the controllers it works fine locally, but on Azure it causes an HTTP302