This is a collection of questions and answers about Microsoft® Content Management Server (MCMS) gathered from the MCMS newsgroup. This content is provided "AS IS" with no warranties, and confers no rights. If you have feedback about one of these topics or would like to add information, please post your comments to the MCMS newsgroup. Thank you, Stefan Goßner Escalation Engineer Steve Cawood Program Manager
How can I configure Microsoft® Visual Studio® .NET to access a MCMS Web site that is different from the Default Web Site?
First of all: Microsoft officially only supports the Default Web site to be used with VS.NET and the MCMS developer tools. But there is a method to get it working for different Web sites.
It is required that the Web site you are trying to access has a unique port. No other Web site (independend if started or not) must have the same port number.
In addition you need to modify the 'InstanceID' in your DeveloperTools.xml file located at C:\Program Files\Microsoft Content Management Server\DevTools. This number should correspond with the entry point of your Web site in Internet Service Manager.
<CMSENVIRONMENT> <SERVER BaseUrl="http://localhost" InstanceId="1" /> <TEMPLATE QueryString="" /></CMSENVIRONMENT>
Also ensure that the MCMS Web site has a unique port that is not being used by any other Web site. The MCMS developer tools will try to create necessary virtual directories on the first Web site with the given port and ignore the 'InstanceId'. This also happens if the other Web site is stopped.
After installing the WoodgroveNet sample (which installed successfully), I attempted to open the project in Visual Studio. I was told that 'The application for project http://localhost/woodgrovenet/woodgrovenet.csproj is not installed. Make sure the application for the project type (.csproj) is installed.' I click OK and get 'The application for project 'C:\Program Files\ Microsoft Content management Server\Sample Data\McmsWebControlLibrary\McmsWebControlLibrary.csproj' is installed. Make sure the application for the project type (.csproj) is installed.'
What's the problem here?
Please check if you installed C# support when you installed Visual Studio .NET. You may have just installed VB.NET support.
Whenever I start Microsoft® Visual Studio® .NET 2003 I receive the following error message: "Developertools.xml not found".
This can happen when 3rd party Microsoft Visual Studio .NET add-ins are installed.
To confirm whether the problem is caused by one of these, deactivate all 3rd party add-ins.
I am using Content Management server 2002 (SP1a installed) with Visual Studio .NET. While creating a new MCMS Web project I receive the following error message: "The 'New MCMS server project' operation failed because the following preconditions were not met: - Cannot MCMS-enable a project that is on a remote computer".
How can I solve this?
This can happen if you did not use a Url with the host name "localhost" when creating the project. The developer tools are only supported with the default web site running on port 80.
Different web sites and ports can be used - although not officially supported - if the port is unique.
To use a different Web site than the default web site you need to modify the 'InstanceID' in your DeveloperTools.xml file located at C:\Program Files\Microsoft Content Management Server\DevTools. This number should correspond with the entry point of your Web site in Internet Service Manager.
To determine this number have a look in the registry. There is a key for every entry point below:\HKLM\SOFTWARE\NCompass\Resolution Content Server\Configuration\0\EntryPoints.
Error when using MCMS Template Explorer: "Could not get the root template gallery".
Here are some things to consider:
I am trying to follow the "Using Visual Studio .NET to Create a MCMS Web Site" article from the MCMS help file. When I test the site I receive the following error:
This operation requires the context of a Posting. The request must have a valid Posting Url or QueryString so that the CmsHttpContext.Posting will not be null.
MCMS template files cannot be executed on their own. They need to be executed in the context of a posting (as indicated in the error message).
To create a posting, login and then browse to the channel you want to create a posting. You should see a "Switch To Edit Site" link on the cover page. After clicking this link you will find a "Create New Page" link. This will allow you to pick the template from the template gallery and create a new posting based on this template.
What is the MCMS 'RobotMetaTag' and why should I add it to my template?
The RobotMetaTag does the following two things:
It is not necessary if both of the following are true:
I have created a new Visual Studio .NET project and I am trying to enable it as a MCMS project. I am getting this error:
---------------------------Microsoft Development Environment---------------------------Could not create virtual directory 'http://localhost/project/CMS' in location C:\Program Files\Microsoft Content Management Server\Server\IIS_CMS\.---------------------------
What could cause this problem?
Here are some things to investigate:
I tried using MCMS 2002 with Microsoft Visual Studio® .NET 2003 and .NET Framework 1.1 but ran into errors.
MCMS 2002 RTM does not support Microsoft Visual Studio .NET 2003 and/or .NET Framework 1.1.
Support for Microsoft Visual Studio .NET 2003 and .NET Framework 1.1 is added with MCMS 2002 Service Pack 1.
To install MCMS 2002 with Visual Studio .NET 2003 follow the hints below:
MCMS 2002 SP1 will give you the option to install updated versions of Site Manager, Site Stager and the Developer Tools.
I currently have Microsoft® Visual Studio® .NET 2003 installed. I am trying to install MCMS 2002 but I keep receiving the following error message:
"Microsoft Visual Studio .NET not found (needed by Dev Tools)"
Microsoft Visual Studio .NET 2003 is not recognized by the MCMS 2002 installer because this product was not out when MCMS 2002 was released. Microsoft Visual Studio .NET 2003 support is added with MCMS 2002 SP1.
To get around this problem do the following:
When I try to create a new MCMS template project in Microsoft® Visual Studio® .NET project Microsoft Visual Studio .NET (DEVENV.EXE process) hangs indefinitely.
What might cause this?
This can happen when Microsoft Visual Studio .NET Analyzer is turned on under Administrative Tools, Data Sources (ODBC), Tracing
Alternatively you can check if the following registry key is set to 1 in the current user profile:
[HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\ODBC]"Vista"="1"
To resolve this stop Microsoft Visual Studio .NET Analyzer using the button in Administrative Tools, Data Sources (ODBC), Tracing tab.
Alternatively you can resolve it by setting the above registry key value to “0”
This White Paper is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS DOCUMENT.
Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation.
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property.
© 2004 Microsoft Corporation. All rights reserved.
Microsoft, ActiveX, Visual Studio, Windows, and Windows Server are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.
The names of actual companies and products mentioned herein may be the trademarks of their respective owners.