If you have a comment on this topic, contact Aptify Documentation. If you want to return to the Aptify Community Site, please click here.

Resolving Issue with web.config Inheritance

For the Aptify Learning Management System (LMS) to run, two web applications are installed under the Aptify e-Business website (Courses and ScormEngine). Since these are sub-applications of e-Business, they inherit the handlers and modules from their parent web.config file. In most sites, you will need to handle a Content Management System (CMS), such as Sitefinity, in addition to Aptify Handlers and modules.

This topic walks you through the process of breaking some inheritance settings with the parent web.config to prevent Aptify and/or Sitefinity from trying to authenticate with their respective databases during the site's first compile.

Follow these steps:

  1. In your web server site layout, find the courses application.

    Web Server Site Layout
  2. Open the web.config file for courses in edit mode.
  3. Find the Configuration >> system.web section of the file.
  4. Add the following line to remove inheritance of the Skin from the top level site:

    <pages theme="" />
    <httpRuntime requestValidationMode="2.0" requestValidationType="System.Web.Util.RequestValidator" /> 

    The requestValidationType="System.Web.Util.RequestValidator" is the default Validation Type.



  5. Under the same level, you will need to add the following lines to remove inheritance of the modules:

    <httpModules>
         <remove name="ClaimsPrincipalHttpModule" />
         <remove name="SitefinityClaimsAuthenticationModule" />
         <remove name="Sitefinity" />
         <remove name="SessionAuthenticationModule" />
         <remove name="ScriptModule" />
         <remove name="RadUploadModule" />
         <remove name="SitefinityAnalyticsModule" />
         <remove name="EBusinessHttpModule" />
    </httpModules> 
  6. Find the Configuration >> system.webServer section of the file.
  7. Add the following lines:

    <modules runAllManagedModulesForAllRequests="true" >
         <remove name="ClaimsPrincipalHttpModule" />
         <remove name="SitefinityClaimsAuthenticationModule" />
         <remove name="Sitefinity" />
         <remove name="SessionAuthenticationModule" />
         <remove name="ScriptModule" />
         <remove name="RadUploadModule" />
         <remove name="SitefinityAnalyticsModule" />
         <remove name="EBusinessHttpModule" />
         <remove name="RoleManager" />
    </modules>

    The web.config file should already have entries for some of the above modules. They are included here for clarity.

  8. Save and close the web.config file for courses.
  9. In the web server site layout, find the ScormEngine application.
  10. Open the web.config file for ScormEngine in edit mode.
  11. Find the Configuration >> system.web section of the file.
  12. Add the following line to remove inheritance of the Skin from the top level site:

    <pages theme="" validateRequest="false" />
  13. Under the same level, you will need to add the following lines to remove inheritance of the modules:

    <httpModules>
         <remove name="ClaimsPrincipalHttpModule" />
         <remove name="SitefinityClaimsAuthenticationModule" />
         <remove name="Sitefinity" />
         <remove name="SessionAuthenticationModule" />
         <remove name="ScriptModule" />
         <remove name="RadUploadModule" />
         <remove name="SitefinityAnalyticsModule" />
         <remove name="EBusinessHttpModule" />
    </httpModules> 
  14. Find the Configuration >> system.webServer section of the file.
  15. Add the following lines:

    <modules runAllManagedModulesForAllRequests="true" >
         <remove name="ClaimsPrincipalHttpModule" />
         <remove name="SitefinityClaimsAuthenticationModule" />
         <remove name="Sitefinity" />
         <remove name="SessionAuthenticationModule" />
         <remove name="ScriptModule" />
         <remove name="RadUploadModule" />
         <remove name="SitefinityAnalyticsModule" />
         <remove name="EBusinessHttpModule" />
         <remove name="RoleManager" />
    </modules>

    The web.config file should already have entries for some of the above modules. They are included here for clarity.

  16. Save and close the web.config file for ScormEngine.

 

It is not necessary to copy any DLLs, as the above steps break the inheritance links that would cause Aptify and the CMS to trigger the authentication with the databases.

Copyright © 2014-2017 Aptify - Confidential and Proprietary