azure-web-sites

azurew website continuous deployment - Web Deploy cannot modify the file 'XXX' on the destination because it is locked by an external process

好久不见. 提交于 2019-11-29 09:18:45
I'm running into the following error when trying to deploy an azure website via TFS continuous deployment. I'm using the TfvcContinousDeploymentTemplate.12.xaml build definition template. Exception Message: Web Deploy cannot modify the file 'Antlr3.Runtime.dll' on the destination because it is locked by an external process. In order to allow the publish operation to succeed, you may need to either restart your application to release the lock, or use the AppOffline rule handler for .Net applications on your next publish attempt. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR

Change Azure Website Subscription

我的梦境 提交于 2019-11-29 09:02:52
I had a free trial with windows azure, I was out of the country and it ran out. I have now upgraded to a pay-as-you-go account. All good. However, my previous websites still run off my old subscription, is there any way to reactivate these websites using my new pay-as-you-go subscription? If you upgraded the existing free account versus opened a new pay-as-you-go account, this should have been a seamless transition. You can contact support - use the Billing Questions option and then select Transfer Subscription, and they should be able to help you. Alternatively, of course, you could redeploy

Azure website scaling

痞子三分冷 提交于 2019-11-29 08:53:20
Can I scale azure web apps/api apps using Azure Management libraries? I basically want to implement scaling up and down of web apps to handle throttling. Hence, I need to scale the web app and api apps via C# code. Any pointers to any apprpriate library/ ReST API? With teh help of the answer mentioned below, I understand how to update the APP Service plan to scale out, however, I am not able to find webHostingPlanName for my APP Service. I tried with the below code, and hosting plan always comes out to be null. var regionName = "myregion"; var credentials = GetCredentials(); var

How to Connect Azure Web App to Azure SQL Database

南楼画角 提交于 2019-11-29 07:28:35
问题 Azure has changed a fair bit from a year ago when I played with it. I have a web app, and a Sql DB in my Azure resource group. I want my web app to read from my DB. I made a firewall rule so that my app can read from the DB at my workstation (running locally), and that is fine. But I want my app to read from the DB when it is deployed. Do I just make a sql firewall rule to allow the app's IP address when hosted through to the DB? Or is there a way I can tell azure that the web app, and the DB

Deploy website to azure with bower dependencies

人走茶凉 提交于 2019-11-29 06:50:35
I have an ASPNET mvc project using both Nuget and Bower for dependencies. Now I need to either trigger bower to install components upon deployment or as fallback include the packages by allowing them in my .gitignore. Of course I would like to not include those in the repo and just have them installed while deploying, just like with nuget packages. I tried to follow this guide http://gregtrowbridge.com/deploying-a-bower-dependent-node-app-on-windows-azure/ but still nothing seems to happen. So any help is welcome :) Best regards All of Azure Websites workers have bower pre-installed and should

Authentication problems after publishing MVC 4 app to azure

吃可爱长大的小学妹 提交于 2019-11-29 06:46:16
I have a basic ASP.NET MVC 4 site which I am hosting on Azure websites. The authentication is forms authentication and has not been customised from the default template. Every time I publish, when I revisit my site, it just hangs with a very long timeout (couple of minutes perhaps) before finally showing me an error message. I can recover by deleting the cookies for the site in my browser and reloading. Initially the problem was just trying to access pages that required authentication, but then I added this to my shared _Layout.cshtml : @if (User.IsInRole("Admin")) { <li>@Html.ActionLink(

Setting EF Connection String in Azure Web App

。_饼干妹妹 提交于 2019-11-29 06:15:51
问题 We have an ASP .NET (MVC) app and are using Entity Framework 6 to connect to our databases. The DbContext is constructed in a standard way and it loads the connection string on our behalf. The generated code looks like this: public partial class MyContext : DbContext { public MyContext(string connectionName) : base("name=" + connectionName) { } } We set the connection string in a local web.config also in a standard way: <configuration> <connectionStrings> <add name="DefaultConnection"

ABCpdf .NET with Azure App Service

百般思念 提交于 2019-11-29 05:15:34
I am trying to use ABCpdf .NET with Azure App Service and getting the following error when generating a PDF. Unable to render HTML. Failed to configure IE 9 or above for the MSHtml engine: Access denied while writing to the registry. For IIS applications, please enable "Load User Profile" or consult MSHtmlBootstrap in the documentation. Usually in a VM I would set Load User Profile to True and it works but in Azure App Service, I do not have access to IIS Application Pool configuration. According to the developer of ABCpdf, it should work with Azure websites. http://www.websupergoo.com/support

Publish simple Asp.Net Core App (.Net Framework) with WebJob

狂风中的少年 提交于 2019-11-29 04:50:17
I would like to create a simple ASP.NET Core Web Application (.NET Framework) and publish a WebJob alongside it to Azure. I'm using Visual Studio 2017, but the result seems to be the same in VS2015. To start, I create the corresponding project in VS2017: I select the basic web application template: At this point I get a bit lost. In the older Asp.Net MVC 5 approach, I used to be able to click on the Asp.Net project and find "Add => New Azure Webjobs Project". The WebJob would then always be linked in publishing and just "work". With the new Asp.Net Core approach, I can't seem to find an

VS to Azure Publish failure: Socket Error 10054

无人久伴 提交于 2019-11-29 03:58:47
I've seen a few posts around on this, none have solved my issue. I'm trying to complete a web deploy to an Azure site but whilst updating the files I get warnings: MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets(4270,5) Warning : Retrying the sync because a socket error (10054) occurred Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 1 of 10. In the web publishing wizard the connection can be successfully validated. I saw mentioned somewhere that I should enable untrusted certificates, however I can't see this option in the web deploy