Error with SmartPhone page

Sep 4, 2008 at 8:18 AM
With the Aug release (fresh install, not upgrade) I get the following error when browsing the SmartPhone access page: "An error occurred during the compilation of the requested file, or one of its dependencies. The type 'Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. "

Checking in sharepoint design I get "The webpart could not be deserialized from the markup" any ideas?
Sep 4, 2008 at 2:38 PM
I have managed to resolve this issue by adding the following line to the page using SharePoint designer, just above <asp:Content id="head1" runat="server" ContentPlaceHolderID="head">:
<%@ Assembly Name="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>