title: How do I set up a local ASP.NET 2.0 site in IIS7 for local testing?
body: <p>This thing is so confusing compared to the old IIS, I haven't even found where to pick the version of .NET still. I had to comment out the  and  from my web.config because I kept getting: </p>
  
  <blockquote>
    <p>This configuration section cannot be
    used at this path. This happens when
    the section is locked at a parent
    level. Locking is either by default
    (overrideModeDefault="Deny"), or set
    explicitly by a location tag with
    overrideMode="Deny" or the legacy
    allowOverride="false".</p>
  </blockquote>
  
  <p>And after that I am now getting an HTTP Error 404.3 Not Found on Default.aspx BUT IT IS THERE (and I created a default page entry for it). It says it is possible it is missing a handler mapping, what the hell is that? Why did they make it so confusing to use the new IIS? I am losing a lot of time on this project trying to set this up. Did me commenting out the  from my web.config create this new problem? Please help!</p>
  
  <p>Oh wait it also says it's possible ASP.NET is not installed but I'm pretty sure it is I am running Windows 7. Is there something I need to configure in IIS to enable ASP.NET aspx/ashx handling?</p>
  
  <p>UPDATE: Yeah I had to install asp.net now I am getting 500.19:</p>
  
  <blockquote>
    <p>Module DefaultDocumentModule 
    Notification ExecuteRequestHandler 
    Handler StaticFile  Error Code
    0x800700b7  Config Error Cannot add
    duplicate collection entry of type
    'add' with unique key attribute
    'value' set to 'Default.aspx'   Config
    File \?\C:\Users\Ryan\Bancroft
    Archive\SANTIAGO\Santiago
    Code\trunk\web.config</p>
  </blockquote>
  
  <p>Hmm...</p>
  
  <p>UPDATE (2): Removed that line in web.config where it was adding Default.aspx as a default document because I already added it manually in ISS7 and it was a duplicate. Seems to be working now. Funny that I solved it after posting but I kept updating so hopefully it's not tottally a waste and this adds to the useful content of this site. Thanks for all the replies.</p>