azure-web-sites

Correct deployment script for Azure Git backed continuous Deployment

南笙酒味 提交于 2019-12-12 03:04:00
问题 I have a ASP.Net 4.5 MVC application which uses Angular 1.5. The JS code is Typescript and a post build action builds the js code and deploys it to the folder where my application refers to. I have a Slot on my azure web app which is backed my gitlab repo. Committing to the repo, triggers the deployment, however the post deployment build frequently seems to have issues when a bower/npm or typings library is updated (which is resolved by manually clearing the folder via the kudu console). Does

Continuous delivery using Visual Studio Online and Git doesn't work. No action after new commit

自作多情 提交于 2019-12-12 02:46:23
问题 I want to publish to the internet my Node.js web application. Relating to this tutorial, I need to set up "continuous deployment" from git repository. I connected my Visual Studio Online account (where I keep my application) to Azure. Now, it looks like this: My project should have been built and deployed to Azure on my next check-in. So I commited some small change and pushed it to Visual Studio Online. I can see on VSOnline website that the change in git repo is commited to the master

Extend Azure Mobile Service: add MVC and new routes

岁酱吖の 提交于 2019-12-12 02:38:46
问题 I had my azure mobile service running for a bit, and now I want to add a website to it, so I can host both a website and backend service from one machine in the azure cloud. I have added MVC and all relevant scaffolding like controller, view, and registered a route. The problem I'm having is that the new route that I added "/Home/Index" somehow is getting rerouted to startup azure web service page These are the parts in the code that I've added. Controller: [RoutePrefix("Home")] public class

Redirect multiple domains to same azure website with custom parameters

放肆的年华 提交于 2019-12-12 02:23:44
问题 I have a scenario where I have a web site that will be used by multiple customers. But I do not want to publish the web site to each customer domain's. Instead I will publish the web site to an azure web site for example mywebsite.azurewebsites.net and I want all the customers domains to redirect to this mywebsite.azurewebsites.net but I need to know which customer is this so I can display the correct content. for example I am thinking about appending or sending a hidden custom parameter in

ADAL.Net TokenCache throwing server timeout error with 500 error code

主宰稳场 提交于 2019-12-12 02:18:14
问题 I am trying to integrate WS-Federation in my Asp.Net MVC app using OWIN. I followed the github samples and it is working as expected. Now I want to take this one step further and call an external WebApi hosted on different Azure web app from within my website. I couldn't find any WS-Fed samples for this scenario. WebApi needs an access token to provide access to protected resources. In one of my MVC controllers I tried using ADAL.Net code to acquire the access token but i get timeout error.

How do I deploy a PHP site to Azure websites from a subdirectory of a Git repository

梦想的初衷 提交于 2019-12-12 01:49:10
问题 I have a Git repository which contains an ASP.net application and a PHP application, each in its own subdirectory under the root of the Git repository. I would like to create two websites in Azure websites and deploy each of these applications to one of those websites. I can deploy the ASP.net application with no problem by setting the project variable in the settings panel on the website properties to the path to the CS project file. However I cannot successfully get the PHP site to deploy.

Is it possible to host both web/SignalR and WCF w/ netTcpBinding in a single web-role?

老子叫甜甜 提交于 2019-12-12 01:38:53
问题 We have binary WCF service ( netTcpBinding ) in a web-role and an asp.net website (to take advantage of SignalR over azure's backplane). Due to the extremely low budget, we want to host them both in a web-role (as website doesn't allow non-standard-HTTP(S) ports). So is it feasible to host them both in a web-role, to keep the SignalR/web-interface capabilities but also use the binary WCF/ netTcpBinding pattern? Edit: Maybe I should've asked in the first place "How to host both asp.net (for

Create a Self-Signed Certificate in .NET, using an Azure Web Application (ASP.NET MVC 5)

霸气de小男生 提交于 2019-12-12 01:28:51
问题 I have this Helper Method: CngKeyCreationParameters keyParams = new CngKeyCreationParameters(); keyParams.KeyCreationOptions = CngKeyCreationOptions.None; keyParams.KeyUsage = CngKeyUsages.Signing; keyParams.Provider = CngProvider.MicrosoftSoftwareKeyStorageProvider; keyParams.ExportPolicy = CngExportPolicies.AllowExport; String newguid = Guid.NewGuid().ToString(); CngKey newKey = CngKey.Create(CngAlgorithm2.Rsa, keyParams); ... When I debug (my local machine), everything is OK, but in the

Configuring custom domain for Azure Web App

风流意气都作罢 提交于 2019-12-12 01:24:25
问题 I configured my custom domain to work with my Azure Web app and it's working but NOT with www. So mydomain.com points to myapp.azurewebsites.net and it works but if I type www.mydomain.com, it gives me "Error 404 - Web App Not Found" error. Here's what I have configured: My domain is registered with GoDaddy and I have an A record pointing to the IP address I copied from my Azure Web App. I also have a CNAME record awverify pointing to awverify.myapp.azurewebsites.net I have my CNAME record

Browse to file upload fails on Azure website (small file)

半腔热情 提交于 2019-12-11 20:40:13
问题 I can upload a .xlsx file on my website running locally but it 404's after publishing to Azure. ASP.Net/webforms; C#; "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable." Any ideas would be appreciated. if (!this.FileUpload1.FileName.Equals("ActionFile.xlsx")) { this.tbxAdminStatus.Text = "Missing input file ActionFile.xlsx"; return; } else { // Upload file fileLoc = Server.MapPath("~/Upload/" + his.FileUpload1.PostedFile.FileName); try {