Custom PlaceHolder problem at VS.Net start
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Custom PlaceHolder problem at VS.Net start




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Custom PlaceHolder problem at VS.Net start  
KINNELIKKEN


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-27-04 04:37 PM

Hi!
I have created a custom placeholder control exactly following the tutorial f
rom 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 refren
ce [assembly: AssemblyKeyFile(" C:\\MyPlaceholderControls\\MyPlaceholder
C
ontrols.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 co
nfig file with the right assemblyname, version-nr, token, classname and so f
orth. Everything fine so far.

The problem occurs when I'm opening my project i VS.Net. I get a message tha
t says: "Could not get the root template gallery". In details/more informati
on it says:

Error message:
The type 'McmsWebControlLibrary.PlaceholderControls.McmsXmlPlaceholder' foun
d in the configuration file 'C:\Program Files\Microsoft Content Management S
erver\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_PlaceholderDefiniti
onTypes()
at Microsoft.ContentManagement.DeveloperTools.ToolsModel.ToolsModel.initiali
 zePlaceholderDefinitionTypes(PapiPersist
enceManager papiManager)
at Microsoft.ContentManagement.DeveloperTools.ToolsModel.ToolsModel.initiali
zePapiContext()
at Microsoft.ContentManagement.DeveloperTools.ToolsModel.ToolsModel.get_Root
TemplateGallery()

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 administr
ator. Something seems to be wrong with the PlaceholderDefinition type?

I get the same problem with the same procedures in the Woodgrove.Net McmsXml
Placeholder example.

Thanks!





[ Post a follow-up to this message ]



    Re: Custom PlaceHolder problem at VS.Net start  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-27-04 04:37 PM

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...>
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!







[ Post a follow-up to this message ]



    Re: Custom PlaceHolder problem at VS.Net start  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-28-04 06: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.







[ Post a follow-up to this message ]



    Re: Custom PlaceHolder problem at VS.Net start  
KINNELIKKEN


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-01-04 02:36 PM

Hi again!

You are right ofcourse! Finally I got it! It is exactly as you suspect. I ha
ve mixed controls with definitions and thats my only problem.
Thank you for leading me right!





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:24 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register