Unknown server tag 'asp:MediaPlayer'.

Mar 5, 2009 at 2:47 PM
Edited Mar 6, 2009 at 5:41 AM
Hi,

When i tried PKS using windows Authontication all things are worked fine. when i changed the authontication type to Forms, my pks site started giving problems.

uploading works fine. when i select to play any video in pkshome page , the podcast detal page shon the fallowing error.

   

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'asp:MediaPlayer'.

Source Error:

Line 1: <%@ Register TagPrefix="SharePoint" Namespace="Microsoft.Sharepoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><table id="cbqwp" cellspacing="0" cellpadding="0" class="cbq-layout-main" width="560px"><tr><td valign="top" style="margin:0px;"><div xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"><asp:MediaPlayer ID="MediaPlayer1" runat="server" MediaSkinSource="/Style Library/PodcastingKit/SLPlayerSkins/Professional.xaml" AutoLoad="false" AutoPlay="false" Height="360px" Width="480px" MediaSource="/_layouts/MSIT.CustomPages/Download.aspx%3FcsId%3D%25257b919a71a2-2d48-44f0-bb8e-62abc3ad6def%25257d%252540%25257bf6bedc1e-3313-4f93-afeb-22c968ca0b3f%25257d%26id%3D1%26action%3Dview" placeHolderSource="http:%2F%2Fmoss-fronta%2Fuploadfiles%2F919a71a2-2d48-44f0-bb8e-62abc3ad6def%2Ff6bedc1e-3313-4f93-afeb-22c968ca0b3f%2F3a5700a0-b7cb-43b2-8fff-1a5be2000207%2Fthumbnail.jpg"></asp:MediaPlayer></div><style type="text/css" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime">Line 2:  			.pks-detail-item
Line 3:  			{

Source File: /Pages/PodcastDetail.aspx    Line: 1


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053



The Event log Error:

    Exception message: Unknown server tag 'asp:MediaPlayer'.
 
Request information:
    Request URL: <a
Mar 6, 2009 at 5:42 AM
Edited Mar 6, 2009 at 5:44 AM
Bellow is the complete log info:

   at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
   at System.Web.UI.TemplateParser.ParseInternal()
   at System.Web.UI.TemplateParser.Parse()
   at System.Web.UI.TemplateParser.ParseTemplateInternal(String content, VirtualPath virtualPath, Boolean ignoreFilter)
   at System.Web.UI.TemplateParser.ParseControl(String content, VirtualPath virtualPath, Boolean ignoreFilter)
   at System.Web.UI.TemplateControl.ParseControl(String content, Boolean ignoreParserFilter)
   at System.Web.UI.TemplateControl.ParseControl(String content)
   at Microsoft.SharePoint.WebPartPages.DataFormWebPart.CreateChildControls()
   at Microsoft.InformationServices.CBQQueryOverride.CreateChildControls()
   at System.Web.UI.Control.EnsureChildControls()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.PKSCONTENTLAYOUTPAGE_ASPX_1979831016.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2976feab\ebc18753\App_Web_4qppx0y6.0.cs:line 0
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 <a< />
Mar 9, 2009 at 2:47 PM
Resolved when 

<

add tagPrefix="asp" namespace="System.Web.UI.SilverlightControls" assembly="System.Web.Silverlight,Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
placed inside <controls> tag

 

Mar 24, 2009 at 3:17 PM
I do not see a <controls> tag in my web.config file? and I have the same problem.
Mar 26, 2009 at 11:40 AM
Hi rpotthoff,

During the installation of PKS, the following entries get added to the web.config of the PKS application inside the <pages> tag:
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI.SilverlightControls" assembly="System.Web.Silverlight,Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      </controls>

If for some reason this doesnt happen then you can manually add the above entries to the web.config of your PKS site inside the pages tag.