azure-web-sites

URL Rewrite not executed on Azure, several projects

坚强是说给别人听的谎言 提交于 2019-12-25 03:49:21
问题 I am trying to rewrite the URL on an Azure MVC application. The solution contains many projects, thus has web.config files all over the place. The URL Rewrite objective is to send all URLs based on the Project "Statistics" to the subdomain "admin", whatever subdomain was called at the origin of the request. (I created this rule independently on my laptop with IIS Manager and imported it manually in one of the projects) <configuration> <system.webServer> <!--Something here. The rule nests at

No 'Access-Control-Allow-Origin' header is present on the requested resource. from mobile services

爱⌒轻易说出口 提交于 2019-12-25 03:34:17
问题 I created a simple vanilla ToDo from azure mobile template to test the service but don't seem to work correctly. I can connect to https://phonegapwil.azure-mobile.net from localhost with mobile services but not after I published site, http://phonegapwil.azurewebsites.net/ error message I get: XMLHttpRequest cannot load https://phonegapwil.azure-mobile.net/tables/todoitem?$filter=(complete%20eq%20false). No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http

Site down: error log pattern of login failure x20, then invalid object name x20, then again login failure x20

孤街醉人 提交于 2019-12-25 03:26:34
问题 Our Orchard CMS with multi-tenancy just went down. We have since brought it back online by restoring a version of the database, and then recycling the application pool. Communicating with the restored database continued to fail until we recycled the app pool. The post-mortem analysis of the error log from yesterday had zero errors, and the error log from today has about forty errors with the following pattern: About 20 SqlException errors reporting "invalid login" for two of the tenant

Azure Active Directory/Ldap use inside web-app

♀尐吖头ヾ 提交于 2019-12-25 03:16:27
问题 We are currently testing azure web-app functionality for our own apache application. The application works with non security, but the application itself needs direct active directory access via ldap. Example settings inside the application: <ldap> <connectionUrl>wehavenoidea:389</connectionUrl> <roleBase>OU=AADDC Users,DC=ourdomain,DC=onmicrosoft,DC=com</roleBase> <userPattern>{0},OU=AADDC Users,DC=ourdomain,DC=onmicrosoft,DC=com</userPattern> <roleSearch>member={0}</roleSearch>

Sent mail using smtp not working when deployed in microsoft windows azure c# asp.net mvc5

荒凉一梦 提交于 2019-12-25 02:11:38
问题 I've been trying unsuccessfully to get an email in my Azure Website. I can get it working on my localhost using either the GMail SMTP settings. However when deployed to my windows azure website ,even on my localhost IIS it doesn't work. none mail being sent or received!!! there is my code in web.config: <appSettings> <add key="webpages:Version" value="3.0.0.0" /> <add key="webpages:Enabled" value="false" /> <add key="ClientValidationEnabled" value="true" /> <add key=

Application Gateway routing URL's to custom ports

*爱你&永不变心* 提交于 2019-12-25 01:34:54
问题 We have an Application Gateway operational with the following setup Backend 1 : Server A, Server B Backend 2 : Server C Listener1 - site.com - Port 8888 HTTPS - Backend 1 Listener2 - site.com - Port 3000 HTTPS - Backend 2 Listener3 - site.com - Port 10001 HTTPS - Backend 1 This is routing correctly when site.com:port is specified however this isn't ideal for the end user to remember to include the port. What we want to do is sub.site.com to map to site.com:8888 sub2.site.com to map to site

WIF in Azure WebSite

ぐ巨炮叔叔 提交于 2019-12-25 01:17:08
问题 I would like to use Windows Identity foundation in an Azure WebSite. I noticed that Azure Websites support .Net 4.0 and not .Net 4.5. Does anyone know if there is a way to use WIF in an Azure WebSite? 回答1: Vittorio Bertocci (Mr. WIF himself) just posted a blog post on this topic: http://blogs.msdn.com/b/vbertocci/archive/2013/01/28/running-wif-based-apps-in-windows-azure-web-sites.aspx. 回答2: WIF 1.0 works fine in Azure - refer How to implement single sign-on with Windows Azure Active

Why does 'az vm secret format' command fail when prepping SSL cert of Linux VM deployment?

…衆ロ難τιáo~ 提交于 2019-12-25 01:07:54
问题 I am trying to prepare an SSL certificate for deployment to Linux VM hosted on Azure following the instructions provided at: HTTPS access to Azure ubuntu Virtual Machine The first line: $secret=$(az keyvault secret list-versions --vault-name myVaultName --name myCertName --query "[?attributes.enabled].id" --output tsv) executes fine, and $secret contains the expected value. However when I execute the second line: $vm_secret=$(az vm secret format --secret "$secret") I get an error: unable to

Changing Azure Web App settings

寵の児 提交于 2019-12-24 22:39:57
问题 Does changing an Azure web app setting changes it in the deployment slot? For example, If I changed the PHP version on the production slot, would it automatically be changed in the staging slot? 回答1: No, unless you swap the slots and enable "Slot Setting" in the "Application Settings". The changes will not be reflected in the other Slots. 回答2: No. Each deployment slot is like a full App Service instance. The changes are not reflected to any other slots . 来源: https://stackoverflow.com

Headless browser in Azure functions JavaScript?

半世苍凉 提交于 2019-12-24 20:32:49
问题 I tried using phantomjs but apparently it's unsupported, is there any way to scrape websites using azure functions in javascript? 回答1: There are many restrictions on Azure App Service (includes WebApps, Function Apps), such as Win32k.sys (User32/GDI32) Restrictions. So some packages are not supported on Azure App Service, which like PhantomJS/puppteer be required to start a headless browser which needs GDI support to communicate with javascript/nodejs to get DOM node. You can scrape a static