How to: Modify Configuration Settings for an Application to Coexist with Windows SharePoint Services
To make an application or Web application coexist with Microsoft Windows SharePoint Services, you must customize the web.config file of the application.
Changes that you make to web.config may be overwritten when you install updates or service packs for Windows SharePoint Services, or when you upgrade an installation to the next product version.
To customize the web.config file of the application
Within the <System.Web> section of the web.config file of the application, clear out the ASP.NET handler, HTTP modules, and remapped tag types that are used in Windows SharePoint Services, and specify the default ASP.NET handler for all pages, by adding lines as follows:
Because Windows SharePoint Services maintains a restrictive trust policy, you may need to adjust the trust level by adding a line like the following to the web.config file of the application.
<trust level="Full" originUrl="" />
You may need to enable the session module by adding the following lines to the web.config file of the application. In the top-level web.config file for Windows SharePoint Services, the default value for the enableSesstionState attribute is false.
<httpModules> <add name="Session" type="System.Web.SessionState.SessionStateModule"/> </httpModules>
If you receive a parser error message saying that the Session module is already in the application and cannot be re-added, remove the httpModules section.