title: uploadify and active directory
body: <p>I've been tasked with enabling a dialog that allows a user to select multiple files and upload them at once. I chose uploadify and got it to work with forms authentication. When I enable active directory all browsers fail / hang except for IE9. After a couple of weeks we determined that the quickest course would be to separate the code into another site and call it from our first site (ugly, I know, but we need to deliver this to the client so...).</p>
  
  <p>I made a new site and copied the functionality there. whenever I enter directly (without going to the AD site first) it works without problems. if I then log into the AD site and go back to the upload page the request arrives with no files to the server.</p>
  
  <p>Here are the relevant config bits:</p>
  
  <p>web.config (AD Site)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;
        &lt;sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;
          &lt;section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /&gt;
          &lt;sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;
            &lt;section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" /&gt;
            &lt;section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /&gt;
            &lt;section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /&gt;
            &lt;section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /&gt;
          &lt;/sectionGroup&gt;
        &lt;/sectionGroup&gt;
      &lt;/sectionGroup&gt;
      &lt;sectionGroup name="devExpress"&gt;
        &lt;section name="settings" type="DevExpress.Web.ASPxClasses.SettingsConfigurationSection, DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /&gt;
        &lt;section name="compression" type="DevExpress.Web.ASPxClasses.CompressionConfigurationSection, DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /&gt;
        &lt;section name="themes" type="DevExpress.Web.ASPxClasses.ThemesConfigurationSection, DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /&gt;
        &lt;section name="errors" type="DevExpress.Web.ASPxClasses.ErrorsConfigurationSection, DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" /&gt;
      &lt;/sectionGroup&gt;
    &lt;/configSections&gt;
    &lt;connectionStrings&gt;
      &lt;add name="sae_codelcoConnectionString" connectionString="server=192.168.4.142\sql2008r2;uid=*******;pwd=*******;database=testing_codelco" providerName="System.Data.SqlClient" /&gt;
      &lt;add name="saeConnectionString" connectionString="server=192.168.4.142\sql2008r2;uid=*******;pwd=*******;database=testing_codelco" providerName="System.Data.SqlClient" /&gt;
    &lt;/connectionStrings&gt;
    &lt;system.web&gt;
      &lt;compilation debug="true" defaultLanguage="vb" maxBatchGeneratedFileSize="3000"&gt;
        &lt;assemblies&gt;
          &lt;add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&gt;
          &lt;add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
          &lt;add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&gt;
          &lt;add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&gt;
          &lt;add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /&gt;
          &lt;add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
          &lt;add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&gt;
        &lt;/assemblies&gt;
      &lt;/compilation&gt;
      &lt;customErrors mode="Off" /&gt;
      &lt;!--&lt;authentication mode="Forms"&gt;
        &lt;forms name="aspnet" path="/" loginUrl="logon.aspx" protection="All" timeout="30" /&gt;
      &lt;/authentication&gt;--&gt;
          &lt;authentication mode="Windows"&gt;&lt;/authentication&gt;
      &lt;httpRuntime executionTimeout="100000" maxRequestLength="1234567" useFullyQualifiedRedirectUrl="false" requestLengthDiskThreshold="1234567" /&gt;
      &lt;authorization&gt;
        &lt;allow users="?" /&gt;
      &lt;/authorization&gt;
      &lt;trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" /&gt;
      &lt;sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" /&gt;
      &lt;globalization culture="es-CL" uiCulture="es" requestEncoding="UTF-8" responseEncoding="UTF-8" fileEncoding="UTF-8" /&gt;
      &lt;httpHandlers&gt;
        &lt;remove path="*.asmx" verb="*" /&gt;
        &lt;add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
          validate="false" /&gt;
        &lt;add path="ajax/*.ashx" verb="POST,GET" type="Ajax.PageHandlerFactory, Ajax" /&gt;
        &lt;add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
          validate="false" /&gt;
        &lt;add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
          validate="false" /&gt;
        &lt;add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
          validate="false" /&gt;
      &lt;/httpHandlers&gt;
      &lt;xhtmlConformance mode="Legacy" /&gt;
      &lt;pages enableEventValidation="false" validateRequest="false"&gt;
        &lt;controls&gt;
          &lt;add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
          &lt;add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
          &lt;add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting"
            assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /&gt;
        &lt;/controls&gt;
      &lt;/pages&gt;
      &lt;httpModules&gt;
        &lt;add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
        &lt;add type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule" /&gt;
      &lt;/httpModules&gt;
    &lt;/system.web&gt;
      &lt;location path="paginas/ordentrabajo/encuesta.aspx"&gt;
          &lt;system.web&gt;
              &lt;authorization&gt;
                  &lt;allow users="*" /&gt;
              &lt;/authorization&gt;
          &lt;/system.web&gt;
      &lt;/location&gt;
      &lt;location path="js/uploadify/uploadify.swf"&gt;
          &lt;system.web&gt;
              &lt;authorization&gt;
                  &lt;allow users="?" /&gt;
              &lt;/authorization&gt;
          &lt;/system.web&gt;
      &lt;/location&gt;
    &lt;location path="paginas/ordentrabajo/encuesta_response_html.aspx"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="*" /&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;location path="paginas/resp_remotas/tickets_abiertos.aspx"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="*" /&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;location path="no_acceso.aspx"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="*" /&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;location path="paginas/resp_remotas/cerrar_tickets.aspx"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="*" /&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;location path="paginas/ticket/logon_tareas.aspx"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="*" /&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;location path="paginas/ticket/tarea_ticket.aspx"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="*" /&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;location path="paginas/encDinamica/encDinamica_basica_respuesta_persona.aspx"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="*" /&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;location path="paginas/encDinamica/encDinamica_basica_respuesta_persona_display.aspx"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="*" /&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;appSettings&gt;
      &lt;add key="PathLocalSitio" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\" /&gt;
      &lt;add key="pathDocsTicket" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\Paginas\Docs\" /&gt;
      &lt;add key="pathDocumentos" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\Paginas\Documentos\Archivos\" /&gt;
        &lt;add key="urlSubirDocs" value="http://192.168.4.155/subirdocs/default.aspx" /&gt;
      &lt;add key="Factor Semaforo Verde" value="50" /&gt;
      &lt;add key="Factor Semaforo Amarillo" value="75" /&gt;
      &lt;add key="Factor Semaforo Naranja" value="100" /&gt;
      &lt;add key="Factor Semaforo Rojo" value="150" /&gt;
      &lt;add key="Factor Semaforo Morado" value="200" /&gt;
      &lt;add key="Filtros Upload" value="exe,bat,dll,msi" /&gt;
      &lt;add key="Filtros Upload Mail" value="gif,jpg,jpeg" /&gt;
      &lt;add key="Server_Smtp" value="choclio.mosaq.com" /&gt;
      &lt;add key="Server_Smtp_Autenticar" value="1" /&gt;
      &lt;add key="Server_Smtp_Login" value="wquiroz" /&gt;
      &lt;add key="Server_Smtp_Password" value="rmQgGN34" /&gt;
      &lt;add key="from_mail" value="ialvarez@mosaq.com" /&gt;
      &lt;add key="DictionaryFolder" value="Paginas\NetSpell\dic" /&gt;
      &lt;add key="pathDocsAnalisisIPC" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\documentos\AnalisisIPC\" /&gt;
      &lt;add key="pathDocsMailsCRM" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\CRM\AdjuntosMails\" /&gt;
      &lt;add key="Mail Supervisor Mesa" value="adminsae@desarrollo_sae.org" /&gt;
      &lt;add key="Mail Administrador Contrato" value="adminsae@desarrollo_sae.org" /&gt;
      &lt;add key="HostVariable" value="1" /&gt;
      &lt;add key="Url_Sitio_Externo" value="http://192.168.4.144/sae_codelco/" /&gt;
      &lt;add key="Url_Sitio" value="http://192.168.4.155/sae_codelco/" /&gt;
      &lt;add key="ipExterna" value="200.27.57.180" /&gt;
      &lt;add key="ActiveDirectoryLogon" value="1" /&gt;
      &lt;add key="strDomain" value="MOSAQ" /&gt;
      &lt;add key="pathLDAP" value="LDAP://mosaq.local.cl/DC=mosaq,dc=local,dc=cl" /&gt;
      &lt;add key="PathMapaSitioDisco" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\imagenes\mapas\" /&gt;
      &lt;add key="PathMapaSitios" value="../../imagenes/mapas/" /&gt;
      &lt;add key="IPReportes" value="200.27.164.74/ReportServer$CODELCO/Pages/ReportViewer.aspx?/reportes_codelco/" /&gt;
      &lt;add key="EspecialidadEjecutivosCRM" value="14" /&gt;
      &lt;add key="HabilitaGenerica1Ticket" value="0" /&gt;
      &lt;add key="Evento Retiro Componente" value="11169" /&gt;
      &lt;add key="Evento Entrega Componente" value="11170" /&gt;
      &lt;add key="Evento Actualizacion Componente" value="11171" /&gt;
      &lt;add key="MisTicketsMuestraTpoRemanenteInferior" value="0" /&gt;
      &lt;add key="MisTicketsMuestraTpoRemanenteSuperior" value="0" /&gt;
      &lt;add key="MisTicketsMuestraCriticidad" value="0" /&gt;
      &lt;add key="Agregar_Solucion_En_Solucion_En_Linea" value="1" /&gt;
      &lt;add key="Id_menu_Tickets_Generales" value="132" /&gt;
      &lt;add key="Ver_Todas_las_Criticidades" value="1" /&gt;
      &lt;add key="Evento_Limpia_Password_Intranet" value="506" /&gt;
      &lt;add key="Solucion_Limpia_Password_Intranet" value="128" /&gt;
      &lt;add key="Template" value="default" /&gt;
      &lt;add key="RptCalidadVerCumpleSup" value="0" /&gt;
      &lt;add key="ObsEsperaClienteTicket" value="0" /&gt;
      &lt;add key="idCatGeneralDocs" value="0" /&gt;
      &lt;add key="pathCMDBModelos" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\CMDB\" /&gt;
      &lt;add key="pathDocsInst" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\Instalaciones_ci\Docs\" /&gt;
      &lt;add key="IdCriticidadPersonaNormal" value="1" /&gt;
      &lt;add key="BusquedaIniIngresoOT" value="0" /&gt;
      &lt;add key="VerResueltosListaPend" value="1" /&gt;
      &lt;add key="UrlSitioProyectos" value="http://192.168.4.155/sae_codelco/" /&gt;
      &lt;add key="CierreOT" value="1" /&gt;
      &lt;add key="IPExternoReportes" value="200.27.57.180:8080" /&gt;
      &lt;add key="pathDocumentosProyectos" value="" /&gt;
      &lt;add key="IngresaNegocioEnOT" value="0" /&gt;
      &lt;add key="BloquearModificayELiminaNotas" value="1" /&gt;
      &lt;add key="IncluirCodigoenLabelRut" value="0" /&gt;
      &lt;add key="MisTicketsMuestraComponentes" value="0" /&gt;
      &lt;add key="MisTicketsMuestraRegion" value="1" /&gt;
      &lt;add key="encuestaDinamicaBasica" value="0" /&gt;
      &lt;add key="encuestaDinamicaAvanzada" value="0" /&gt;
      &lt;add key="AdmiteCreacionPersonas" value="1" /&gt;
      &lt;add key="AdmiteCreacionPersonasIdEmpresas" value="" /&gt;
      &lt;add key="IdMedioAtencionTareaAgenda" value="4" /&gt;
      &lt;add key="IdEncuestaReclamoTarea" value="2" /&gt;
      &lt;add key="IdEncuestaFelicitacionesTarea" value="1" /&gt;
      &lt;add key="IdEncuestaReclamoProceso" value="0" /&gt;
      &lt;add key="IdEncuestaFelicitacionesProceso" value="0" /&gt;
      &lt;add key="ResolverPorEmail" value="0" /&gt;
      &lt;add key="idEvtoReposAlta" value="1" /&gt;
      &lt;add key="idEvtoReposBaja" value="2" /&gt;
      &lt;add key="EmpresasRecatalogar" value="2,3,4,5" /&gt;
      &lt;add key="UtilizaCorrecionFechaComprometida" value="0" /&gt;
      &lt;add key="ModCriticidadEnOT" value="1" /&gt;
      &lt;add key="UsaReglaFechasAmsa" value="0" /&gt;
      &lt;add key="AtentoMisTicketsResaltaMasivo" value="1" /&gt;
      &lt;add key="Cliente" value="Atento" /&gt;
      &lt;add key="LlamadaRapidaN1N2N3" value="3,10,Consulta" /&gt;
      &lt;add key="LlamadaRapidaIDEvento" value="11392" /&gt;
      &lt;add key="urlSitioNoticias" value="http://www.saedemo.cl/noticias/default.aspx?rawHsh=" /&gt;
      &lt;add key="solicIdEstado" value="1" /&gt;
      &lt;add key="IdMedioAtencionSolContacto" value="5" /&gt;
      &lt;add key="solicIdTipo" value="3" /&gt;
      &lt;add key="idGenericoSolicitantePGFensaMademsa" value="1" /&gt;
      &lt;add key="IDTGenjunaeb" value="221" /&gt;
      &lt;add key="IDTGenmademsa" value="220" /&gt;
      &lt;add key="IDTGenfensa" value="219" /&gt;
      &lt;add key="SearchByDescriptionInActive" value="0" /&gt;
      &lt;add key="SearchActiveUserName" value="Prueba" /&gt;
      &lt;add key="SearchActiveUserPassword" value="12345678" /&gt;
      &lt;add key="junaeb" value="0" /&gt;
      &lt;add key="gruposCAS" value="1" /&gt;
      &lt;add key="bpm2009" value="0" /&gt;
      &lt;add key="url_bpm2009" value="http://ignacio-pc/websaeprocesos2009/paginas/ticket_proceso.aspx" /&gt;
      &lt;add key="SaeV2MDB.WSProcesos2009.WsInstansiaProceso" value="http://ignacio-pc/WSSAEProcesos2009/WsInstansiaProceso.asmx" /&gt;
      &lt;add key="urlReporteContratosPagos" value="http://192.168.4.73/ReportServer$CODELCO/Pages/ReportViewer.aspx?%2freportes_codelco%2fEstado_de_pago" /&gt;
      &lt;add key="url_rfc" value="http://192.168.4.155/sae_codelco_rfc/default.aspx" /&gt;
      &lt;add key="IdMedioAtencionDefectoOT" value="2" /&gt;
      &lt;add key="IdTipoCatalogoDefectoOT" value="1" /&gt;
      &lt;add key="Proveedores" value="8=Grupo Mesa;15=Grupo Operaciones" /&gt;
      &lt;add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" /&gt;
    &lt;/appSettings&gt;
    &lt;system.codedom&gt;
      &lt;compilers&gt;
        &lt;compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"&gt;
          &lt;providerOption name="CompilerVersion" value="v3.5" /&gt;
          &lt;providerOption name="OptionInfer" value="true" /&gt;
          &lt;providerOption name="WarnAsError" value="false" /&gt;
        &lt;/compiler&gt;
      &lt;/compilers&gt;
    &lt;/system.codedom&gt;
    &lt;system.webServer&gt;
      &lt;validation validateIntegratedModeConfiguration="false" /&gt;
      &lt;modules&gt;
        &lt;remove name="ScriptModule" /&gt;
        &lt;add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
        &lt;add type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
          name="ASPxHttpHandlerModule" /&gt;
      &lt;/modules&gt;
      &lt;handlers&gt;
        &lt;remove name="WebServiceHandlerFactory-Integrated" /&gt;
        &lt;remove name="ScriptHandlerFactory" /&gt;
        &lt;remove name="ScriptHandlerFactoryAppServices" /&gt;
        &lt;remove name="ScriptResource" /&gt;
        &lt;remove name="ChartImageHandler" /&gt;
        &lt;add name="ajax/*.ashx_POST,GET" path="ajax/*.ashx" verb="POST,GET"
          type="Ajax.PageHandlerFactory, Ajax" preCondition="integratedMode,runtimeVersionv2.0" /&gt;
        &lt;add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
          type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
        &lt;add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd"
          preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
        &lt;add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd"
          preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
        &lt;add type="DevExpress.Web.ASPxUploadControl.ASPxUploadProgressHttpHandler, DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
          verb="GET,POST" path="ASPxUploadProgressHandlerPage.ashx" name="ASPxUploadProgressHandler"
          preCondition="integratedMode" /&gt;
        &lt;add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST"
          path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /&gt;
      &lt;/handlers&gt;
    &lt;/system.webServer&gt;
    &lt;runtime&gt;
      &lt;assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" /&gt;
          &lt;bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" /&gt;
          &lt;bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /&gt;
        &lt;/dependentAssembly&gt;
      &lt;/assemblyBinding&gt;
    &lt;/runtime&gt;
    &lt;devExpress&gt;
      &lt;settings rightToLeft="false" /&gt;
      &lt;compression enableHtmlCompression="false" enableCallbackCompression="true" enableResourceCompression="true" enableResourceMerging="false" /&gt;
      &lt;themes enableThemesAssembly="true" /&gt;
      &lt;errors callbackErrorRedirectUrl="" /&gt;
    &lt;/devExpress&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>global.asax (AD site)</p>
  
  <pre><code>Imports saeFrameWork
  Imports SaeConnectorV1
  Imports System.Web
  Imports System.Web.SessionState
  
  Public Class [Global]
  
      Inherits System.Web.HttpApplication
  
  #Region " Component Designer Generated Code "
  
      Public Sub New()
          MyBase.New()
  
          'This call is required by the Component Designer.
          InitializeComponent()
  
          'Add any initialization after the InitializeComponent() call
  
      End Sub
  
      'Required by the Component Designer
      Private components As System.ComponentModel.IContainer
  
      'NOTE: The following procedure is required by the Component Designer
      'It can be modified using the Component Designer.
      'Do not modify it using the code editor.
      &lt;System.Diagnostics.DebuggerStepThrough()&gt; Private Sub InitializeComponent()
          components = New System.ComponentModel.Container()
      End Sub
  
  #End Region
  
      Dim PathLocalArchivoConfiguracion As String = ConfigurationManager.AppSettings("PathLocalSitio")
  
      Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
          ' Fires when the application is started
      End Sub
  
      Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
          Dim host As String = Request.ServerVariables("server_name")
          If Convert.ToBoolean(Convert.ToInt32(ConfigurationManager.AppSettings("HostVariable"))) Then
              Dim i As Integer = 0
              Dim ipExterna As Array = Split(ConfigurationManager.AppSettings("ipExterna"), ",")
              Dim ipExternaReportes As Array = Split(ConfigurationManager.AppSettings("IPExternoReportes"), ",")
              Dim UrlSitiosExternos As Array = Split(ConfigurationManager.AppSettings("Url_Sitio_Externo"), ",")
              For i = 0 To UBound(ipExterna)
                  If ipExterna(i) = host Then
                      Session("Url_Sitio") = UrlSitiosExternos(i)
                      Session("IPReportesBirt") = ipExternaReportes(i)
                      Exit For
                  Else
                      Session("Url_Sitio") = ConfigurationManager.AppSettings("Url_Sitio")
                      Session("IPReportesBirt") = ConfigurationManager.AppSettings("IPReportes")
                  End If
              Next
              'If ipExterna = host Then
              '    Session("Url_Sitio") = ConfigurationManager.AppSettings("Url_Sitio_Externo")
              '    Session("IPReportesBirt") = ConfigurationManager.AppSettings("IPExternoReportes")
              'Else
              '    Session("Url_Sitio") = ConfigurationManager.AppSettings("Url_Sitio")
              '    Session("IPReportesBirt") = ConfigurationManager.AppSettings("IPReportes")
              'End If
          Else
              Session("Url_Sitio") = ConfigurationManager.AppSettings("Url_Sitio")
              Session("IPReportesBirt") = ConfigurationManager.AppSettings("IPReportes")
          End If
          Session("template") = ConfigurationManager.AppSettings("Template")
          Session("call") = Nothing
          ' Fires when the session is started
          'Dim oDbCliente As New DbCliente
          'Try
          '    Dim sql As String = ""
          '    Dim dsMA As DataSet
          '    Dim dsNivel1 As DataSet
          '    Dim fwkCfgFile As saeFwk_ConfigFileSettings
          '    Dim dbtype As String = ""
          '    Dim PathLocalArchivoConfiguracion As String = ConfigurationManager.AppSettings("PathLocalSitio")
          '    fwkCfgFile = New saeFwk_ConfigFileSettings 'instancia clase de lectura de archivo de configuracion
          '    dbtype = fwkCfgFile.returnKeyValue(PathLocalArchivoConfiguracion, "dbtype")    'dimensionamos variable que toma el tipo de base de datos que utilizaremos
          '    sql = "SELECT    id,nombre "
          '    sql &amp;= "FROM medios_atencion_ticket "
          '    sql &amp;= "order by nombre"
          '    oDbCliente = New DbCliente(PathLocalArchivoConfiguracion, sql, dbtype)
          '    dsMA = DBMapping.getDataSet(oDbCliente, dbtype)
          '    Session("mediosAtencion") = dsMA
          '    dsMA = Nothing
          '    sql = "select id,nombre from nivel_1 order by nombre"
          '    DBMapping.changeCommandText(oDbCliente, dbtype, sql)
          '    dsNivel1 = DBMapping.getDataSet(oDbCliente, dbtype)
          '    Session("nivel1") = dsNivel1
          '    dsNivel1 = Nothing
          'Catch ex As Exception
          '    Response.Write("Ha ocurrido el siguiente error al iniciar la session: " &amp; ex.Message &amp; "&lt;br&gt;&lt;br&gt;Favor contacte al prooveedor.")
          'Finally
          '    oDbCliente.Close()
          '    oDbCliente.Dispose()
          'End Try
      End Sub
  
      Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
          ' Fires at the beginning of each request
      End Sub
  
      Sub Application_AuthenticateRequest(ByVal sender As Object, ByVal e As EventArgs)
          ' Fires upon attempting to authenticate the use
      End Sub
  
      Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
          ' Fires when an error occurs
      End Sub
  
      Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
  
          Dim oUser As saefwk_ValidaUsuario = Session("oUser")
  
          Dim oLogLogInOut As New saeFwk_LogLogInOut
          oLogLogInOut.login = oUser.Login
          oLogLogInOut.resolutor_id = oUser.Id
          oLogLogInOut.fecha = DateTime.Now
          oLogLogInOut.tipo = "O"
          oLogLogInOut.guardar(PathLocalArchivoConfiguracion)
  
          Try
              Dim rutas() As String = IO.Directory.GetFiles(ConfigurationManager.AppSettings("pathDocumentos"), "temp_" &amp; Session.SessionID &amp; "*.*")
              For Each ruta As String In rutas
                  IO.File.Delete(ruta)
              Next
          Catch
  
          End Try
  
          Session.RemoveAll()
          ' Fires when the session ends
      End Sub
  
      Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
          ' Fires when the application ends
      End Sub
  
      Protected Overrides Sub Finalize()
          MyBase.Finalize()
      End Sub
  End Class
  </code></pre>
  
  <p>All googled solutions were tested on a windows 7 machine, a 2008 r2 machine (IIS 7.5), a 2008 machine (IIS 7) and a 2003 machine (IIS 6). When I started out I suspected the app would give us trouble and now I'm convinced the app has something that's messing with the uploading implementations we've come up with, hence the web.config and glbal.asax for the site. If you need anything else let me know</p>
  
  <p>PS: I tried to include the upload site bits too but the post was to long. they are a standard implementation of uploadify over asp.net using request.files to get the files. web.config is default one created with new vs 2010 site.</p>