azure-web-sites

Publish WebAPI and MVC projects to same Azure Web Site?

删除回忆录丶 提交于 2019-11-27 18:13:04
I have two seperate projects in Visual Studio - one with a WebAPI and one with a MVC Web Site... Can I publish both of these to the same Azure Web Site, so that requests to: - /api/products/ => gives JSON from the WebAPI - /products/ => gives HTML from the MVC web site Go to Azure portal and create an AzureWebsite - Then setup an additional application in the settings as follows - Now create two projects in the Visual studio solution -> 1) MVC and 2) WebApi Download publishsettings file of above created azure website. Import the publishsettings file to the Visual studio MVC project publish as

VS to Azure Publish failure: Socket Error 10054

青春壹個敷衍的年華 提交于 2019-11-27 17:52:22
问题 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

Connecting to Azure website via FTP

ぃ、小莉子 提交于 2019-11-27 17:34:08
What login credentials do I use to connect to the FTP site that is listed on the dashboard of my Azure? I tried using the same credentials I use to log into Azure but this is failing. TIA. In the current azure portal the deployment credentials can be set by going to App Services / select relevant app service item / in the Deployment section / Deployment Center / FTP / Dashboard . You can either chose to use the preprovided App Credentials or assign User Credentials . In the previous generation azure portal the deployment credentials can be set up by going to WEB APPS / select relevant item /

How do we use CloudConfigurationManager with asp.net 5 JSON configs?

懵懂的女人 提交于 2019-11-27 17:31:40
问题 Asp.net 5 has a new configuration system which utilizes json files for settings. You have to manually select the json file you want loaded as your configuration with the .AddJsonFile(string fileName) method of the new Configuration class. Meanwhile, in Azure land we've got this nifty CloudConfigurationManager class which is supposed to handle grabbing settings from the Azure Website settings or the active web.config if a Azure setting is not found. But how are these two things intended to

Azure App Service Memory Usage. Where to see full breakdown?

ぐ巨炮叔叔 提交于 2019-11-27 17:29:45
问题 We recently ran out of memory on our sites under an Azure App Service Plan. This threw a "Memory Resource Exhausted" error on all Apps. Clicking "CPU Percentage and Memory Percentage" shows a spike to 82% in last 24 hours. Navigating to "Metrics per Instance (App Service Plan)" I get a visual of all Web Apps.. Adding up ALL their Working Set in MBs added up to 22% at time of 82% App Service Plan usage. This SO answer suggests viewing memory usage in Kudu. Does Azure Dashboard or Kudu have any

How can I use “Azure File Storage” with Web App Service?

江枫思渺然 提交于 2019-11-27 15:44:17
问题 I have been struggling to find some resources that help explain, how we use the File Storage with Web App Service. There are ways to use it with the old Web Roles, Check here (Using the Azure File Service in your Cloud Services (Web and Worker Roles)). However, there is NO OnStart() methods in "Azure Web Service". 回答1: If you're looking for mapping a drive to your Azure File Service share in your Web App using SMB protocol, then I don't think you can do as of today. What you could do is make

Azure Web App Not Using GZip Compression

六月ゝ 毕业季﹏ 提交于 2019-11-27 15:23:30
I was using WebPageTest to test the performance of my Azure Web App (ASP.Net vNext Web API/Angular). I got an F for both "Compress Transfer" and "Cache Static Content". After searching StackOverflow and Google, I added the following to my web.config: <urlCompression doStaticCompression="true" doDynamicCompression="true" /> <httpCompression> <dynamicTypes> <clear /> <remove mimeType="*/*" /> <add enabled="true" mimeType="text/*"/> <add enabled="true" mimeType="message/*"/> <add enabled="true" mimeType="application/x-javascript"/> <add enabled="true" mimeType="application/javascript"/> <add

Add virtual directory to existing website on Azure

白昼怎懂夜的黑 提交于 2019-11-27 15:16:19
Is it possible to do so using management dashboard: https://manage.windowsazure.com Virtual Directories are supported for Azure Websites . See Configuring Azure Websites for what you can do through the Azure Management Portal . From the Azure Portal, click on the Website and go to Configure , then scroll down to virtual applications and directories ( the last config section ). Just enter your virtual directory and the physical path relative to the site root and click Save. As an alternative to Azure Websites , you could use the Cloud Services Web Role or Virtual Machine capability. You could

Can I invoke an Azure webjob from an Azure website and pass it parameters?

你。 提交于 2019-11-27 15:04:42
问题 I have an Azure webjob that I want to invoke from an Azure website. I want to pass string parameters from the website to the webjob. I know I can invoke the webjob as a REST API (https://github.com/projectkudu/kudu/wiki/Web-jobs). So I can invoke the webjob without any parameters: POST jobs/triggered/myjobname/run But adding parameters at the end doesn't appear to be working, i.e. jobs/triggered/myjobname/run?myparam1=value1 The information I see on using attributes in Microsoft.WindowsAzure

Use SVG in Windows Azure Websites

自作多情 提交于 2019-11-27 14:33:50
Does anyone know if it is possible to add the SVG mime type to a Windows Azure Website? I tried with a web.config file but that only broke my website. Is this a limitation of the current preview or am I missing something? thanks for your help! Sandrino Di Mattia What you can do in Windows Azure Websites (on web.config level) is pretty limited, but you should be allowed to add the mime type under staticContent : <configuration> <system.webServer> <staticContent> <remove fileExtension=".svg"/> <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> </staticContent> </system.webServer> <