current skin not working in new build

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
12/29/2011 5:53:53 PM
Gravatar
Total Posts 199

current skin not working in new build

I took a skin I built a month ago and it will not work in this new version of MOJO.

I am getting this error in the log:

System.Web.HttpParseException (0x80004005): Literal content ('%@ Register Namespace="mojoPortal.Web.UI" Assembly="mojoPortal.Web" TagPrefix="portal" %>') is not allowed within a 'skin file'. ---> System.Web.HttpParseException (0x80004005): Literal content ('%@ Register Namespace="mojoPortal.Web.UI" Assembly="mojoPortal.Web" TagPrefix="portal" %>') is not allowed within a 'skin file'. --->

is there specific documentation on have to work with existing custom skins or maybe I am missing something simple??

12/30/2011 6:40:20 AM
Gravatar
Total Posts 18439

Re: current skin not working in new build

It sounds like you have a typo of some kind in your theme.skin file. You should have this at the very top but the slightest typo can cause errors. This is what the included skins under /Data/skins have:

<%@ Register Namespace="mojoPortal.Web.UI" Assembly="mojoPortal.Web" TagPrefix="portal" %>
<%@ Register Namespace="mojoPortal.Web.Controls" Assembly="mojoPortal.Web.Controls" TagPrefix="mp" %>
<%@ Register Namespace="mojoPortal.Web.ContentUI" Assembly="mojoPortal.Web" TagPrefix="html" %>
<%@ Register Namespace="mojoPortal.Web.BlogUI" Assembly="mojoPortal.Features.UI" TagPrefix="blog" %>
<%@ Register Namespace="mojoPortal.Web.ForumUI" Assembly="mojoPortal.Features.UI" TagPrefix="forum" %>
<%@ Register Namespace="mojoPortal.Web.FeedUI" Assembly="mojoPortal.Features.UI" TagPrefix="feed" %>
<%@ Register Namespace="mojoPortal.Web.SharedFilesUI" Assembly="mojoPortal.Features.UI" TagPrefix="sf" %>
<%@ Register TagPrefix="portal" TagName="ChildPagesSiteMap" Src="~/Controls/ChildPageMenu.ascx" %>
<%@ Register TagPrefix="portal" TagName="mojoRating" Src="~/Controls/mojoRating.ascx" %>

From your error it looks like maybe missing the first <

Hope that helps,

Joe

12/30/2011 1:52:05 PM
Gravatar
Total Posts 199

Re: current skin not working in new build

as always you are correct - not sure why that tag had a typo but it did.  back and running now, thanks.

You must sign in to post in the forums. This thread is closed to new posts.