Executing a Page with DCP in SDL Tridion 2011 SP1

和自甴很熟 提交于 2019-12-11 06:24:55

问题


I have published a ASPX page with DCP.

    <html>
    <head>
    </head>
    <body>
         <tridion:ComponentPresentation runat="server" PageURI="tcm:9-5251-64" ComponentURI="tcm:9-5245" TemplateURI="tcm:9-5247-32"/> 
    </body>
    </html>

What are the ways to execute this page, so that it renders the DCP.

I just tried browsing this page through IIS, I am getting parser error.

Unknown server tag 'tridion:ComponentPresentation'

It would be great if some one can guide me to run this page.

Thanks in Advance


回答1:


Make sure you have following tag in web.config and Tridion.ContentDelivery dll in bin

  <configuration>
<system.web>
    <pages>
        <controls>
            <add tagPrefix="tridion" 
     namespace="Tridion.ContentDelivery.Web.UI"
     assembly="Tridion.ContentDelivery" />
        </controls>
    </pages>
</system.web>




回答2:


You need to install the 'API Server Role' for your .NET web application:

http://sdllivecontent.sdl.com/LiveContent/content/en-US/SDL_Tridion_2011_SPONE/task_FF19F86A63E246F793D64495849EDEDF

(username/password required)



来源:https://stackoverflow.com/questions/12855576/executing-a-page-with-dcp-in-sdl-tridion-2011-sp1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!