|
Home > Archive > Microsoft Content Management Server > March 2004 > Custom PlaceHolder problem at VS.Net start
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Custom PlaceHolder problem at VS.Net start
|
|
| KINNELIKKEN 2004-02-27, 11:37 am |
| Hi!
I have created a custom placeholder control exactly following the tutorial from MS.
I have also generated a Strong Name for my control using the SN utility. In my custom control projekt in AssemblyInfo.cs i have added my snk-file refrence [assembly: AssemblyKeyFile(" C:\\MyPlaceholderControls\\MyPlaceholder
Controls.snk")].
Then after compilation the dll is successfully added to C:/WINNT/assembly.
Finally i have added the definition of my placeholder control to the MCMS config file with the right assemblyname, version-nr, token, classname and so forth. Everything fine so far.
The problem occurs when I'm opening my project i VS.Net. I get a message that says: "Could not get the root template gallery". In details/more information it says:
Error message:
The type 'McmsWebControlLibrary.PlaceholderControls.McmsXmlPlaceholder' found in the configuration file 'C:\Program Files\Microsoft Content Management Server\Server\config\Microsoft.ContentManagement.Publishing.config' is not a valid PlaceholderDefinition
type.
Time at which error occurred:
2004-02-27 17:06:45
Exception type:
Microsoft.ContentManagement.Publishing.CmsPublishingConfigurationException
Machine on which error occurred:
OVEKERW2KS1
Error source:
Microsoft.ContentManagement.Publishing
Error stack trace:
at Microsoft.ContentManagement.Publishing.CmsContext.get_PlaceholderDefinitionTypes()
at Microsoft.ContentManagement.DeveloperTools.ToolsModel.ToolsModel. initializePlaceholderDefinitionTypes(Pap
iPersistenceManager papiManager)
at Microsoft.ContentManagement.DeveloperTools.ToolsModel.ToolsModel.initializePapiContext()
at Microsoft.ContentManagement.DeveloperTools.ToolsModel.ToolsModel.get_RootTemplateGallery()
Error AppDomain:
DefaultDomain
Error thread ID:
2452
Searching the Internet indicates that this is a permission problem in MCMS!!!??? I am running VS.Net and MCMS on the same machine logged in as administrator. Something seems to be wrong with the PlaceholderDefinition type?
I get the same problem with the same procedures in the Woodgrove.Net McmsXmlPlaceholder example.
Thanks!
| |
| Stefan [MSFT] 2004-02-27, 11:37 am |
| Hi,
for a placeholder control no strong name is necessary - only for a
placeholder definition!
Usually you will not place it in the GAC but add it to the toolbar.
The error message you receive is not related to your placeholder control.
Check out this article for possible reasons:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm#C7A729AD-CC26-4D07-B82D-C2981802BB31
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"KINNELIKKEN" <anonymous@discussions.microsoft.com> wrote in message
news:C711F640-A501-4584-B28E-6F72FAE072E7@microsoft.com...
> Hi!
> I have created a custom placeholder control exactly following the tutorial
from MS.
>
> I have also generated a Strong Name for my control using the SN utility.
In my custom control projekt in AssemblyInfo.cs i have added my snk-file
refrence [assembly:
AssemblyKeyFile(" C:\\MyPlaceholderControls\\MyPlaceholder
Controls.snk")].
>
> Then after compilation the dll is successfully added to C:/WINNT/assembly.
>
> Finally i have added the definition of my placeholder control to the MCMS
config file with the right assemblyname, version-nr, token, classname and so
forth. Everything fine so far.
>
> The problem occurs when I'm opening my project i VS.Net. I get a message
that says: "Could not get the root template gallery". In details/more
information it says:
>
> Error message:
> The type 'McmsWebControlLibrary.PlaceholderControls.McmsXmlPlaceholder'
found in the configuration file 'C:\Program Files\Microsoft Content
Management
Server\Server\config\Microsoft.ContentManagement.Publishing.config' is not a
valid PlaceholderDefinition type.
>
> Time at which error occurred:
> 2004-02-27 17:06:45
>
> Exception type:
> Microsoft.ContentManagement.Publishing.CmsPublishingConfigurationException
>
> Machine on which error occurred:
> OVEKERW2KS1
>
> Error source:
> Microsoft.ContentManagement.Publishing
>
> Error stack trace:
> at
Microsoft.ContentManagement.Publishing.CmsContext.get_PlaceholderDefinitionT
ypes()
> at
Microsoft.ContentManagement.DeveloperTools.ToolsModel.ToolsModel.initializeP
laceholderDefinitionTypes(PapiPersistenc
eManager papiManager)
> at
Microsoft.ContentManagement.DeveloperTools.ToolsModel.ToolsModel.initializeP
apiContext()
> at
Microsoft.ContentManagement.DeveloperTools.ToolsModel.ToolsModel.get_RootTem
plateGallery()
>
> Error AppDomain:
> DefaultDomain
>
> Error thread ID:
> 2452
>
> Searching the Internet indicates that this is a permission problem in
MCMS!!!??? I am running VS.Net and MCMS on the same machine logged in as
administrator. Something seems to be wrong with the PlaceholderDefinition
type?
>
> I get the same problem with the same procedures in the Woodgrove.Net
McmsXmlPlaceholder example.
>
> Thanks!
| |
| Stefan [MSFT] 2004-02-28, 1:34 pm |
| Hi,
you should not add your placeholder definition to the McmsWebcontrolLibrary.
Rather than create a standalone assembly for this. - and don't mix up
placeholder controls and placeholder definitions.
This are completly different things!
As you see: the error message seems to indicate that you are trying to add a
placeholder control to the placeholder definition list in the config file
rather than a placeholder definition.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"KINNELIKKEN" <anonymous@discussions.microsoft.com> wrote in message
news:14D7D55F-C953-433B-BCDD-8C33E4F0FE33@microsoft.com...
> Hi and thank you for your resonse to my problem! Yes your right, but I did
forget to mention that this actually IS ment to be a custom placeholder
definition. I want it to appear in the list among the other predefined
placeholders when I'm creating a new MCMS Template. Further I have been
through the article you suggest but it's not any of these problems. I think
the last line listed in the detailed trace is important:
>
> "The type 'McmsWebControlLibrary.PlaceholderControls.MyPlaceholder' found
in the configuration file 'C:\Program Files\Microsoft Content Management
Server\Server\config\Microsoft.ContentManagement.Publishing.config' is not a
> valid PlaceholderDefinition type".
>
> Because nothing is reported in the application event log when this happens
i think that the defintion in the config-file is OK and that the problem is
not that of the root template gallery problem. A misspelling for example for
my defintion in the config file is immedately listed in the application
event log and does not result in an error when starting VS.Net. In this case
the Template explorer window opens corrrectly and the templates appears as
they should. On the other hand when "my error" occurs the Template explporer
window opens but no templates are shown in it.
>
> This problem has become very very annoying so I would really appreciate if
I can get a hint about what the problem might be.
>
> Thanks again!
>
> Im running Wondows 2000 Server with SP4.
| |
| KINNELIKKEN 2004-03-01, 9:36 am |
| Hi again!
You are right ofcourse! Finally I got it! It is exactly as you suspect. I have mixed controls with definitions and thats my only problem.
Thank you for leading me right!
|
|
|
|
|