BUG: ProductPropertyDataSetPlaceholder Class Is Not Exposed for Use When You Create Templates (811501)



The information in this article applies to:

  • Microsoft Solution Offering - Microsoft Solution for Internet Business

SYMPTOMS

When you customize a Microsoft Solution for Internet Business (MSIB) sample Web site (either version 2.0 or 2.1), and you try to create a template that uses the ProductPropertyDataSetPlaceholder class, you receive the following error messages when you visit that page:
[ProductPropertyPlaceholderControl "namePlaceholderControl"] No placeholder was found for the PlaceholderToBind value "ProductPropertyDataSetPlaceholder".

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.ContentManagement.WebControls.WebAuthorException: [ProductPropertyPlaceholderControl "namePlaceholderControl"] No placeholder was found for the PlaceholderToBind value "ProductPropertyDataSetPlaceholder".

CAUSE

You receive these error messages because the definition of the ProductPropertyDataSetPlaceholder class is not exposed in the user interface in Microsoft Visual Studio .NET. This behavior occurs because the Microsoft.ContentManagement.Publishing.config file is missing a <PlaceholderDefinitionType> element for the ProductPropertyDataSetPlaceholder class.

RESOLUTION

Use the DataSetPlaceholderDefinition class in a custom template. In the drive:\Program Files\Content Management Server\Server\config folder, add the following lines to the Microsoft.ContentManagement.Publishing.config file.

If this is for an MSIB 2.0 Web site, add the following:
<PlaceholderDefinitionType
	Assembly="Microsoft.Solutions.ContentConnector, Version=2.0.345.0, 	Culture=neutral, PublicKeyToken=31bf3856ad364e35"
	ClassName="Microsoft.Solutions.Framework.DataSetPlaceholderDefinition" />
If this is for an MSIB 2.1 Web site, add the following:
<PlaceholderDefinitionType 
            Assembly="Microsoft.Solutions.ContentConnector, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
            ClassName="Microsoft.Solutions.Framework.DataSetPlaceholderDefinition" />

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

REFERENCES

For more information about custom placeholder definition classes, see the following MSDN Web site:

Idea Section

Bug Meta Data:
ID: 4026
Title: ProductPropertyDataSetPlaceholder is not exposed for developer to use for creating templates
Tree Path: Content Maintenance\Developer\SIE
Status: Active
Assigned to: Active
Issue type: KB Suggestion
Severity: 
Priority: 2
Changed Date: 12/2/2002 9:03:54 PM
Changed By: oscarm
Opened Date: 12/2/2002 9:03:54 PM
Opened By: oscarm
Open Build: 
Source: SIE
Source ID: 
How found: 
Environment: 
Resolved Date: 
Resolved By: 
Resolution: 
Fix Build: 


====================
Repro steps:



==============================
12/2/2002 4:03 PM
Changed by: oscarm
Status: Active

This bug is opened to have a kb created for Bug 2240 in the Microsoft Solution for Internet Business DB

REFERENCES


Modification Type:MajorLast Reviewed:7/8/2003
Keywords:kbbug KB811501 kbAudDeveloper