Problem with second site

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/29/2006 6:21:57 AM
Gravatar
Total Posts 73

Problem with second site

Hi Joe,

When I try to access my own site I receive the following error (in the log-file)

System.Web.HttpException: Onbekend serverlabel mp:PostBackMenu.
   bij System.Web.UI.TagPrefixTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs)
   bij System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean fAllowHtmlTags)
   bij System.Web.UI.RootBuilder.GetChildControlType(String tagName, IDictionary attribs)
   bij System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty)
   bij System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText)
   bij System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)

Onbekend serverlabel translates into: Unknown serverlabel.

The mojoportal site itself works fine.

Best regards,

Jan

9/29/2006 6:29:48 AM
Gravatar
Total Posts 18439

Re: Problem with second site

Hi Jan,

It looks like you are using mojoPortal.Web.PostBackMenu which no longer exists. I originally added this a while back because using the CSS adapter for the asp.net menu caused postback to not work so I created this alternate class to use the asp.net menu without the css adapter. Since then I created mojoMenu which inherits from asp.net menu and changed the css adapter to only override the rendering of mojoMenu and not asp.net menu.

So the fix is, anywhere you were using PostBackMenu just change it to use regular ASP.NET Menu and it should work fine.

Joe
9/29/2006 6:32:43 AM
Gravatar
Total Posts 73

Re: Problem with second site

Hi Joe,

I am not aware that I am using that. The point is that I receive this on my welcome page. I installed mojoportal 213 and added my own modules. But they are not used on the first page.

Regards,

Jan

9/29/2006 6:46:45 AM
Gravatar
Total Posts 18439

Re: Problem with second site

OK, then it must be because App_Browsers/CSSFriendlyAdapter.browser has changed. You have to change this file to the new version and re-compile, its not enough just to drop the file in the App_Browsers folder it takes re-compile as well.

The old one which must be what you have has a reference to PostBackMenu and the error happens because that doesn't exist anymore.

Joe
9/29/2006 12:52:36 PM
Gravatar
Total Posts 73

Re: Problem with second site

OK Joe,

Found it. The reference is in the theme.skin file.

Thanks,

Jan

9/29/2006 12:55:05 PM
Gravatar
Total Posts 18439

Re: Problem with second site

Was it in any of the skins that shipped with the source? or was that one of your custom skins?

Joe
9/29/2006 1:46:08 PM
Gravatar
Total Posts 73

Re: Problem with second site

It was my own. I used the subblue as a basis and the PostBackMenu was in the part I copied.

Thanks again,

Jan

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