azure-web-sites

Azure website cannot access Azure DB

◇◆丶佛笑我妖孽 提交于 2019-11-26 21:35:15
问题 This error drives me crazy and I can't even reproduce it! I've published my website to Windows Azure and SQL Azure and it worked great. All the sudden and it doesn't work, I get this nasty error: Here is the error I get: http://jsfiddle.net/shimmy/pcS7g/embedded/result Here's the error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server

HTTP OPTIONS request on Azure Websites fails due to CORS

岁酱吖の 提交于 2019-11-26 20:58:39
I've recently moved our servers from Rackspace CloudSites (running on Apache/Linux) to Windows Azure Websites. Since the migration, all the jQuery AJAX requests on our REST API have started failing due to CORS. We use custom headers, so jQuery makes a Pre-flight HTTP OPTIONS request before running the actual API calls. The problem is that the OPTIONS request doesn't seem to reach my PHP code and is instead returned by some other entity (obviously the Web Server) which I seem to have no control over. I have been using the following headers for a couple of years now so I'm pretty sure the

Disable chunking in Asp.Net Core

…衆ロ難τιáo~ 提交于 2019-11-26 20:41:44
问题 I'm using an Asp.Net Core Azure Web App to provide a RESTful API to a client, and the client doesn't handle chunking correctly. Is it possible to completely turn off Transfer-Encoding: chunked either at the controller level or in web.config? EDIT: I'm returning a JsonResult somewhat like this: [HttpPost] [Produces( "application/json" )] public IActionResult Post( [FromBody] AuthRequest RequestData ) { AuthResult AuthResultData = new AuthResult(); return Json( AuthResultData ); } 回答1: This

App pool timeout for azure web sites

…衆ロ難τιáo~ 提交于 2019-11-26 20:10:37
问题 is there a way to set the timeout of an app pool of a web-site running under azure sites. I have a site running there and it seems like it needs to spin up again when it has been idle for a while. 回答1: Windows Azure Web Sites supports two modes, shared and Reserved. In Shared mode, your web site process (w3wp) runs alongside other, sharing resources including CPU and memory. The runtime (that is Windows Azure Web Sites system) remove sites from memory after period of idleness – that is when

Connecting to Azure website via FTP

守給你的承諾、 提交于 2019-11-26 19:04:51
问题 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. 回答1: 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

How to add a certificate to an Azure RM website with Powershell

放肆的年华 提交于 2019-11-26 18:34:13
问题 Lightly related to How to add an SSL certificate to an azure website using powershell? I am trying to add a certificate to an Azure RM website via Powershell. I don't think there is a direct Azure Powershell command, and it will need to be done via New-AzureRmResource 回答1: In the latest release of Azure PowerShell v 1.1.0, there is a number of new commands to handle SSL certificates in Azure Web Apps You can upload the certificate and bind it to hostname using New-AzureRmWebAppSSLBinding

How to add a certificate to an Azure RM website with Powershell

时光毁灭记忆、已成空白 提交于 2019-11-26 17:26:00
问题 Lightly related to How to add an SSL certificate to an azure website using powershell? I am trying to add a certificate to an Azure RM website via Powershell. I don't think there is a direct Azure Powershell command, and it will need to be done via New-AzureRmResource 回答1: In the latest release of Azure PowerShell v 1.1.0, there is a number of new commands to handle SSL certificates in Azure Web Apps You can upload the certificate and bind it to hostname using New-AzureRmWebAppSSLBinding

Add virtual directory to existing website on Azure

青春壹個敷衍的年華 提交于 2019-11-26 17:08:04
问题 Is it possible to do so using management dashboard: https://manage.windowsazure.com 回答1: 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

Use SVG in Windows Azure Websites

女生的网名这么多〃 提交于 2019-11-26 16:48:34
问题 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! 回答1: 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

What versions of .NET are supported on Azure Web Sites?

浪子不回头ぞ 提交于 2019-11-26 16:17:05
问题 To avoid more questions like Azure Websites, Can one deploy .NET 4.5.1 websites? and Azure Websites, Can one deploy .NET 4.5.2 websites, is there a web site that lists all the .NET Frameworks that are supported in Azure Web Sites? 回答1: I don't know if there's any specific blog post or reference listing, but... here's a quick-n-easy way for you to check for yourself. Note: This requires you to already have a Web Site up and running. You can spin up a new free-tier website really quickly. Then: