-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Advanced Microsoft Content Management Server Development
As outlined above, the MCMS requests will not be processed correctly at this point because the SharePoint ISAPI filter consumes all requests coming into our virtual server. If a request can’t be processed by the SharePoint ISAPI filter, it will simply return an HTTP 404 – File Not Found response to the requestor.
As an example of this, try navigating to a path that does not exist, such as http://portal.tropicalgreen.net/fakepath. As this response is sent directly by the SharePoint ISAPI filter without allowing IIS to continue to process the request, the 404 error page looks different to other 404 errors displayed by IIS or web sites not managed by the SharePoint ISAPI filter:

In order to get the MCMS requests working, we now need to tell SharePoint to ignore or exclude MCMS paths from being consumed by the SharePoint ISAPI filter. There are two ways we can accomplish this:
Using the command-line utility Microsoft added to the MCMS Connector for SharePoint Technologies to automatically exclude all the MCMS channel paths.
Manually exclude the paths.
Let’s first take a look at the utility provided in the MCMS Connector. The excludeCMS.exe tool automatically adds the MCMS-relevant URLs (i.e. NR, MCMS, NRConfig, and top-level channels) to the SharePoint ISAPI filter’s exclude list. You’ll find this tool in the <install drive>\Program Files\MCMS 2002 Connector for SharePoint Technologies\WSS\bin\ directory after installing the MCMS Connector. Be aware that this tool will always exclude the top-level channels. If you have the Map Channel Names to Host Header Names feature of MCMS enabled, then the tool will not exclude the correct URLs. In this situation you should exclude the URLs manually using the steps outlined below.
The excludeCMS.exe utility will not add your MCMS template web application project to the exclude list. This is something you’ll need to do after running the tool.
If you name your MCMS web applications the same as the corresponding top-level channels in MCMS, you won’t have to exclude the web application’s virtual directory. However be aware that this can cause degradation in performance as the MCMS ISAPI filter will need to analyze more than one level of a URL requesting a resource file such as an image on the file system, a CSS file, or a JavaScript file.
The other method is to manually exclude the paths using the SharePoint administration site. Follow the instructions overleaf to exclude paths from the WSS ISAPI filters in a SharePoint extended virtual server:
1. Start the SharePoint Central Administration application at Start | All Programs | SharePoint Portal Server | SharePoint Central Administration.
2. Under the section Portal Site and Virtual Server Configuration, click the Configure virtual server settings from the Virtual Server List page link.
3. On the Virtual Server List page, select our virtual server by clicking the
portal.tropicalgreen.net
link.
4. On the Virtual Server Settings page, under the section Virtual Server Management click the Define managed paths link.
The Define Managed Paths page displays all included and excluded URL paths handled and ignored by the SharePoint ISAPI filter. Follow the steps below for each path you need to exclude from SharePoint’s ISAPI filter:
1. Enter the path in the Add a New Path textbox and select Excluded path as the type of path.
2. Repeat this for each of the following MCMS paths:
MCMS
NR
webctrl_client
www.tropicalgreen.net
(this is our top-level channel)
tropicalgreen (this is our template web application)

The SharePoint ISAPI filters will handle all requests except those that are listed as excluded paths for the virtual server that has been extended by SharePoint. SharePoint only allows paths to be excluded at the folder level, not the file level. Therefore resources within the root of a virtual server that has been extended by SharePoint as well as configured as an MCMS Web Entry Point will always be processed by SharePoint and not MCMS.
For example, if you had a virtual server that both contains a SharePoint portal and is configured as an MCMS web entry point, SharePoint will process all requests. However, if you add SomeTopLevelChannel as an excluded path, MCMS will be able to process a URL such as
http://portal.tropicalgreen.net/SomeTopLevelChannel/foo.htm
provided SomeTopLevelChannel is a top-level channel within the MCMS repository.
The MCMS option of Map Channel Names to Host Header Names presents the MCMS administrator the ability to set the root of a virtual server to consume MCMS-managed resources. Because a SharePoint portal will always be the root of a virtual server, the Map Channel Names to Host Header Names option is not supported when configuring the virtual server to consume MCMS requests in the root of the site (See Microsoft Knowledge Base article #831796: (
http://support.microsoft.com/?id=831796
).
All requests to destinations with any of the above first-level subdirectories in the URL (or subdirectories under them) will now be ignored by the SharePoint ISAPI filter and handed down to lower priority ISAPI filters. In this case, the MCMS ISAPI filters will receive such requests, and determine if the page or resource is managed by MCMS, and if not standard processing will take place.
Change the font size
Change margin width
Change background colour