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:
- In your web server site layout, find the courses application.
- Open the web.config file for courses in edit mode.
- Find the Configuration >> system.web section of the file.
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.
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>Â
- Find the Configuration >> system.webServer section of the file.
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.
- Save and close the web.config file for courses.
- In the web server site layout, find the ScormEngine application.
- Open the web.config file for ScormEngine in edit mode.
- Find the Configuration >> system.web section of the file.
Add the following line to remove inheritance of the Skin from the top level site:
<pages theme="" validateRequest="false" />
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>Â
- Find the Configuration >> system.webServer section of the file.
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.
- 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