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

  1. 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:

       <clear />
       <add verb="*" path="*.aspx" 
           System.Web, Version=1.0.5000.0, Culture=neutral, 
           PublicKeyToken=b03f5f7f11d50a3a" />
       <clear />
  2. 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="" />
  3. 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.

       <add name="Session" 


    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.