title: Running virtual directories with a different .Net framework than the web site
body: <p>I have a web site running .net 4.0 and need to run 2 virtual directories under the site that are .net 2.0.  I have them separated into their own app pools (main site = App Pool 1, 2 virtual directories = App Pool 2) and the asp.net tab is set properly on main site and the virtual directories.  </p>
  
  <p>I see this error when I try to hit the sites in my virtual directories.</p>
  
  <p>Exception type: ConfigurationErrorsException 
  Exception message: Unrecognized attribute 'optimizeCompilations'. Note that attribute names are case-sensitive. (D:\\web.config line 92) </p>
  
  <p>I'm running IIS 6.0, server 2003.  I know you can do it with multiple virtual directories but it doesn't seem to work the same with the main site being different than the virtual directories.</p>
  
  <p>Thanks
  Robert</p>