azure-web-app-service

How to clean up wwwroot folder on the target Azure Websites Windows Server before each deployment in VSTS

强颜欢笑 提交于 2021-02-05 20:20:18
问题 After about a dozen deployments, the wwwroot directory is filled with a lot of files due to active development and deployments. We are using VSTS's Azure App Service Deploy task to deploy to Azure Websites Windows Server for a ASP.NET Web API project, is there a way to clean up the wwwroot directory before deploying to the Avsts pre-deployment clean up? 回答1: When using the Azure App Service Deploy task, and you are using the Publish using Web Deploy option, there is an additional option to

How to make Azure AD access_token compliant for its signature validation outside Microsoft Graph APIs?

别来无恙 提交于 2021-02-05 10:25:07
问题 I have created a Azure AD Mobile and desktop applications. Now I am getting my access_token using following API, POST https://login.microsoftonline.com/{Directory (tenant) ID }/oauth2/token password:pass client_id:id resource:https://graph.microsoft.com grant_type:password client_secret:secret username:userName scope: openid The response looks like, "access_token": "acessToken", "refresh_token": "refereshToken", "id_token": "id_token". Now I am passing the access_token to a third party

CyberSource keys folder issue in Azure, Asp.Net Mvc Web Api

回眸只為那壹抹淺笑 提交于 2021-02-05 09:45:54
问题 I am implementing registration process that implements cybersource as payment gateway with ASP MVC web API. In web.config we have to specify the keys and logs directory. <add key="cybs.keysDirectory" value= "E:\CyberSource\Keys/" /> <add key="cybs.logDirectory" value= "E:\CyberSource\Logs/" /> This works fine when we deploy the API on IIS and work locally. But when we deploy the API to Azure and for the registration part (Subscribe) that use the CyberSource gateway we get the 502 bad request

Unable to deploy React JS application on Azure App service

淺唱寂寞╮ 提交于 2021-02-05 09:27:58
问题 I was going through the some of the links to deploy React Js application on the azure app service. But i am facing some problem while deploying the application. I have added all the necessary things like web.config file to public folder and also added build directory to the workspace. Deploying web app on azure app service Deploy Node.js to Azure App Service using Visual Studio Code followed all the steps but getting below error when i try to deploy on azure app service. Before deploying i do

Timeout period elasped prior to obtaining a connection from the pool - Entity Framework

老子叫甜甜 提交于 2021-02-05 08:39:31
问题 I have an ASP.NET MVC application that is deployed on Azure app service. I'm debugging this application on my local and its using IIS express. No IIS installed on the Windows 10 system. My code is written like this: The user login is getting validated like this try { using(var context = new techEntities()) { wtuser u = (from c in context.wtUsers where c.email == email select c).FristOrDefault(); if(u == null) { return new userOT {error = "Invalid email or password"}; } ... } } catch(exception

does the azure App Service Authentication module suport azure aad b2c?

风格不统一 提交于 2021-02-05 06:40:47
问题 I have a UWP app that needs a backend. I want to use azure app service and need set an authentication for the background. The App Service Authentication module can easily set and Authentication for the app. I wish to use AAD B2C, but the App Service authentication module say that it does not support aad 2.0/msal. So, does the App Service Authentication module can support AAD B2C? And, how can I verify the AAD B2C token signature on the webservice? Microsoft doc said can use some library to

does the azure App Service Authentication module suport azure aad b2c?

巧了我就是萌 提交于 2021-02-05 06:40:27
问题 I have a UWP app that needs a backend. I want to use azure app service and need set an authentication for the background. The App Service Authentication module can easily set and Authentication for the app. I wish to use AAD B2C, but the App Service authentication module say that it does not support aad 2.0/msal. So, does the App Service Authentication module can support AAD B2C? And, how can I verify the AAD B2C token signature on the webservice? Microsoft doc said can use some library to

Is there a way to improve the performance of MSAL-browser js login?

元气小坏坏 提交于 2021-02-04 19:13:05
问题 I have a single page JavaScript (TypeScript) application hosted on Azure as an app service, and I am using Implicit Flow MSAL authentication with Azure AAD with the @msal-browser npm package to authenticate my users. I have configured my MSAL instance to use login redirect. The login works, but the response is very slow: it takes >7 seconds for my app to receive a response. I have included my MSAL config as a code snipit below. The handleRedirectPromise promise is triggered several times with

Deploy ASP.NET Core 5 app to Azure App Service?

雨燕双飞 提交于 2021-02-04 13:08:22
问题 I have an existing Azure App Service running on ASP.NET Core 3.x. I have upgraded the application to today's release of ASP.NET Core 5. This works fine on my local IIS Express server. When I publish to the application to the App Service using Visual Studio, however, I receive the following error: HTTP Error 500.31 - ANCM Failed to Find Native Dependencies Common solutions to this issue: The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found. Specific error

Deploy ASP.NET Core 5 app to Azure App Service?

此生再无相见时 提交于 2021-02-04 13:07:55
问题 I have an existing Azure App Service running on ASP.NET Core 3.x. I have upgraded the application to today's release of ASP.NET Core 5. This works fine on my local IIS Express server. When I publish to the application to the App Service using Visual Studio, however, I receive the following error: HTTP Error 500.31 - ANCM Failed to Find Native Dependencies Common solutions to this issue: The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found. Specific error