Parser Error

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
6/18/2006 2:29:31 AM
Gravatar
Total Posts 5

Parser Error

Does anyone know what might cause the problem below.  I have tried to google and search this forum but no luck.

Regards,
Wayne

Server Error in '/MojoPortal' 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: The base class includes the field 'MetaContent', but its type (mojoPortal.Web.MetaContent) is not compatible with the type of control (ASP.controls_metacontent_ascx).

Source Error:

Line 24:     <title><portal:PageTitle id="PageTitle1"  runat="server" /></title>
Line 25: <portal:StyleSheet id="StyleSheet" runat="server" />
Line 26: <portal:MetaContent id="MetaContent" runat="server" />
Line 27: <portal:Favicon id="Favicon1" runat="server" />
Line 28: </head>

Source File: /MojoPortal/Controls/layout.Master    Line: 26


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
6/18/2006 3:01:23 AM
Gravatar
Total Posts 18439

Re: Parser Error

I've never seen that error but I have seen errors like that when VS gets out of whack. Normally VS maintains all the designer files which contain all the control declarations but sometimes it gets funky.

What I would do is open up the Web/Controls/layout.Master.cs.designer file and make sure it has an entry for:

protected mojoPortal.Web.MetaContent MetaContent

Then rebuild.

I'm assuming you are working with the code from svn branches/2.1?

Abother thing to make sure, I see your application is /MojoPortal, the project is setup to use /mojo, you can use whatever you like but if you use something other than /mojo you should right click the Web project choose properties and then click the web tab and enter the path that you are using for the Project Url.

Hope it helps,

Joe
6/18/2006 3:11:59 AM
Gravatar
Total Posts 5

Re: Parser Error

Joe,

Thanks for the reply.

Actually I downloaded mojoPortal from the mojoPortal 2.0.2 Files for using MS SQL Server on 2.0 .NET (Windows only)  link in the downloads section.

I installed it on my Windows 2000 machine in a VirtualDirectory called mojoPortal and all worked fine.  I then backed up the database restored it to my web hosting company and created a WebApp called mojoPortal again and uploaded the code and tried to run the portal.  I had to turn off custom errors in the weg.config to get things to display the error.  I also tested that the database works fine by pointing my installation on my Win2k machine to my hosting companies database and all worked fine.

At this stage I haven't looked at the code let alone change anything apart from turning off custom errors.

Regards,
Wayne
6/18/2006 3:23:47 AM
Gravatar
Total Posts 18439

Re: Parser Error

Hi Wayne,

Can you look in the /Data/currentlog.config file and see if there are any other errors or more detail?

Joe
6/18/2006 3:45:08 AM
Gravatar
Total Posts 5

Re: Parser Error

No nothing in there.  Are there any other log files I can look at?

I have also tried moving the code to a folder names mojo and making this a web application but I still get the same error.

Regards,
Wayne
6/18/2006 3:50:24 AM
Gravatar
Total Posts 18439

Re: Parser Error

The folder app stuff would only apply when working with the code in vs.
Which skin are you using? Can you try switching to a different one in the db and see if that makes any difference?
6/18/2006 4:00:15 AM
Gravatar
Total Posts 5

Re: Parser Error

Joe

How can I change the skin in the database?  Sorry my experience with mojoPortal is only a few hours long!

Cheers,
Wayne
6/18/2006 4:22:00 AM
Gravatar
Total Posts 18439

Re: Parser Error

In the mp_Sites table, the Skin column

valid choices are:
subblue
centered1
mojo1
GotMono
theblues1
6/18/2006 4:36:25 AM
Gravatar
Total Posts 5

Re: Parser Error

Hi Joe

Tried them all but same result for each, same error as before.

Wayne
6/18/2006 4:50:37 AM
Gravatar
Total Posts 18439

Re: Parser Error

Which hosting company are you using? Do they have any limitations in their configuration like do they enforce CAS (Code Access Security) policies and require apps to run in partial trust?

I'm getting baffled. I guess the next thing I would try is, whichever skin you are using remove the references to the MetaContent tag.
For example if using subblue, open the file Web/Data/Sites/[SiteID]/skins/subblue/layout.Master file in a text editor like notepad. [SiteID] is most likely 1.

In that file, remove the entry in the top that looks like this:

<%@ Register TagPrefix="portal" TagName="MetaContent" Src="~/Controls/MetaContent.ascx" %>

and the tag further down that looks like this:

<portal:MetaContent id="MetaContent" runat="server" />

Then see if it works or if you get a different error.

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