title: Deploying wordpress app in Azure virtual directory with asp.net app
body: <p>I have ASP.net app hosted on Azure websites on root. I created a virtual directory for blogs where I want to host wordpress app. I deployed the wordpress app but after (wordpress admin panel) login click it redirects to error page of my asp.net app. The frontend (blog pages) is also not visible.</p>
  
  <p>I assume there might be some URL rewrite issue in Web.config. Also need to change something in wordpress settings. I am not sure.</p>
  
  <p>Update:
  I am getting below error when trying to access /blog</p>
  
  <p>Could not load file or assembly 'AjaxControlToolKit' or one of its dependencies. The system cannot find the file specified.</p>
  
  <p>Web.config in wwwroot folder</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  
  &lt;!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    --&gt;
  
  &lt;configuration&gt;
    &lt;system.webServer&gt;
      &lt;security&gt;
        &lt;requestFiltering&gt;
          &lt;requestLimits maxQueryString="32768" /&gt;
        &lt;/requestFiltering&gt;
      &lt;/security&gt;
    &lt;/system.webServer&gt;
    &lt;system.web.extensions&gt;
      &lt;scripting&gt;
        &lt;webServices&gt;
          &lt;jsonSerialization maxJsonLength="50000000" /&gt;
        &lt;/webServices&gt;
      &lt;/scripting&gt;
    &lt;/system.web.extensions&gt;
    &lt;appSettings&gt;
      &lt;add key="ValidationSettings:UnobtrusiveValidationMode" value="None" /&gt;
    &lt;/appSettings&gt;
    &lt;system.web&gt;
      &lt;!-- Remove httpcookies in production --&gt;
      &lt;httpCookies httpOnlyCookies="true" requireSSL="false" /&gt;
      &lt;customErrors mode="Off" /&gt;
      &lt;authentication mode="None" /&gt;
      &lt;compilation targetFramework="4.5"&gt;
        &lt;assemblies&gt;
          &lt;add assembly="AjaxControlToolKit" /&gt;
        &lt;/assemblies&gt;
      &lt;/compilation&gt;
      &lt;httpRuntime targetFramework="4.5" /&gt;
      &lt;pages&gt;
        &lt;controls&gt;
          &lt;add assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagPrefix="ajaxToolkit" /&gt;
        &lt;/controls&gt;
      &lt;/pages&gt;
    &lt;/system.web&gt;
    &lt;system.webServer&gt;
      &lt;defaultDocument&gt;
        &lt;files&gt;
          &lt;clear /&gt;
          &lt;add value="home.htm" /&gt;
        &lt;/files&gt;
      &lt;/defaultDocument&gt;
    &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>