title: DefaultDocument suddenly not working on IIS7
body: <p>I have a website which has been running on IIS7 for about 2 months.  We have the default documents set up to load a default.asp page when users go to the domain with no page.  Suddenly this morning, I am getting errors and the default document will not load.  If I type the default.asp, the file loads just fine.</p>
  
  <p>Error Info:<br>
  Module: DefaultDocumentModule <br>
  Notification: ExecuteRequestHandler <br>
  Handler: StaticFile <br>
  Error Code: 0x80070002 </p>
  
  <p>here is a section from my applicationhost.config:</p>
  
  <pre><code>&lt;system.webServer&gt;
  
      &lt;asp&gt;
          &lt;cache diskTemplateCacheDirectory="%SystemDrive%\inetpub\temp\ASP Compiled Templates" /&gt;
      &lt;/asp&gt;
  
      &lt;defaultDocument enabled="true"&gt;
          &lt;files&gt;
              &lt;clear /&gt;
              &lt;add value="Default.asp" /&gt;
              &lt;add value="Default.htm" /&gt;
              &lt;add value="index.htm" /&gt;
              &lt;add value="index.html" /&gt;
              &lt;add value="iisstart.htm" /&gt;
          &lt;/files&gt;
      &lt;/defaultDocument&gt;
  
      &lt;directoryBrowse enabled="false" /&gt;
  
      &lt;globalModules&gt;
          &lt;add name="UriCacheModule" image="%windir%\System32\inetsrv\cachuri.dll" /&gt;
          &lt;add name="FileCacheModule" image="%windir%\System32\inetsrv\cachfile.dll" /&gt;
          &lt;add name="TokenCacheModule" image="%windir%\System32\inetsrv\cachtokn.dll" /&gt;
          &lt;add name="HttpCacheModule" image="%windir%\System32\inetsrv\cachhttp.dll" /&gt;
          &lt;add name="StaticCompressionModule" image="%windir%\System32\inetsrv\compstat.dll" /&gt;
          &lt;add name="DefaultDocumentModule" image="%windir%\System32\inetsrv\defdoc.dll" /&gt;
          &lt;add name="DirectoryListingModule" image="%windir%\System32\inetsrv\dirlist.dll" /&gt;
          &lt;add name="ProtocolSupportModule" image="%windir%\System32\inetsrv\protsup.dll" /&gt;
          &lt;add name="HttpRedirectionModule" image="%windir%\System32\inetsrv\redirect.dll" /&gt;
          &lt;add name="ServerSideIncludeModule" image="%windir%\System32\inetsrv\iis_ssi.dll" /&gt;
          &lt;add name="StaticFileModule" image="%windir%\System32\inetsrv\static.dll" /&gt;
          &lt;add name="AnonymousAuthenticationModule" image="%windir%\System32\inetsrv\authanon.dll" /&gt;
          &lt;add name="RequestFilteringModule" image="%windir%\System32\inetsrv\modrqflt.dll" /&gt;
          &lt;add name="CustomErrorModule" image="%windir%\System32\inetsrv\custerr.dll" /&gt;
          &lt;add name="HttpLoggingModule" image="%windir%\System32\inetsrv\loghttp.dll" /&gt;
          &lt;add name="RequestMonitorModule" image="%windir%\System32\inetsrv\iisreqs.dll" /&gt;
          &lt;add name="IsapiModule" image="%windir%\System32\inetsrv\isapi.dll" /&gt;
          &lt;add name="IsapiFilterModule" image="%windir%\System32\inetsrv\filter.dll" /&gt;
          &lt;add name="CgiModule" image="%windir%\System32\inetsrv\cgi.dll" /&gt;
          &lt;add name="FastCgiModule" image="%windir%\System32\inetsrv\iisfcgi.dll" /&gt;
          &lt;add name="ManagedEngine" image="%windir%\Microsoft.NET\Framework\v2.0.50727\webengine.dll" preCondition="integratedMode,runtimeVersionv2.0,bitness32" /&gt;
          &lt;add name="ConfigurationValidationModule" image="%windir%\System32\inetsrv\validcfg.dll" /&gt;
          &lt;add name="ManagedEngine64" image="%windir%\Microsoft.NET\Framework64\v2.0.50727\webengine.dll" preCondition="integratedMode,runtimeVersionv2.0,bitness64" /&gt;
          &lt;add name="RewriteModule" image="%SystemRoot%\system32\inetsrv\rewrite.dll" /&gt;
          &lt;add name="ManagedEngineV4.0_32bit" image="C:\Windows\Microsoft.NET\Framework\v4.0.30319\webengine4.dll" preCondition="integratedMode,runtimeVersionv4.0,bitness32" /&gt;
          &lt;add name="ManagedEngineV4.0_64bit" image="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\webengine4.dll" preCondition="integratedMode,runtimeVersionv4.0,bitness64" /&gt;
          &lt;add name="WebDAVModule" image="%SystemRoot%\system32\inetsrv\webdav.dll" /&gt;
          &lt;add name="WindowsAuthenticationModule" image="%windir%\System32\inetsrv\authsspi.dll" /&gt;
      &lt;/globalModules&gt;
  </code></pre>
  
  <p>I have also verified that the modules physically exist on disk.  I am not aware of any changes on this server, and the default document has definitely been working up till yesterday.  Server is Windows Server 2008 x64 with IIS 7.0.</p>
  
  <p>I've recycled the app pool, booted the server, removed and reentered the default documents.  the error looks like it cant find the default document module..</p>
  
  <p>What else can I try?</p>