title: Orchard - migrating site from iis 6 to iis 7.5 and the CSS/images/etc won't load
body: <p>We migrated our websites from windows server 2003 to server 2008 r2 using iis 7.5.
  Just simply coping the website folders to the new server,  setting the app pool to 4.0 integrated and using a Domain account to run the app pool I can get the site to come up.</p>
  
  <p>that being said,  no images or the CSS seem to be working.  According to google developer tools it looks like it can't find it.  </p>
  
  <p>I've searched the net and really can't find anything exactly like this.  If anyone has any specifics I need to look for that would be great.  I'll attach my webconfig.</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
      &lt;configSections&gt;
          &lt;sectionGroup name="system.web.webPages.razor"
          type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;
              &lt;remove name="host"/&gt;
              &lt;remove name="pages"/&gt;
              &lt;section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false"/&gt;
              &lt;section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false"/&gt;
          &lt;/sectionGroup&gt;
      &lt;/configSections&gt;
      &lt;appSettings&gt;
          &lt;add key="webpages:Enabled" value="false"/&gt;
      &lt;/appSettings&gt;
      &lt;system.web.webPages.razor&gt;
          &lt;host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/&gt;
          &lt;pages pageBaseType="Orchard.Mvc.ViewEngines.Razor.WebViewPage"&gt;
              &lt;namespaces&gt;
                  &lt;add namespace="System.Web.Mvc"/&gt;
                  &lt;add namespace="System.Web.Mvc.Ajax"/&gt;
                  &lt;add namespace="System.Web.Mvc.Html"/&gt;
                  &lt;add namespace="System.Web.Routing"/&gt;
                  &lt;add namespace="System.Web.WebPages"/&gt;
                  &lt;add namespace="System.Linq"/&gt;
                  &lt;add namespace="System.Collections.Generic"/&gt;
                  &lt;add namespace="Orchard.Mvc.Html"/&gt;
              &lt;/namespaces&gt;
          &lt;/pages&gt;
      &lt;/system.web.webPages.razor&gt;
      &lt;system.web&gt;
          &lt;httpHandlers&gt;
              &lt;!-- iis6 - for any request in this location, return via managed static file handler --&gt;
              &lt;add path="*/Theme.png" verb="*" type="System.Web.StaticFileHandler"/&gt;
              &lt;add path="*/ThemeZonePreview.png" verb="*" type="System.Web.StaticFileHandler"/&gt;
          &lt;/httpHandlers&gt;
          &lt;!--
          Enabling request validation in view pages would cause validation to occur
          after the input has already been processed by the controller. By default
          MVC performs request validation before a controller processes the input.
          To change this behavior apply the ValidateInputAttribute to a
          controller or action.
      --&gt;
          &lt;pages validateRequest="false" pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"&gt;
              &lt;controls&gt;
                  &lt;add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" namespace="System.Web.Mvc" tagPrefix="mvc"/&gt;
              &lt;/controls&gt;
          &lt;/pages&gt;
          &lt;compilation targetFramework="4.0" debug="true"&gt;
              &lt;assemblies&gt;
                  &lt;add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/&gt;
                  &lt;add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/&gt;
                  &lt;add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
                  &lt;add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/&gt;
                  &lt;add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/&gt;
              &lt;/assemblies&gt;
          &lt;/compilation&gt;
      &lt;/system.web&gt;
      &lt;system.webServer&gt;
          &lt;validation validateIntegratedModeConfiguration="false"/&gt;
          &lt;handlers accessPolicy="Script,Read"&gt;
              &lt;!--
          iis7 - for any request to a file exists on disk, return it via native http module.
          accessPolicy 'Script' is to allow for a managed 404 page.
          --&gt;
              &lt;add name="ThemePreviewImage" path="*/Theme.png" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read"/&gt;
              &lt;add name="ThemeZonePreviewImage" path="*/ThemeZonePreview.png" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read"/&gt;
          &lt;/handlers&gt;
      &lt;/system.webServer&gt;
      &lt;runtime&gt;
          &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
              &lt;dependentAssembly&gt;
                  &lt;assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/&gt;
                  &lt;bindingRedirect oldVersion="2.0.0.0" newVersion="3.0.0.0"/&gt;
              &lt;/dependentAssembly&gt;
          &lt;/assemblyBinding&gt;
      &lt;/runtime&gt;
  &lt;/configuration&gt;
  </code></pre>