azure-web-sites

Setup Continuous Deployment with DropBox on Windows Azure Website

☆樱花仙子☆ 提交于 2019-12-11 07:20:07
问题 Where I work, our marketing team is looking for a "quick and easy" method up periodically updating some files on a website of ours. I opened my mouth and said "We can use Azure Websites with DropBox!". It all works fine, except that with DropBox, files only deploy if I log into the Azure Portal and click Sync. Needless to say, this is a deal breaker, because the users want to save a file and have everything appear magically. Is there a way to setup continuous deployments via DropBox on Azure?

Azure Log Analytics and Azure App Service Access Logs, can they be connected?

自古美人都是妖i 提交于 2019-12-11 07:05:13
问题 I think the answer is yes, but I cannot find any definitive answer. I did find this, but... How to display azure app service's web server log on Azure log Analytics? Can this be achieved and if so how? Do I have to create an Event Hub ? Thanks 回答1: Posted the answer to your linked SO post. This is not currently possible unless you manually setup Azure Data Explorer. Trying to get his much needed feature on their radar - it's immensely valuable for diagnostic troubleshooting, traffic analysis,

Make MSDeploy.exe deploy a msbuild generated .zip package to Azure

a 夏天 提交于 2019-12-11 07:04:39
问题 We have ASP.NET MVC web app that successfully deploys to Azure via "Publish..." in VS (2017). Now how to publish a web package from our Powershell script (run locally or on TFS)? We do: MSBuild "webproject.csproj" /t:Package and webproject.cmd , webproject.zip and some other files generated. In the .cmd file it calls msdeploy.exe . Then with the publish file from Azure, we do: .\webproject.cmd /T '/M:https://example.scm.azurewebsites.net:443/msdeploy.axd' '/U:USERNAME' '/P:PASSWORD' /a:Basic

When I set customErrors mode=“Off” in azure I do not get the error information

一曲冷凌霜 提交于 2019-12-11 06:59:51
问题 I get this message: "The page cannot be displayed because an internal server error has occurred." my web.config <customErrors mode="Off"/> my Web.Debug.config/Web.Release.config <customErrors mode="Off" xdt:Transform="Replace"/> <compilation xdt:Transform="RemoveAttributes(debug)" /> 回答1: this solve the problem <system.webServer> <httpErrors errorMode="Detailed" /> <asp scriptErrorSentToBrowser="true"/> </system.webServer> 来源: https://stackoverflow.com/questions/43521260/when-i-set

ResetPasswordAsync returns 'Invalid Token' when token is generated inside a WebJob

烂漫一生 提交于 2019-12-11 06:47:23
问题 I have a scheduled WebJob that runs on daily basis and checks the password expiry date for all users in my database. If the password expiry date is today, it will generate a password reset token and send it to the user via email. Then user clicks the url in the email and is brought to a website, where they input the new password. I managed to generate a token in my WebJob and send it over via email. However, when resetting the password through my Asp.NET Website I get Invalid Token . I cannot

HTTP 500.79 Error / System.UriFormatException when deploying ASP.NET App to Azure Web App

心已入冬 提交于 2019-12-11 06:38:57
问题 I am attempting to set up a Staging Environment for an ASP.NET MVC Application, and want to do that as an Azure Web App, but I am really stuck on an HTTP 500 at this point. The error I get is: 500.79: The request failed because of an unhandled exception in the Easy Auth module. Using diagnostics logs I was able to get a Stack Trace: 2019-01-14T13:07:22 PID[14448] Critical System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System

Unable to get bearer token from AAD to consume Web API

*爱你&永不变心* 提交于 2019-12-11 06:38:32
问题 I am attempting to secure my Web API applications such that only specific users and applications can consume the services. I have followed many different instructions that have suggested that I have the following code to authenticate (I have simplified this to be easily reproducible in a Console application): class Program { private const string ServicesClientId = "11111111-1111-1111-1111-111111111111"; private const string ClientId = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"; private const

Deployed asp.net core mvc app not browsable in azure

徘徊边缘 提交于 2019-12-11 06:38:21
问题 I have an asp.net core MVC application using Identity Server 4 which runs fine locally. However, when I deploy it to an Azure app service (the deploy is performed automatically based on check-in so no manual steps) the app fails to work as expected I can: Access static files out of the www root directory Access .well-known/openid-configuration and see the JSON returned I cannot: Browse to the homepage and get the Identity server welcome page View any MVC “pages” (e..g /account/login) My

Native DLL dependencies with ASP.NET MVC Projects

╄→гoц情女王★ 提交于 2019-12-11 06:33:36
问题 EDIT: I found a way to get it to work locally, but on Azure I still get System.IO.FileNotFoundException on that assembly. My question might seem like a duplicate to this question here. But it is slightly different, I have already tried that solution and it did not work. Here are the details. I have an ASP.NET MVC App that has a Reference added to a third party CLR DLL. That third-party DLL requires a native DLL which it invokes. Now if I had control over where the Shadow Copying occurs and

Using Windows Azure Service Bus be used from an Azure Web Site?

不羁岁月 提交于 2019-12-11 06:32:04
问题 This guide to using Service Bus says the first step is to create a Service Namespace. I don't see how to do this in the portal for Azure Web Sites. The UI doesn't match the instructions given. I'm wondering if these instructions were written for Web Roles and don't work for Web Sites. Is there another way to do this from a Web Site? 回答1: When viewing the new Windows Azure portal, move your mouse over the word "Preview" in the topmost navigation bar. A dialog should appear. When it does, click