title: ASPX page within a .aspx page with iframe throws 500.23 error
body: <p>I'm trying to embed a <code>ChartModule.aspx</code> page within a <code>Default.aspx</code> page using an <code>iframe</code>. </p>
  
  <p>The ChartModule has a button event which updates a chart. The ChartModule has its own <code>ChartsModule.cs</code>.</p>
  
  <p>I'm getting this error:</p>
  
  <blockquote>
    <p>HTTP Error 500.23 - Internal Server Error An ASP.NET setting has been
    detected that does not apply in Integrated managed pipeline mode.Most
    likely causes:</p>
    
    <p>•This application defines configuration in the system.web/httpHandlers
    section.  Things you can try: •Migrate the configuration to the
    system.webServer/handlers section. You can do so manually or by using
    AppCmd from the command line. For example, from the IIS Express
    install directory, run appcmd migrate config "Default Web Site/".
    Using AppCmd to migrate your application will enable it to work in
    Integrated mode. It will continue to work in Classic mode and on
    previous versions of IIS. •If you are certain that it is OK to ignore
    this error, it can be disabled by setting
    system.webServer/validation@validateIntegratedModeConfiguration to
    false. •Alternatively, switch the application to a Classic mode
    application pool. For example, from the IIS Express install directory,
    run appcmd set app "Default Web Site/"
    /applicationPool:"Clr4ClassicAppPool". Only do this if you are unable
    to migrate your application.</p>
    
    <p>Detailed Error Information: Module    ConfigurationValidationModule 
    Notification    BeginRequest  Handler<br>
    PageHandlerFactory-Integrated-4.0  Error Code    0x80070032  Requested
    URL    <a href="http://localhost:4161/Default.aspx" rel="nofollow">http://localhost:4161/Default.aspx</a>  Physical Path<br>
    C:\Documents and
    Settings\singhm\Desktop\Temp\Trial2\Trial2\Default.aspx  Logon Method 
    Not yet determined  Logon User    Not yet determined  Request Tracing
    Directory</p>
  </blockquote>
  
  <p>Why is this?</p>