Allowing Web Applications to Coexist with Windows SharePoint Services
|Archived content. No warranty is made as to technical accuracy. Content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
You can install Microsofton a server or server farm that is running other Web applications (such as Outlook Web Access for Microsoft Exchange Server), but you must exclude the paths controlled by the other Web applications from the paths that controls. When you extend a virtual server by using , automatically intercepts all requests to access that virtual server. If the virtual server also hosts one or more Web applications that are independent of , the requests sent to these Web applications will not get through.
To solve this problem, you must configure an excluded path for the virtual server on the server that is running . The excluded path tells the server that is running not to intercept the request to access the virtual server and to let Microsoft Internet Information Services (IIS) handle the request instead.
Create an excluded path for a virtual server
On the Start menu, point to Administrative Tools , and then click SharePoint Central Administration .
In the Virtual Server Configuration section, click Configure virtual server settings .
On the Virtual Server List page, click the virtual server that you want to create the excluded paths for.
In the Virtual Server Management section, click Define managed paths .
In the Add a New Path section, type the path that you want to exclude in the Path box.
Click Excluded Path , and then click OK .
In some situations, you must do more than just create the excluded path. Some Web applications might require that you change the Web.config file for the server that is running . Consult the documentation for the Web application; if there is nothing in the documentation about the Web.config file, try creating the excluded path first. If you get an error message such as "HTTP 404 - Page cannot be found" or "A Web Part on this Smartpage cannot be displayed because it is not registered on this site as a safe Web Part,"change the Web.config file. If your Web application still does not work, contact Microsoft Support.
Change the Web.config file
On the server that is hosting the Web page that you want to configure, locate the path that you excluded earlier. The path will be similar to the following:
Save a backup copy of the Web.config file as Web2.config.
Copy the code provided at the end of this topic.
Open the Web.config file.Locate the
<system.web>;tag, and then paste the code you copied after it.
Save the Web.config file.
Install the HTTP module from the Microsoft Knowledge Base article How to enable an ASP.Net application to run on a SharePoint virtual server .
After you install the module, include a reference to the moduleinthe Web.config file for your ASP.NET application that resides under an excluded path of the virtual server.
Note: You do not have to include a reference to the module in the Web.config file that uses at the root of the virtual server.
In the Web.config file, locate the entries under
<system.web>section,and then add the following code after the last entry:
<add name="ValidatePathModule" type="Microsoft.Web.ValidatePathModule, Microsoft.Web.ValidatePathModule, Version=188.8.131.52, Culture=neutral, PublicKeyToken=eba19824f86fdadd"/>
Save the Web.config file.
Information in this topic was derived from the Microsoft Knowledge Base article How to enable an ASP.Net application to run on a SharePoint virtual server . Refer to that article for the latest information about troubleshooting issues with ASP.NET Web applications and . For more information about excluded paths in , see Managing Paths in the Administrator's Guide.
Begin copying the code at the next line of text.
<!-- Set up the PageHandlerFactory to process all requests. This will override the SharePoint HTTPHandler. --><httpHandlers><add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /></httpHandlers><!-- Set the trust back to Full. Windows SharePoint Services configures a very restrictive trust policy that does not allow most applications to run correctly. --><trust level="Full" originUrl="" /><!-- Enable the modules that you must have for your program to run. If you receive the following message: Parser Error Message: The module '<moduleName> is already in the program and cannot be added again You can remove the modules that are mentioned in the error message. The SharePoint web.config already includes the module for OutputCache and WindowsAuthentication so you do not have to add them here.--><httpModules> <add name="Session" type="System.Web.SessionState.SessionStateModule"/> <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule"/> <add name="PassportAuthentication" type="System.Web.Security.PassportAuthenticationModule"/> <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule"/> <add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule"/></httpModules><!-- Enable Session for the pages --><pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" />