For the Aptify Learning Management System (LMS) to run; , two web application applications are installed under the ebusiness Aptify e-Business website (Courses and ScormEngine). Because Since these are sub applcation of ebusiness -applications of e-Business, they inherit the handlers and modules from their parent web.config file. In most sites, you will not only need to handle a Content Management System (CMS), such as Sitefinity, in addition to Aptify Handlers and moudles, but also Sitefinitymodules.
This article will walk 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 authentice to authenticate with their respective databases during the sites site's first compile.
Site layout E-Business (Parent)
- courses (Child)
-ScormEngine (Child)
First we will handle the courses site.
Open in edit mode the courses web.config and modify the following sections.
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
...
:
Code Block language xml <pages theme="" />
...
<httpRuntime requestValidationMode="2.0" requestValidationType="System.Web.Util.RequestValidator" /
...
>
Note 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:
Code Block language
...
xml <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 follow code, however the file will already have an entry for module i add it for context to this article.
...
Add the following lines:
Code Block <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>
...
Update: We do not have to copy any dll's as we broke all chains that Sitefinity and Aptify trigger to load.
Next we will handle the ScormEngine site. Follow all instruction again for this site as we did above. The only difference being that the ScormEngine web.config already has an entry to pages. Will will repalce this entry with the following:
<pages theme="" validateRequest="false" />
...
Note 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:
Code Block language xml <pages theme="" validateRequest="false" />
Under the same level, you will need to add the following lines to remove inheritance of the modules:
Code Block language xml <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:
Code Block <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>
Note 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.
Note |
---|
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. |