azure-web-sites

How to connect remote SFTP from Azure web site scheduled job

断了今生、忘了曾经 提交于 2019-12-12 07:23:13
问题 I have one console app which will be scheduled as job in AZURE web site. From that console app I want to connect remote SFTP and get all files and save them in my folder inside AZURE web site.Also if it possible remove them from SFTP after transfer. 回答1: First of all best and free option to use in this case is WinSCP .NET assembly. You can download it from here So lets start this is the function: public static void GetSftp(string host, string user, string password, int port, string source,

deploying Opigno on azure website

若如初见. 提交于 2019-12-12 06:50:57
问题 I have created Azure website ,and upload all OPIGNO files to that website via FTP,so when i am trying to access the index.php for OPIGNO project ,it returns server error 500 ???? 回答1: Usually, when there are anything went wrong, the server will return error 500. And usually a framework application occur 500 error after deploying on Azure Web Apps, maybe there are something configuration errors. Also, you may need to turn the display_errors setting on to display errors for troubleshooting. You

Reverse proxy on azure app service

给你一囗甜甜゛ 提交于 2019-12-12 05:26:32
问题 I've got the asp.net web site deployed to the Azure App Service. I need to move out the api to another website on another url. For that I've done the reverse proxy: <rewrite> <rules> <rule name="ProxyRuleApi" stopProcessing="true"> <match url="^api/(.*)" /> <action type="Rewrite" url="http://anotherApiServer/api/{R:1}"/> <conditions> </conditions> </rule> </rules> </rewrite> But constantly get the "500" error. So looks like App Service fails to read web.config or something.. Not sure about

Microsoft Azure Django Python setup error Pillow

只谈情不闲聊 提交于 2019-12-12 04:33:37
问题 All sorta new to using Microsoft Azure and needed help deploying a Django App to it. When I push the code from my local repo to Azure it gives me this log. I noticed it says : The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source. Please see the install instructions at https://pillow.readthedocs.io/en/latest/installation.html I did more reading and learnt that Azure cannot install PIL or Pillow from the environment and hence needs to

Website unavailable after scaling down on Azure

让人想犯罪 __ 提交于 2019-12-12 04:32:43
问题 I experienced something weird today with my web app published on Azure App Services. I'm running on a "S3 Standard" app service plan and wanted to scale down to "S2 Standard" since the large VM isn't fully utilized. After switching to S3, my website where immediately unavailable. I have scaled websites before without any problems and I just tested this on another account without similar errors. I know that it's kind of a wild shot here, but did anyone experience something similar? UPDATE: I

Azurewebsite django URL rewrite for another application

﹥>﹥吖頭↗ 提交于 2019-12-12 04:14:53
问题 I've installed wordpress in Azurewebsites which is primarily running Django. I've set up an application as /blog to /site/wwwroot/blog in application setting. But web.config is not serving the url www.example.com/blog instead it's throwing 404 error. Here's the web.config, could you suggest how to disable rewrite for www.example.com/blog <?xml version="1.0"?> <configuration> <system.diagnostics> <trace> <listeners> <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener,

Visual Studio Configure Azure AD Authentication says Windows Authentication is configured when it isn't

谁说我不能喝 提交于 2019-12-12 04:10:01
问题 I want to configured Azure AD Authentication on an existing MVC website. So I right-click the website in Visual Studio, and select "Configure Azure AD Authentication". The wizard then says: "An incompatible authentication configuration was found in this project (Windows Authentication). The wizard cannot be used to configure authentication." It even links me to the documentation page explaining the error. So I removed <authentication mode="Windows" /> from web.config and re-built the

Remove sensitive Headers from Azure PaaS hosted Websites

和自甴很熟 提交于 2019-12-12 03:59:13
问题 If you follow this article Azure Blog, you can remove the Server, X-Powered-By and MVC version which is great. You can also achieve similar with a custom IIS module with the following method: private void OnPreSendRequestHeaders(object sender, EventArgs e) { HttpContext.Current?.Response.Headers.Remove("Server"); HttpContext.Current?.Response.Headers.Remove("X-AspNet-Version"); HttpContext.Current?.Response.Headers.Remove("X-AspNetMvc-Version"); HttpContext.Current?.Response.Headers.Remove("X

How would one login to Azure cloud classic service instance?

旧街凉风 提交于 2019-12-12 03:55:35
问题 I have setup a azure cloud classic. Where I have two instances running one is web role and orleans silos. I want to enable trace and I need a means to login into the box and see the logs. Azure portal is not providing the logs I needed. I am following the following link https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-role-enable-remote-desktop but, in the first step, is to click on the cloud service and click configure but I do not see configure option anywhere. I see

VS 2015, C# 6, MVC5, Roslyn — 502 gateway and compilation errors on Azure web app

耗尽温柔 提交于 2019-12-12 03:45:34
问题 I have a question that is very similar to this: VS 2015, C# 6, MVC5, Roslyn -- 502 gateway errors on Azure web app so please don't mark this as a duplicate. My situation is exactly the same as in that previous question: VS 2015, C# 6, MVC5, Roslyn, very slow website with 502 gateway errors, CodeDOM compiler Nuget package, Azure Web App with git continuous deployment. Additionally, I am getting compilation errors like this: Server Error in '/' Application. Compilation Error Description: An